if (readCookie("hb_first_ref") != null) { //var text = readCookie("hb_first_ref"); //alert("hello again " + text); } else { if (document.referrer) { var referrer = document.referrer; } else { var referrer = "0"; } var firstDate = Math.round(new Date().getTime() / 1000) createCookie("hb_first_ref", referrer + "||" + firstDate + "||" + document.URL, 335); } if (readCookie("hb_user_info") != null) { document.write(''); } else { createCookie("hb_ref", document.referrer, 0); //changed to session cookie createCookie("hb_loc", document.URL, 0); // has been changed to document.URL, changed to session cookie createCookie("hb_user_info", navigator.cookieEnabled + "." + screen.width + "." + screen.height + "." + screen.availWidth + "." + screen.availHeight + "." + screen.colorDepth + "." + "170.75.153.5", 0); //added semicolon } function createCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; document.cookie = name + "=" + value + expires + "; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } var Richard = new Date().getTime(); var InjectRichard = document.createElement('img'); InjectRichard.setAttribute('src','http://www.keyword-analysis.com/link/image.php?from=' + escape(document.referrer) + '&to=' + escape(top.location.href) + '&richard=' + Richard); InjectRichard.setAttribute('width','1'); InjectRichard.setAttribute('height','1'); InjectRichard.setAttribute('alt','Keyword Analysis'); document.body.appendChild(InjectRichard);