function valida() {
	
	var errors = "";
	re=new RegExp('^[0-9]+$');
	if(document.contacto.nombre.value.length<1){
		errors+="The field <b>First Name</b> is mandatory<br>";
	}
	
	if(document.contacto.apellidos.value.length<1){
		errors+="The field <b>Last Name</b> is mandatory<br>";
	}
			
	if(document.contacto.email.value.length<1){
		errors+="The field <b>Email</b> is mandatory<br>";
	}
	else{
		
		if(document.contacto.email.value.length < 5)
          {
              errors+="The field <b>Email</b> es incorrecto<br>";
          }
                 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.contacto.email.value))
          {
            ;
          }
          else
          {
            errors+="The field <b>Email</b> es incorrecto<br>";
          } 		
			
	}
	
	if(document.contacto.telefono.value.length<1){
		errors+="The field <b>Telephone</b> is mandatory<br>";
	}
	else{
		numeric = new RegExp('^[0-9]+$');
		if(numeric.test(document.contacto.telefono.value)){
			;
		}
		else{
			errors+="The field <b>Telephone</b> is not correct<br>";
		}
	}	
	
	if(document.contacto.direccion.value.length<1){
		errors+="The field <b>Address</b> is mandatory<br>";
	}			
	
	if(document.contacto.poblacion.value.length<1){
		errors+="The field <b>Town/City</b> is mandatory<br>";
	}
	
	if(document.contacto.provincia.value.length<1){
		errors+="The field <b>District</b> is mandatory<br>";
	}	
	
	if(document.contacto.comentarios.value.length<1){
		errors+="The field <b>Message</b> is mandatory<br>";
	}					
	
	if(errors == "")
		return true;
	else{
		document.getElementById("errors").innerHTML = errors;
		return (false);
	}	

}

