function control(fform) {

	Ctrl = fform.nome;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo nome\nField Obbligate, Insert your name");
	return false;
	}
	Ctrl = fform.cognome;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo cognome\nField Obbligate, Insert your surname");
	return false;
	}
	Ctrl = fform.login;
	if (Ctrl.value == "" || Ctrl.value.indexOf ('@', 0) == -1 || Ctrl.value.indexOf('.') == -1 || (Ctrl.value.indexOf(' ') != -1))  {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo indirizzo email\nField Obbligate, Insert your email address");
	return false;
	}
	Ctrl = fform.stato;
	if (Ctrl.value == "" )  {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo stato\nField Obbligate, Insert your country");
	return false;
	}
	Ctrl = fform.citta;
	if (Ctrl.value == "" )  {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci la tua cittā\nField Obbligate, Insert your city");
	return false;
	}
	Ctrl = fform.indirizzo;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo indirizzo\nField Obbligate, Insert your address");
	return false;
	}
	Ctrl = fform.cap;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo cap\nField Obbligate, Insert your zipcode");
	return false;
	}
	if (isNaN(Ctrl.value)) { 
	validatePrompt (Ctrl, "Il cap deve essere un valore numerico composto da 5 cifre\nField must be five number long"); 
	return false; 
	} 

	Ctrl = fform.datadinascita;
	if (Ctrl.value.length != 10) { 
	validatePrompt (Ctrl, "Campo obbligatorio, Inserire la data di nascita nel formato gg/mm/aa\nField Obbligate, Insert your date of birth with fformat: gg/mm/aa"); 
	return false; 
	} 
	else if (Ctrl.value.substring(0,2) > 31) { 
	validatePrompt (Ctrl, "Il giorno della data di nascita č errato.\nThe day of birth is incorrect"); 
	return false; 
	} 
	else if (Ctrl.value.substring(3,5) > 12) { 
	validatePrompt (Ctrl, "Il mese della data di nascita č errato.\nThe month of birth is incorrect"); 
	return false; 
	} 
	else if (Ctrl.value.substring(2,3) != '/' || Ctrl.value.substring(5,6) != '/' || isNaN(Ctrl.value.substring(0,2)) || 	isNaN(Ctrl.value.substring(3,5)) || isNaN(Ctrl.value.substring(6,10)) ) { 
	validatePrompt (Ctrl, "Campo obbligatorio, Inserire la data di nascita nel formato gg/mm/aaaa\nField Obbligate, Insert your date of birth with format: gg/mm/aaaa"); 
	return false; 
	} 
	Ctrl = fform.iva;
	if (Ctrl.value == "" ) {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo codice fiscale o partita iva\nField Obbligate, Insert your assistential code");
	return false;
	}
	Ctrl = fform.telefono;
	if (Ctrl.value == "" ) {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il tuo numero di telefono\nField Obbligate, Insert your phone number");
	return false;
	}
	if (isNaN(Ctrl.value)) { 
	validatePrompt (Ctrl, "Il telefono deve essere un valore numerico\nphone number must be numeric"); 
	return false; 
	}
	Ctrl = fform.cellulare;
	if (Ctrl.value == "" ) {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il numero del tuo cellulare\nField Obbligate, Insert your mobile phone number");
	return false;
	}
	if (isNaN(Ctrl.value)) { 
	validatePrompt (Ctrl, "Il telefono deve essere un valore numerico\nmobile phone number must be numeric"); 
	return false; 
	} 
return true;
}

function validatePrompt (Ctrl, PromptStr) {
	alert (PromptStr)
	return false;
}
 

// -->
