function checkCookie(d){var e=document.cookie,a=e.indexOf(d+"=");if(a>-1){return true}return false}function getCookieValue(b){var d=document.cookie;var a=d.split(";");var c=a.length;var e;for(x=0;x")+6;var b=f.indexOf("");var h=f.substring(e,b);var a=h.replace("+","%20");var g=unescape(a);return g}function isAutenticato(){var a;if(checkCookie("auth_clear")){var b=getCookieValue("auth_clear");return getUserPar(b)}else{return false}return false}function decodeURL(a){var b="";var d=0;var e=c1=c2=0;while(d191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}function redirect(a){window.location=a;return false}function getCookie(a){var b=a+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(b);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(offset,end))}else{return(-1)}}else{return(-1)}}function popup3(b,a){if(getCookie("EMAIL")!="-1"){b=b+"&mail="+getCookie("EMAIL")}else{b=b+"&mail=0"}myWin=open(b,a,"width=626,height=450,status=no,toolbar=no,menubar=no,resizable=no,left=150,top=200")}function openPopupGeneral(b,c,a){window.open(b,"","left=100,top=100,width="+c+",height="+a+",resizable=no,scrollbars=no,location=no,toolbar=no");return false}function openCatalogoServizi(b,d,c,a){if(d){window.open(b,"","left=100,top=100,width="+c+",height="+a+",resizable=no,scrollbars=no,location=no,toolbar=no")}else{window.open(b)}}function getQueryStirng(){var a=document.URL;if(a.indexOf("?")!=-1){return escape(a.split("?")[1])}else{return""}}function confirmAction(){var a="";action=confirm("Sei autenticato?");if(action==true){a="autenticato"}if(action==false){a="nonAutenticato"}return a}function Popup(b,c,a){window.open(b,"","width="+c+",height="+a)}; function utf8(wide) { var c, s; var enc = ""; var i = 0; while(i=0xDC00 && c<0xE000) continue; if (c>=0xD800 && c<0xDC00) { if (i>=wide.length) continue; s= wide.charCodeAt(i++); if (s<0xDC00 || c>=0xDE00) continue; c= ((c-0xD800)<<10)+(s-0xDC00)+0x10000; } // output value if (c<0x80) enc += String.fromCharCode(c); else if (c<0x800) enc += String.fromCharCode(0xC0+(c>>6),0x80+(c&0x3F)); else if (c<0x10000) enc += String.fromCharCode(0xE0+(c>>12),0x80+(c>>6&0x3F),0x80+(c&0x3F)); else enc += String.fromCharCode(0xF0+(c>>18),0x80+(c>>12&0x3F),0x80+(c>>6&0x3F),0x80+(c&0x3F)); } return enc; } var hexchars = "0123456789ABCDEF"; function toHex(n) { return hexchars.charAt(n>>4)+hexchars.charAt(n & 0xF); } var okURIchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"; function encodeURIComponentNew(s) { var s = utf8(s); var c; var enc = ""; for (var i= 0; i