// JavaScript Document
<!--
form_submitted=false
function ValidateEmail(theinput)
{
	s=theinput.value
	if(s.search)
	{
		return (s.search(new RegExp("^([-!#$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,4}$","gi"))>=0)
	}
	if(s.indexOf)
	{
		at_character=s.indexOf('@')
		if(at_character<=0 || at_character+4>s.length)
			return false
	}
	if(s.length<6)
		return false
	else
		return true
}

function ValidateForm(theform)
{
	if(theform['first_name'].value=='')
	{
		if(theform['first_name'].focus)
			theform['first_name'].focus()
		alert('Please enter your First Name')
		form_submitted=false
		return false
	}
	/*if(theform['last_name'].value=='')
	{
		if(theform['last_name'].focus)
			theform['last_name'].focus()
		alert('Please enter your Last Name')
		form_submitted=false
		return false
	}*/
	if(ValidateEmail(theform['email'])==false)
	{
		if(theform['email'].focus)
			theform['email'].focus()
		alert('Please enter a valid e-mail address')
		form_submitted=false
		return false
	}
	if(theform['comments'].value=='')
	{
		if(theform['comments'].focus)
			theform['comments'].focus()
		alert('Please enter your Comments')
		form_submitted=false
		return false
	}
	
	return true
}