var XMLHTTPREQUEST_MS_PROGIDS=new Array("Msxml2.XMLHTTP.7.0","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP");function ResponseType(){}ResponseType.xml="XML";ResponseType.html="HTML";function newXMLHttpRequest(){var g=false;if(window.XMLHttpRequest){g=new XMLHttpRequest()}else{if(window.ActiveXObject!=null){var h=false;for(var e=0;e<XMLHTTPREQUEST_MS_PROGIDS.length&&!h;e++){try{g=new ActiveXObject(XMLHTTPREQUEST_MS_PROGIDS[e]);h=true}catch(f){g=false}}}}return g}function handleResponse(e,f,g,h){return function(){if(e.readyState==4){if(e.status==200){switch(g){case ResponseType.xml:f(e.responseXML,h);break;case ResponseType.html:f(e.responseText,h);break;default:break}}else{alert("Errore HTTP: "+e.status)}}}}function setCookie(h,i,j){var f=new Date();var g=new Date();if(j==null||j==0){j=1}g.setTime(f.getTime()+3600000*24*j);document.cookie=h+"="+escape(i)+";expires="+g.toGMTString()}function getCookie(b){if(document.cookie.length>0){c_start=document.cookie.indexOf(b+"=");if(c_start!=-1){c_start=c_start+b.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}function deleteCookie(f,d,e){if(getCookie(f)){document.cookie=f+"="+((d)?";path="+d:"")+((e)?";domain="+e:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}};