//*** Global var *** var PageTitle = new Array (); PageTitle[0] = "Prenotazione autovetture"; PageTitle[1] = "Attendere collegamento in corso"; var MyXHttpRequester; var MyXHttpCaller; var ListaRegioni = new Array (); var ListaCitta = new Array (); function MasterInit () { cambiocontinente(0); abilito ("Seleziona"); } var tip=new Array (); tip[0]='Le due password non coincidono'; function confronto_password (Valore,e,x) { Valore2 = Valore.value; //alert (e); if (document.RegUsrFrm.ReLogInPass.value != "") { if (document.RegUsrFrm.ReLogInPass.value != Valore2) { showtip(Valore,e,x); } else { hidetip(); } } if (document.RegUsrFrm.LogInPass.value == "") { hidetip(); } } function confronto_password1 (Valore,e,x) { Valore2 = Valore.value; //alert (e); if (document.RegUsrFrm.LogInPass.value != "") { if (document.RegUsrFrm.LogInPass.value != Valore2) { showtip(Valore,e,x); } else { hidetip(); } } if (document.RegUsrFrm.ReLogInPass.value == "") { hidetip(); } } function showtip(current,e,num) { agent = navigator.userAgent.toLowerCase(); //alert (agent.indexOf("opera")); if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+ { elm=document.getElementById("tooltip") elml=current elm.innerHTML=tip[num] if ((agent.indexOf("msie") == -1) && (agent.indexOf("opera") == -1)) { elm.style.height=elml.style.height elm.style.top=parseInt(elml.offsetTop+elml.offsetHeight) elm.style.left=parseInt(elml.offsetLeft+elml.offsetWidth+10) } elm.style.visibility = "visible" } } function hidetip() { if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+ { elm=document.getElementById("tooltip") elm.style.visibility="hidden" } } function codiceFISCALE(cfins) { var cf = cfins.toUpperCase(); var cfReg = /^[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]$/; if (!cfReg.test(cf)) return false; var set1 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var set2 = "ABCDEFGHIJABCDEFGHIJKLMNOPQRSTUVWXYZ"; var setpari = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var setdisp = "BAKPLCQDREVOSFTGUHMINJWZYX"; var s = 0; for( i = 1; i <= 13; i += 2 ) s += setpari.indexOf( set2.charAt( set1.indexOf( cf.charAt(i) ))); for( i = 0; i <= 14; i += 2 ) s += setdisp.indexOf( set2.charAt( set1.indexOf( cf.charAt(i) ))); if ( s%26 != cf.charCodeAt(15)-'A'.charCodeAt(0) ) return false; return true; } function partitaIVA(sz_Codice) { var n_Val,n_Som1=0,n_Som2=0,lcv; if (sz_Codice.length!=11 || isNaN(parseFloat(sz_Codice)) || parseFloat(sz_Codice)