// JavaScript Document /*if (document.getElementById && document.getElementsByTagName) { if (window.addEventListener) window.addEventListener('load', getlinks, false); else if (window.attachEvent) window.attachEvent('onload', getlinks); }*/ function getlinks() { var head=document.getElementById('head'); var as = head.getElementsByTagName('a'); for (i=0;i 0)//need to show more than 1 div { temp = text.split(','); for(var i=0; i 0) { location.href=switchserverurl+"&"+affidcookie[0]; } else if(typeof tradedoublercookie !== "undefined" && tradedoublercookie !== null && tradedoublercookie.length > 0) { location.href=switchserverurl+"&"+tradedoublercookie[0]; } else { location.href=switchserverurl; } } } } xmlhttp.send(null); } function switchserverandcancel(switchserverurl){ var d = new Date(); var randomnumber = d.getTime();//stops cache var xurl="../ajax/session.cfm?action=switchservercancel&rts="+randomnumber; var xmlhttp = getxmlhttp(); xmlhttp.open("GET", xurl,true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { rtxt=xmlhttp.responseText; if(rtxt=="1"){ location.href=switchserverurl; } } } xmlhttp.send(null); }