function soloNum(){	   var karact = event.keyCode;                      var elem = document.activeElement.name;	   if((((karact<48) || (karact>57)) && ((karact<96) || (karact>105))) && (karact!=8) && (karact!=9) && (karact!=16) && (karact !=46) && (karact !=188)){		event.returnValue = false;	   }else{	   }}function checkForm(myForm) {      var myBool;      myBool = true;         // controllo campi text         for (var i = 0; i <= (myForm.elements.length -1); i++) {        var classe = myForm.elements[i].className;         if (classe == "Obbligatorio") {           var nome = myForm.elements[i].name;           var id = myForm.elements[i].id;           var valore = myForm.elements[i].value;              if(valore =="") {                      alert ("Il campo  " + id + "  \u00E8 obbligatorio !");                      myForm.elements[i].focus();                        myBool = false;                      break;                }           }           }           return myBool;}function doProcess( frm,act) {frm.action=act;	frm.submit();}function checkData(day){var daysInMonth = new Array(12);var DataRiga = new Date(day);daysInMonth[2] = 29;   // si deve testare in programmaif ((day.charAt(2) == '/') && (day.charAt(5) == '/')){	D=day.split('/');	gg=D[0];	mm=D[1];	aa=D[2];	if(isNaN(gg)){	alert('Il giorno deve essere un valore compreso tra 01 e 31');	return false;	}else if((gg>31)||(gg.length<2)){	alert('Il giorno deve essere compreso tra 01 e 31')	return false;	}else if(isNaN(mm)){	alert('Il mese deve essere un valore compreso tra 01 e 12');	return false;		}else if((mm>12)||(mm.length<2)){	alert('Il mese deve essere compreso tra 01 e 12')	return false;		}else if(mm<01){	alert('Il mese deve essere compreso tra 01 e 12')	return false;	}else if(isNaN(aa)){	alert('Inserire un valore numerico per l\' anno');	return false;	}else if ((aa.length<4)||(aa.length>4) ){	 alert('L\' anno deve essere nel formato aaaa');	 return false;	 }	 	 }else{alert('inserire la data nel formato gg/mm/aaaa ')return false;}if ((mm=='04')||(mm=='06')||(mm=='09')||(mm=='11')){		if(gg>30){			alert('Il mese inserito \u00E8 di 30 giorni');			return false;			}}else if(mm=='02'){//processo anno bisestile	if(gg>29){	alert('Febbraio ha meno di 30 giorni');	return false	}else if ((gg=='29')&&(!((aa % 4 == 0) && (!(aa % 100 == 0)) || (aa % 400 == 0)))){	alert('L\'anno inserito non \u00E8 bisestile');	return false;	}}	return true;}function addCart(qt, cod, list) {var dbName = document.search.dbName.value;   if (qt == "" ) {      alert('Per favore, inserire la quantit\u00E0.');   } else {      window.open('/'+dbName+'/cart?openform&itemId='+cod+'&itemQt='+qt+'&perform=add&listino='+list,'cart','menubar=0,resizeable=yes,scrollbars=yes,left=0,top=0,width=800,height=600');   }   return false;}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;   }      