/* Javascript para formulario de preinscripcion */

function validarpi(){
	if(document.reg.family_name.value==""){
		alert("You must fill the FAMILY NAME field");
		return false;
	}
	if(document.reg.first_name.value==""){
		alert("You must fill the FIRST NAME field");
		return false;
	}
	if(document.reg.affiliation.value==""){
		alert("You must fill the AFFILIATION field");
		return false;
	}
	if(document.reg.address.value==""){
		alert("You must fill the ADDRESS field");
		return false;
	}
	if(document.reg.city.value==""){
		alert("You must fill the CITY field");
		return false;
	}
	if(document.reg.country.value==""){
		alert("You must fill the COUNTRY field");
		return false;
	}
	if(document.reg.phone.value==""){
		alert("You must fill the PHONE field");
		return false;
	}
	if(document.reg.email.value==""){
		alert("You must fill the E-MAIL field");
		return false;
	}
	if(document.reg.title.value==""){
		alert("You must fill the TITLE field");
		return false;
	}
	document.reg.submit();
	return true;
}
