

function SOHOValidator(theForm) { 



if (theForm.txtNombre.value == "") { 

	alert("El campo Nombre es un dato obligatorio."); 

	theForm.txtNombre.focus(); 

	return (false); 

} 

if (theForm.txtApellido.value == "") { 

	alert("El campo Apellido es un dato obligatorio."); 

	theForm.txtApellido.focus(); 

	return (false); 

} 

if (theForm.txtNombreEmpresa.value == "") { 

	alert("El campo Nombre del instituto / Empresa es un dato obligatorio"); 

	theForm.txtNombreEmpresa.focus(); 

	return (false); 

} 

if (theForm.txtCargoEmpresa.value == "") { 

	alert("El campo Cargo en el instituto / Empresa es un dato obligatorio"); 

	theForm.txtCargoEmpresa.focus(); 

	return (false); 

} 

if (theForm.txtDireccionEmpresa.value == "") { 

	alert("El campo dirección del instituto / Empresa es un dato obligatorio"); 

	theForm.txtDireccionEmpresa.focus(); 

	return (false); 

} 

if (theForm.txtCiudad.value == "") { 

	alert("El campo Ciudad es un dato obligatorio"); 

	theForm.txtCiudad.focus(); 

	return (false); 

} 

if (theForm.txtDepartamento.value == "") { 

	alert("El campo Provincia / Estado / Departamento es un dato obligatorio"); 

	theForm.txtDepartamento.focus(); 

	return (false); 

} 

if (theForm.cmbPais.value == "") { 

	alert("El campo País es un dato obligatorio"); 

	theForm.cmbPais.focus(); 

	return (false); 

} 



if (theForm.txtTelefono.value == "") { 

	alert("El campo Teléfono es un dato obligatorio"); 

	theForm.txtTelefono.focus(); 

	return (false); 

} 

if (theForm.txtEmail.value == "") { 

	alert("El campo E-mail es un dato obligatorio"); 

	theForm.txtEmail.focus(); 

	return (false); 

} 

if (theForm.txtEmail.value.indexOf("@") ==-1 || theForm.txtEmail.value.indexOf(" ") !=-1 || theForm.txtEmail.value.indexOf(".") ==-1 || theForm.txtEmail.value.length < 6) { 

	alert("La direccion de E-mail ingresada no tiene un formato válido."); 

	theForm.txtEmail.focus(); 

	return (false); 

}

if (theForm.cmbInformacionSobre.value == "") {

	alert("El campo Información de Interés es obligatorio");

	theForm.cmbInformacionSobre.focus();

	return (false);

}

if (theForm.cmbInformacionPara.value == "") {

	alert("El campo Perfil de Registro es obligatorio");

	theForm.cmbInformacionPara.focus();

	return (false);

}

if (theForm.chkPrimaria.checked == "" && theForm.chkSecundaria.checked == ""  && theForm.chkVocacional.checked == ""  ) { 

alert("El campo Niveles de interés es un dato obligatorio."); 

theForm.chkPrimaria.focus(); 

return (false); 

} 



if ((theForm.cmbTipoEmpresa.options[theForm.cmbTipoEmpresa.selectedIndex].value == "Otro") && (theForm.txtOtroTipoEmpresa.value == "")) { 

	alert("Debe especificar Otro Tipo de Empresa"); 

	theForm.txtOtroTipoEmpresa.focus(); 

	return (false); 

} 



if ((theForm.cmbSitioWeb.value == "Otro") && (theForm.txtOtroSitioWeb.value == "")) { 

	alert("Debe especificar Cómo llegó a nuestro Sitio Web"); 

	theForm.txtOtroSitioWeb.focus(); 

	return (false); 

}

return (true); 

}





function MM_jumpMenu(targ,selObj,restore){ //v3.0

	if (selObj.options[selObj.selectedIndex].value!="") { 

		  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

		  if (restore) selObj.selectedIndex=0;

	}

}		  

	


