function invia(lingua) {
  var mandatory;
  var fieldMandatory = new Array(1);
  var lunFieldMandatory = 1;
  fieldMandatory[0] = "this.moduloForm.e_mail";
  
  for(var i=0;i<lunFieldMandatory;i++) {
     mandatory = eval(fieldMandatory[i]).value;
     if(mandatory == "")   {
		if(lingua == "ita") 
        	alert("ATTENZIONE: inserire l'indirizzo email.");
		else if(lingua == "ger") 
        	alert("ACTHTUNG: das email Feld ist obligatorisch.");
		else if(lingua == "ing") 
        	alert("ATTENTION: the email field is compulsory.");
			
		eval(fieldMandatory[i]).value = "";
        eval(fieldMandatory[i]).focus();
        return false;
     }
     else continue;
  }
      document.moduloForm.submit();
    return(true);
}

var remoteWin;
function newWindowC(newUrltoOpen, width, height) { 
   var winl = (screen.width - width) / 2; 
   var wint = (screen.height - height) / 2; 
   if(remoteWin && remoteWin.close) { 
       remoteWin.close(); 
       remoteWin = null; 
   } 
   else { 
       remoteWin = null; 
   } 
   if (remoteWin == null) { 
       remoteWin = window.open("","remoteWin", 
          'toolbar=0,location=0,directories=0,statusbar=0,status=0,menubar=0,scrollbars=1,resizable=1,menubar=no,copyhistory=no,width=' + width + ',height=' +  height + ',top='+wint+',left='+winl ); 
       remoteWin.location.href=newUrltoOpen; 
    } 
}

