﻿// Archivo JScript 04/08/06

function validar() {
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txtnombre')
    if (txt != null) {
         if (txt.value == '') {
            alert('    Rellene el campo Nombre, por favor.');
            return false;
            }         
          } 
          
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txtapellidos')
    if (txt != null) {
         if (txt.value == '') {
            alert('    Rellene el campo Apellidos, por favor.');
            return false;
            }         
          } 
     
     
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txtdireccion')
    if (txt != null) {
         if (txt.value == '') {
            alert('     Rellene el campo Direccion, por favor.');
            return false;
            }         
          } 
          
          
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txtcp')
    if (txt != null) {
         if (txt.value == '') {
            alert('     Rellene el campo CP, por favor.');
            return false;
            }         
          } 
          
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txtlocalidad')
    if (txt != null) {
         if (txt.value == '') {
            alert('     Rellene el campo Localidad, por favor.');
            return false;
            }         
          }    
          
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txtprovincia')
    if (txt != null) {
         if (txt.value == '') {
            alert('     Rellene el campo Provincia, por favor.');
            return false;
            }         
          }  
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txtemail')
    if (txt != null) {
         if (txt.value == '') {
            alert('      Rellene el campo eMail, por favor.');
            return false;
            }         
          }  
          
    var txt = document.getElementById('ctl00_ContentPlaceHolder1_Petform1_txttfno')
    if (txt != null) {
         if (txt.value == '') {
            alert('       Relleneel  campo Tfno, por favor.');
            return false;
            }         
          }  
    }
