function ast_aslog(e) { window.focus(); if (window.status && (window.status != lastStatus)) { lastStatus = window.status; var bug = new Image(); bug.src = 'http://www.cheaptoregister.com/astracker/at.php' + '?ref=' + escape(document.location.href) + '&url=' + escape(window.status) + '&w=' + google_ad_width + '&h=' + google_ad_height + '&f=' + ast_getVariable('format') + '&cb=' + ast_getVariable('color_border') + '&cbg=' + ast_getVariable('color_bg') + '&cl=' + ast_getVariable('color_link') + '&cu=' + ast_getVariable('color_url') + '&ct=' + ast_getVariable('color_text') + '&ch=' + ast_getVariable('channel') + '&cch=null' + '&r=' + escape(document.referrer) + '&cv=c' + '&dt=' + new Date().valueOf(); } } function ast_logsearch(e) { var bug = new Image(); var sd = (ast_formObj.sitesearch[0].checked)?"web":escape(ast_formObj.domains.value); bug.src = 'http://www.cheaptoregister.com/astracker/at.php' + '?ref=' + escape(document.location.href) + '&q=' + escape(ast_formObj.q.value) + '&sd=' + sd + '&cch=null' + '&r=' + escape(document.referrer) + '&cv=s' + '&dt=' + new Date().valueOf(); } var lastStatus = ''; var ast_iframeObj; var elements; elements = document.getElementsByTagName("iframe"); for (var i = 0; i < elements.length; i++) { if(elements[i].src.indexOf('googlesyndication.com') > -1) { if (document.layers) { elements[i].captureEvents(Events.ONFOCUS); elements[i].captureEvents(Events.ONMOUSEOVER); } elements[i].onfocus = ast_aslog; ast_iframeObj = elements[i]; } } var ast_formObj; elements = document.getElementsByTagName("form"); for (var i = 0; i < elements.length; i++) { if(elements[i].action.indexOf('www.google.com/custom') > -1) { if (document.layers) { elements[i].captureEvents(Events.ONSUBMIT); } elements[i].onsubmit = ast_logsearch; ast_formObj = elements[i]; } } function ast_getVariable(name) { var dc = ast_iframeObj.src; var prefix = name + "="; var begin = dc.indexOf("&" + prefix); if (begin == -1) { begin = dc.indexOf("?" + prefix); if (begin == -1) return null; } else begin += 1; var end = ast_iframeObj.src.indexOf("&", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } if (ast_iframeObj) { var asUrl = 'http://www.cheaptoregister.com/astracker/at.php' + '?ref=' + escape(document.location.href) + '&cv=v' + '&w=' + google_ad_width + '&url=' + '&h=' + google_ad_height + '&f=' + ast_getVariable('format') + '&cb=' + ast_getVariable('color_border') + '&cbg=' + ast_getVariable('color_bg') + '&cl=' + ast_getVariable('color_link') + '&cu=' + ast_getVariable('color_url') + '&ct=' + ast_getVariable('color_text') + '&ch=' + ast_getVariable('channel') + '&cch=null' + '&r=' + escape(document.referrer) + '&dt=' + new Date().valueOf(); var bug = new Image(); bug.src = asUrl; }