var XMLHTTP,evTimout;function hide_img(h){document.getElementById("IMG_0"+h).style.display="none";document.getElementById("IMG_0"+h).src="interface\\ph"+h+".gif";document.getElementById("IMG_0"+h).style.display="inline";document.getElementById("TDCHOICEDONE").innerHTML=document.getElementById("TDCHOICEDONE").innerHTML+".";};function window_onload(uid){document.getElementById("TDCHOICEDONE").innerHTML="verrete ora reindirizzati alla homepage";for(var t=0;t<5;t++){window.setTimeout("hide_img("+t+")",2500*(t+1));}var url="serversideASP\\actin.asp?pe="+navigator.userAgent;XMLHTTP=BrowserType(isDone);XMLHTTP.open("POST",url,true);XMLHTTP.send("C");};function isDone(){if(XMLHTTP.readyState==4){if(navigator.userAgent.indexOf("MSIE")!=(-1)){evTimout=window.setTimeout("window.navigate('home.asp')",9000);}if(navigator.userAgent.indexOf("Mozilla")!=(-1)){evTimout=window.setTimeout("window.location='home.asp'",9000);}if(navigator.userAgent.indexOf("Opera")!=(-1)){evTimout=window.setTimeout("window.location='home.asp'",9000);};}};function BrowserType(BrowserType){if(navigator.userAgent.indexOf("MSIE")!=(-1)){var XmlClass="Msxml2.XMLHTTP";if(navigator.appVersion.indexOf("MSIE 5.5")!=(-1));{XmlClass="Microsoft.XMLHTTP";}try{XMLObj=new ActiveXObject(XmlClass);XMLObj.onreadystatechange=BrowserType;return XMLObj;}catch(e){alert("L'activeX non verrą eseguito");};}if(navigator.userAgent.indexOf("Mozilla")!=(-1)){XMLObj=new XMLHttpRequest();if(XMLObj.overrideMimeType){XMLObj.overrideMimeType('text/xml');}XMLObj.onload=BrowserType;XMLObj.onerror=BrowserType;return XMLObj;}if(navigator.userAgent.indexOf("Opera")!=(-1)){XMLObj=new XMLHttpRequest();if(XMLObj.overrideMimeType){XMLObj.overrideMimeType('text/xml');}XMLObj.onload=BrowserType;XMLObj.onerror=BrowserType;return XMLObj;}};

