function formSubmit() {
	var txtFname = document.getElementById('txtFname').value;
	var txtLname = document.getElementById('txtLname').value;
	var txtEmail= document.getElementById('txtEmail').value;
	var txtComments = document.getElementById('txtComments').value;	
	
	
	if ( (txtFname == '') || (txtLname == '') || (txtEmail == '') || (txtComments == '')){ 
	   alert('Some Required Fields are missing.  Please fill in all fields and Press Submit.');
	   return;
	 }
 
 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;
 }
 document.form1.submit();


} // end function

function popupSubmit() {
	var txtEmail= document.getElementById('txtEmail').value;
	
	if ( (txtEmail == '')){ 
	   alert('Please fill up the E-mail Field.');
	   return;
	 }
 
 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;
 }
 document.form1.submit();


} // end function





function view_pdf(position,name)
{
	var arg = 'resizable=no, toolbar=no,location=no,directories=no,addressbar=no,scrollbars=no,status=no,menubar=no,width=450,height=128,top=500,left=400';
  	var newWindow  =  window.open("pop_up.php", "_blank",arg);
}