// JavaScript Document
function blockError(){return true;}
window.onerror = blockError;

 function ValidateForm(){
		            var msg;
		            var msg2;
		            msg=""
		            msg2="";
                if (document.getElementById('txtFirstName').value=="")
		            msg +="- First Name\n" 
		        if (document.getElementById('txtLastName').value=="")
		            msg +="- Last Name\n" 
		        if (document.getElementById('txtComments').value=="")
		            msg +="- Comments\n"
	            if (document.getElementById('txtEmail').value=="")
		            msg +="- Email\n" 
		            else{
		            if (IsValidEmailAddress(document.getElementById('txtEmail'))==false)
	               msg2="- Invalid email address \n"}
	            if (msg!="")
	            {
	               msg="Please enter the following information:\n" + msg +msg2
		            alert(msg);
		            return false;
	            }
	            else{
	               if (msg2==""){
	               return true;
	               }else{
	                alert(msg2);
		            return false;}
		            }
	} 
	
	function ValidateNewsletterForm()
			{
		            var msg;
		            var msg2;
		            msg=""
		            msg2="";
                if (document.getElementById('txtFirstName').value=="")
		            msg +="- First Name\n" 
		        if (document.getElementById('txtLastName').value=="")
		            msg +="- Last Name\n" 
	            if (document.getElementById('txtEmail').value=="")
		            msg +="- Email\n" 
		            else{
		            if (IsValidEmailAddress(document.getElementById('txtEmail'))==false)
	               msg2="- Invalid email address \n"}
	            if (msg!="")
	            {
	               msg="Please enter the following information:\n" + msg +msg2
		            alert(msg);
		            return false;
	            }
	            else{
	               if (msg2==""){
	               return true;
	               }else{
	                alert(msg2);
		            return false;}
		            }
	} 
function IsValidEmailAddress(txt){
	if(txt.value !=""){ 
		var goodEmail = txt.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
		if (goodEmail){
			return true;
		} else {
			return false;
		}
	}
}
    function Reset()
    {
        document.Form1.reset();
		return false;
    }
