function control(fform) {

	Ctrl = fform.referente;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci la ragione sociale o il nome e cognome");
	return false;
	}
	Ctrl = fform.email0;
	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");
	return false;
	}
	Ctrl = fform.via;
	if (Ctrl.value == "" )  {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci l'indirizzo");
	return false;
	}
	Ctrl = fform.citta;
	if (Ctrl.value == "" )  {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci la cittą");
	return false;
	}
	Ctrl = fform.prov;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci la provincia");
	return false;
	}
	Ctrl = fform.cap;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, Inserisci il  cap");
	return false;
	}
	if (isNaN(Ctrl.value)) { 
	validatePrompt (Ctrl, "Il cap deve essere un valore numerico composto da 5 cifre"); 
	return false; 
	} 
	Ctrl = fform.messaggio;
	if (Ctrl.value == "") {
	validatePrompt (Ctrl, "Campo obbligatorio, manca il testo del messaggio");
	return false;
	}
return true;
}

function validatePrompt (Ctrl, PromptStr) {
	alert (PromptStr)
	return false;
}
 

// -->