﻿function validate()
             {
               
                               
              var obj = document.getElementById('txtname');
               
               if(!(chkEmpty(obj,"first name")))
               {
                    return false;
               }    
                                     
            
        
                     
                obj = document.getElementById('txtmob');
               if(!(chkEmpty(obj,"mobile number") &&  chkPattern(obj,"mobile number",/^\d*[0-9]?$/)))
               {
                    return false;
               } 
               
               obj = document.getElementById('txtemail');
               if(!(chkEmpty(obj,"email address") && chkPattern(obj,"email address",/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)))
               {
                    return false;
               }
         
               
               
                return true;
           }
              
              
              // JScript File


