function formInfoJS(toOpen) {

	oForm=document.getElementById(toOpen);
	oStart=document.getElementById('nome');
	oForm.style.display="block";
	oStart.focus();
	return false;

}

function controllo_form() {

	oNome=document.getElementById('nome');
	oEmail=document.getElementById('email');
	oEmail1=document.getElementById('email1');
	oTesto=document.getElementById('testo');

	if (oNome.value=='') {
		alert ("Scrivi il nome");
		oNome.focus();
		return false;
	}

	if (oEmail.value!=oEmail1.value) {
		alert ("Scrivi lo stesso indirizzo di email");
		oEmail.focus();
		return false;
	}

	if ((oEmail.value.length<5)) {
		alert ("Formato email non valido");
		oEmail.focus();
		return false;
	}

	if (oEmail.value.indexOf("@")==-1) {
		alert ("Formato email non valido");
		oEmail.focus();
		return false;
	}

	if (oTesto.value=='') {
		alert ("Scrivi il testo");
		oTesto.focus();
		return false;
	}

}

function controllo_formNL() {

	oNome=document.getElementById('nome');
	oEmail=document.getElementById('email');
	oEmail1=document.getElementById('email1');

	if (oNome.value=='') {
		alert ("Scrivi il nome");
		oNome.focus();
		return false;
	}

	if (oEmail.value!=oEmail1.value) {
		alert ("Scrivi lo stesso indirizzo di email");
		oEmail.focus();
		return false;
	}

	if ((oEmail.value.length<5)) {
		alert ("Formato email non valido");
		oEmail.focus();
		return false;
	}

	if (oEmail.value.indexOf("@")==-1) {
		alert ("Formato email non valido");
		oEmail.focus();
		return false;
	}

}

