function deleteUser(lang) {
	if(lang=="EN") {
		if(confirm("Delete the registration?"))	document.location="autenticazioneDeleteUser.php";
		}
	else if(lang=="IT") {
		if(confirm("Cancellare la registrazione?"))	document.location="autenticazioneDeleteUser.php";
		}	
	}
	
/*	
function ctrForm(mandatory_fields,password_field,descrPassword,descrConfermaPassword,lang) {
	mandatory_fields_array = mandatory_fields.split(",");
	for(i=0;i<mandatory_fields_array.length;i++) {
		tmp_obj = eval("document.register_modify."+mandatory_fields_array[i]);
		if(tmp_obj.value=="") {
			if(lang=="EN") alert("The field '"+mandatory_fields_array[i]+"' is mandatory");
			else if(lang=="IT") alert("Il campo '"+mandatory_fields_array[i]+"' deve essere valorizzato");
			return false;
			}
		}
	tmp_obj = eval("document.register_modify."+password_field);
	tmp_obj_2 = eval("document.register_modify.c_"+password_field);
	if(tmp_obj.value=="" || tmp_obj_2.value=="") {
		if(lang=="EN") alert("The fields "+descrPassword+" and "+descrConfermaPassword+" are mandatory");
		else if(lang=="IT") alert("I campi "+descrPassword+" e "+descrConfermaPassword+" devono essere valorizzati");
		return false;
		}
	if(tmp_obj.value!=tmp_obj_2.value) {
		if(lang=="EN") alert("The fields "+descrPassword+" and "+descrConfermaPassword+" do not contain the same value");
		else if(lang=="IT") alert("I campi "+descrPassword+" e "+descrConfermaPassword+" devono contenere lo stesso valore");
		return false;		
		}
	return true;
	}
*/	