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 d=false;if(window.XMLHttpRequest){d=new XMLHttpRequest()}else{if(window.ActiveXObject!=null){var c=false;for(var b=0;b<XMLHTTPREQUEST_MS_PROGIDS.length&&!c;b++){try{d=new ActiveXObject(XMLHTTPREQUEST_MS_PROGIDS[b]);c=true}catch(a){d=false}}}}return d}function handleResponse(b,a,d,c){return function(){if(b.readyState==4){if(b.status==200){switch(d){case ResponseType.xml:a(b.responseXML,c);break;case ResponseType.html:a(b.responseText,c);break;default:break}}else{alert("Errore HTTP: "+b.status)}}}}function setCookie(e,d,c){var b=new Date();var a=new Date();if(c==null||c==0){c=1}a.setTime(b.getTime()+3600000*24*c);document.cookie=e+"="+escape(d)+";expires="+a.toGMTString()}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.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(c,b,a){if(getCookie(c)){document.cookie=c+"="+((b)?";path="+b:"")+((a)?";domain="+a:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}};
