
function formSubmit() { 

 var txtfname = document.getElementById('fname').value;
 var txtlname = document.getElementById('lname').value;
 var txtemail = document.getElementById('email').value;
 var txtphone = document.getElementById('phone').value;
 var txtcall = document.getElementById('calltime').value;
 var txtcontact = document.getElementById('contactpref').value; 
 var txtcomm = document.getElementById('comment').value;

 
 if ( (txtfname == '')||(txtlname=='')||(txtemail == '')||(txtcomm == '') ) { 
   alert('Required Value Missing. Fill up All the field and try again.');
   return false;
 }
 
 var stremail = txtemail;
 var emailchar = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
 if (!(emailchar.test(stremail))) {
   alert('Invalid E-Mail Address. Please check the E-Mail Address and try again.');
   return false;
 }
 return true;
} // end function


function formQuote() { 

 var txtfname = document.getElementById('nfname').value;
 var txtlname = document.getElementById('nlname').value;
 var txtemail = document.getElementById('nemail').value;
 
 if (txtfname =='' || txtfname=='Frist Name:' || txtlname=='' || txtlname=='Last Name:' || txtemail == '' || txtemail == 'Email:') { 
   alert('Required Value Missing. Fill up All the field and try again.');
   return false;
 }
 
 var stremail = txtemail;
 var emailchar = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
 if (!(emailchar.test(stremail))) {
   alert('Invalid E-Mail Address. Please check the E-Mail Address and try again.');
   return false;
 }
 return true;
} // end function

function freeReport() { 
 var txtfname = document.getElementById('nfname').value;
 var txtlname = document.getElementById('nlname').value;
 var txtemail = document.getElementById('nemail').value;
 
 if (txtfname =='' || txtlname=='' || txtemail == '') { 
   alert('Required Value Missing. Fill up All the field and try again.');
   return false;
 }
 
 var stremail = txtemail;
 var emailchar = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
 if (!(emailchar.test(stremail))) {
   alert('Invalid E-Mail Address. Please check the E-Mail Address and try again.');
   return false;
 }
 return true;
} // end functio