var cyclingcgi="http://www.roobsta.com/cgi-bin/cycling.cgi?"+id+"&"+region; function envCheck() { var ref = document.referrer; if ((ref.indexOf("roobsta.com") == -1) || (ref.indexOf("roobsta.com") > 15)) { if (ref != "") { location.replace(cyclingcgi); } } } function IdentifyList() { if (parent.title == null) { setTimeout("IdentifyList()", 3000); return; } if (parent.title.tdir == null) { setTimeout("IdentifyList()", 5000); return; } if (parent.pass == null) { setTimeout("IdentifyList()", 5000); return; } if (parent.pass.location.pathname != parent.title.tdir + region) { history.back(); setTimeout("IdentifyList()", 5000); return; } if (parent.pass.lpicked == null) { setTimeout("IdentifyList()", 5000); return; } // remove indicator parent.pass.lpicked.src=parent.pass.indicator[0].src; //highlight parent.pass.eval(id).src=parent.pass.indicator[1].src; // log col parent.pass.lpicked = parent.pass.eval(id); status = 'Click on the list for further information!'; }