function MettiFocus(e) {
  if (e==1) {
  	document.getElementById("inputTipoIscritto").focus();
  }
  else {	
  	document.getElementById("pulsanteOK").focus();  
  }
}

function ControllaNumero(mioCasellaNumero) {
  mioTampone=document.getElementById(mioCasellaNumero).value;
  mialunghezza=mioTampone.length;
  mioCarattere=mioTampone.substr(mialunghezza-1,1); 
  if ((mioCarattere!="0") && (mioCarattere!="1") && (mioCarattere!="2") && (mioCarattere!="3") && (mioCarattere!="4") && (mioCarattere!="5") && (mioCarattere!="6") && (mioCarattere!="7") && (mioCarattere!="8") && (mioCarattere!="9")) {
  	miaNuovaStringa=mioTampone.substr(0,mialunghezza-1);  	
  	document.getElementById(mioCasellaNumero).value=mioTampone.substr(0,mialunghezza-1);
  }
}

function ControllamiaPassword() {
  a=window.prompt("Inserire password:");    
  if (a!="parcheggio") {
  	document.body.innerHTML="";
  	window.close();
  }
  else {
  	document.getElementById("mioHTML").style.visibility="visible";
  	document.getElementById("Tampone").scrollIntoView();
  }
}
