function checkForm(objform){
	var tuttok=true;
	var n=0;
	var ar;

	function check_char(campo, valore, lunghezza){
		var passa=true;
		if(valore.length>0){
			if(valore.length<lunghezza){
				passa=false;
				alert("campo "+campo+" deve essere di "+lunghezza+" cifre; ora e' di " + valore.length);
			}
		}
		return passa;
	}

	for(n=1;n<checkForm.arguments.length;n+=2){

		ar=checkForm.arguments[n];
		passato=false;

		if(!passato){
			if(eval('objform.'+ar.toLowerCase()+'.value')==""){
				alert("Il campo '"+ar+"' deve essere compilato\nField '"+checkForm.arguments[n+1]+"' must be filled");
				tuttok=false;
				passato=true;
			}
		}
	}

	return tuttok
}
