
function checkEmailAddy()
{
 bGoodJob = true;
 sAddy = document.contact.emailaddy.value;
 
 sTemp = new String(sAddy);
 rExp = /@/gi;
 res = sTemp.search(rExp)
 if(res == -1)
   bGoodJob = false;
  
 rExp = /.com/gi;
 res = sTemp.search(rExp)
 if(res == -1)
   bGoodJob = false;
 
 if(sAddy.length == 0)
   bGoodJob = false;

 if (confirm("If a valid email address in not entered\nwe will not be able to respond to you.\nClick OK if you wish to submit the message as is."))
   document.contact.submit();
}

function clearElement(p_Element)
{
	p_Element.value = "";
}

function EmailListSubmit()
{
 bGoodJob = true;
 sAddy = document.mailinglist.email.value;

 sTemp = new String(sAddy);
 rExp = /@/gi;
 res = sTemp.search(rExp)
 if(res == -1)
   bGoodJob = false;
  
 rExp = /.com/gi;
 res = sTemp.search(rExp)
 if(res == -1)
   bGoodJob = false;
 
 if(sAddy.length == 0)
   bGoodJob = false;

 if (bGoodJob)
   window.open("/email/email.php","pop","width=500,height=350,toolbars=0,scrollbars=0,resizable=1");
	else
	  alert("Please enter a valid email address.")		
		

}