function Validacion(theForm){
if (theForm.tipo.options[theForm.tipo.selectedIndex].value == 0)
{
alert('Debe seleccionar el contacto.');
theForm.tipo.focus();
return (false);
}
if (theForm.contacto.options[theForm.contacto.selectedIndex].value == 0)
{
alert('Debe seleccionar la persona de contacto.');
theForm.contacto.focus();
return (false);
}
if (theForm.nombre.value == '')
{
alert('Debe ingresar un valor en el campo Nombre.');
theForm.nombre.focus();
return (false);
}

if (theForm.mail.value == '')
{
alert('Debe ingresar un valor en el campo Mail.');
theForm.mail.focus();
return (false);
}
}
