
function Campo_Alfabetico (where) {
	// Variabili
	var a= where.value;
	var bol_ok= true;
	// Controllo caratteri alfabetici
	for (counter= 0; counter< a.length; counter++)
		{
			if (a.charAt(counter).toLowerCase()<'a' || a.charAt(counter).toLowerCase()>'z')
				bol_ok= false;
		}
	// Restituisce valore
	return bol_ok;
}

function Campo_Identificatore (where) {
	// Variabili
	var a= where.value;
	var bol_ok= true;
	// Controllo caratteri
	for (counter= 0; counter< a.length; counter++)
		{
			var carattere= a.charAt(counter);
			if ((carattere.toLowerCase()<'a' || carattere.toLowerCase()>'z') && (isNaN(carattere)) && carattere!= '_' && carattere!= '&')
				bol_ok= false;
			else
			if (carattere= '&')
				bol_ok= false;
		}
	// Restituisce valore
	return bol_ok;
}

function Campo_Email (where) {
	// Variabili
	var a= where.value;
	var bol_ok= true;
	var Chiocciola= -1;
	var Punto= -1;
	// Controllo presenza '@'
	Chiocciola= a.indexOf('@');
	Punto= a.lastIndexOf('.');

	if (Chiocciola< 1 || Chiocciola>= (a.length-1) || !(Chiocciola + 1< Punto) || Punto< 1 || Punto>= (a.length-1) || a.indexOf('.')< 1)
		bol_ok= false;

	// Restituisce valore
	return bol_ok;

}


