if (document.cookie.length > 0) { // if there are any cookies
if ((document.cookie.indexOf('xlaALSleadlocal') ==-1) && (document.referrer.length>0)){ // lead cookie does not exist and theres a referer
document.cookie='xlaALSleadlocal=1';
document.write('<img width=0 height=0 src="http://www.parentaldefense.org/livesupport/tracklead.aspx?rid=8695&lead=' + escape(document.referrer) + '">');}}