function sendPrevFnc(){
one_check = 0;

if (document.form1.txtNome.value == "" && one_check == 0){
first_check = "txtNome";
one_check = 1;
}

if (document.form1.txtCognome.value == "" && one_check == 0){
first_check = "txtCognome";
one_check = 1;
}

if (document.form1.txtAzienda.value == "" && one_check == 0){
first_check = "txtAzienda";
one_check = 1;
}

if (document.form1.txtRuolo.value == "" && one_check == 0){
first_check = "txtRuolo";
one_check = 1;
}

if (document.form1.txtTelefono.value == "" && one_check == 0){
first_check = "txtTelefono";
one_check = 1;
}

if (document.form1.txtTelefono.value == "" && one_check == 0){
first_check = "txtTelefono";
one_check = 1;
}

if (checkMail("txtEmail") == false && one_check == 0){
first_check = "txtEmail";
one_check = 1;
}

if (document.form1.txtOggetto.value == "" && one_check == 0){
first_check = "txtOggetto";
one_check = 1;
}

if (document.form1.AreaEmailText.value == "" && one_check == 0){
first_check = "AreaEmailText";
one_check = 1;
}

if (one_check == 0){
document.form1.submit();
}
else{
	document.form1[first_check].focus();
}

}

function checkMail(InputData){
Mail = document.form1[InputData].value;
var mailRet = false;
	Filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
  	if (Filtro.test(Mail)){
	mailRet = true;}
return mailRet;}
function checkUserID(InputData){
user = document.form1[InputData].value;
var userRet = false;
user.test=/\w/;
if (user != false){
		if (user.length >= 6 && user.length <= 12 ){
		userRet = true;}
}
return userRet;}