function AjaxDati(pagina,valori,out){setLoad();var log_ajax=assegnaXMLHttpRequest();if(log_ajax){log_ajax.open("POST",pagina,true);log_ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");log_ajax.setRequestHeader("connection","close");log_ajax.onreadystatechange=function(){if(log_ajax.readyState===readyState.COMPLETATO){if(statusText[log_ajax.status]==="OK"){eval(out+"(log_ajax.responseText);")}else{changeShadowbox("Errore","<div style='padding-top:10px;padding-left:25px;padding-right:25px;text-align:center'><img src='http://elletretreti.it/l33t/img/X.png' alt='X' title='X' style='margin-bottom:-5px;margin-left:4px;'/><br/>Impossibile effettuare l'operazione richiesta.<br />Errore riscontrato: "+statusText[log_ajax.status]+"<br/> Riprova pi&ugrave; tardi, se il problema persite contattare l'amministratore.</div>",350,143)}}};log_ajax.send(valori)}}function changeShadowbox(c,b,a,d){if(Shadowbox.isOpen()){Shadowbox.close()}setTimeout('sostitutoShadowbox("'+c+'", "'+b+'", '+a+", "+d+")",500)}function sostitutoShadowbox(c,b,a,d){removeLoad();Shadowbox.open({player:"html",title:c,content:b,width:a,height:d})}function setLoad(){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden")}if(!prendiElementoDaId("overlay")){var a=document.createElement("DIV");a.setAttribute("id","overlay");document.body.appendChild(a)}prendiElementoDaId("overlay").innerHTML="<div id='overlay_bg'></div><div id='load'><a href='javascript:removeLoad();'><img src='http://elletretreti.it/forum/Themes/classic/images/loading.gif' /></a></div>"}catch(b){}}function removeLoad(){try{document.body.removeChild(prendiElementoDaId("overlay"))}catch(a){}}function logout(){AjaxDati("../../l33t/tools/removecookie.php","","modif_out")}function modif_out(a){if(a=="ok"){location.reload()}else{changeShadowbox("Errore","<div style='padding-top:10px;padding-left:25px;padding-right:25px;text-align:center'><img src='http://elletretreti.it/l33t/img/X.png' alt='X' title='X' style='margin-bottom:-5px;margin-left:4px;'/><br/>Impossibile effettuare l'operazione richiesta. Verifica che i dati siano corretti e riprova pi&ugrave; tardi.<br/>Se il problema persite contattare l'amministratore.</div>",350,140)}}function trim(a){while(a.substring(0,1)==" "){a=a.substring(1,a.length)}while(a.substring(a.length-1,a.length)==" "){a=a.substring(0,a.length-1)}return a}function trasparenta(){}function prendiElementoDaId(b){var a;if(document.getElementById){a=document.getElementById(b)}else{a=document.all[b]}return a}function assegnaXMLHttpRequest(){var a=null,b=navigator.userAgent.toUpperCase();if(typeof(XMLHttpRequest)==="function"||typeof(XMLHttpRequest)==="object"){a=new XMLHttpRequest()}else{if(window.ActiveXObject&&b.indexOf("MSIE 4")<0){if(b.indexOf("MSIE 5")<0){a=new ActiveXObject("Msxml2.XMLHTTP")}else{a=new ActiveXObject("Microsoft.XMLHTTP")}}}return a}var readyState={INATTIVO:0,INIZIALIZZATO:1,RICHIESTA:2,RISPOSTA:3,COMPLETATO:4};var statusText=new Array();statusText[100]="Continue";statusText[101]="Switching Protocols";statusText[200]="OK";statusText[201]="Created";statusText[202]="Accepted";statusText[203]="Non-Authoritative Information";statusText[204]="No Content";statusText[205]="Reset Content";statusText[206]="Partial Content";statusText[300]="Multiple Choices";statusText[301]="Moved Permanently";statusText[302]="Found";statusText[303]="See Other";statusText[304]="Not Modified";statusText[305]="Use Proxy";statusText[306]="(unused, but reserved)";statusText[307]="Temporary Redirect";statusText[400]="Bad Request";statusText[401]="Unauthorized";statusText[402]="Payment Required";statusText[403]="Forbidden";statusText[404]="Not Found";statusText[405]="Method Not Allowed";statusText[406]="Not Acceptable";statusText[407]="Proxy Authentication Required";statusText[408]="Request Timeout";statusText[409]="Conflict";statusText[410]="Gone";statusText[411]="Length Required";statusText[412]="Precondition Failed";statusText[413]="Request Entity Too Large";statusText[414]="Request-URI Too Long";statusText[415]="Unsupported Media Type";statusText[416]="Requested Range Not Satisfiable";statusText[417]="Expectation Failed";statusText[500]="Internal Server Error";statusText[501]="Not Implemented";statusText[502]="Bad Gateway";statusText[503]="Service Unavailable";statusText[504]="Gateway Timeout";statusText[505]="HTTP Version Not Supported";statusText[509]="Bandwidth Limit Exceeded";