function pass(theForm)
{
var s, str, re, arr, reNumeri;
re = /\W/g;
reNumeri = /\D/g;

if (theForm.PASSWD.value != "") {

  
  if (theForm.PASSWD.value.length < 5) {
    alert("Attenzione inserire almeno 5 caratteri nel campo \"Password\" .");
    theForm.PASSWD.focus();
    return (false);
  }

  if (theForm.PASSWD.value.length > 16) {
    alert("Attenzione inserire al massimo 16 caratteri nel campo  \"Password\" .");
    theForm.PASSWD.focus();
    return (false);
  }

  str = theForm.PASSWD.value;
  arr = str.match(re);
  if ( arr != null ) {
    alert("Attenzione nel campo \"Password\" non devono essere presenti caratteri speciali.");
    theForm.PASSWD.focus();
    return (false);
  }  

}
else {
  var loc = window.location;
  var sLoc = loc.toString();
//alert(sLoc.substr(0,27));

if (sLoc.substr(0,27)=="https://www.monetaonline.it") {  
    alert("Attenzione inserire almeno 5 caratteri nel campo \"Password\" .");
    theForm.PASSWD.focus();
    return (false);
  }
}

}  
