// JavaScript Document
function ValidateForm(form){
   if(IsEmpty(form.Ubicacion)){ 
      alert('Escriba un valor para el campo "Project Ubicacion" '); form.Ubicacion.focus(); return false; 
   } 
   if(IsEmpty(form.Tipo_Inmueble)){ 
      alert('Escriba un valor para el campo "Tipo_Inmueble" '); form.Tipo_Inmueble.focus(); return false; 
   } 
   if(IsEmpty(form.nombre)){ 
      alert('Escriba un valor para el campo "Nombre" '); form.nombre.focus(); return false; 
   } 
   if(IsEmpty(form.email)){ 
      alert('Escriba un valor para el campo "Email" '); form.email.focus(); return false;
   } 
   if(IsEmpty(form.telefono)){ 
      alert('Please enter a value for the "Telefono (s)" '); form.telefono.focus(); return false;
   } 
return true;
 
} 
 
function IsEmpty(aTextField){
   if ((aTextField.value.length==0)||(aTextField.value==null)){
      return true;
   }
   else { return false; }
} 
 
