// JavaScript Document

function check_contact()
{
	
	var email = document.getElementById('email');
	var name = document.getElementById('name');
	var subject = document.getElementById('subject');
	var notice = document.getElementById('notice');
	var comment = document.getElementById('whatCanWeDo');
	
	if(!reEmail.test(email.value))
	{
		alert('Please enter a valid email address');
		email.focus();
		email.select();
		return false;
	}
	
	if(!reStr.test(name.value))
	{
		alert('Please enter your name');
		name.focus();
		name.select();
		return false;
	}
	
	if(!reStr.test(subject.value))
	{
		alert('Please enter the subject of your message');
		subject.focus();
		subject.select();
		return false;
	}
	
	if(comment.value =='') 
	{
		alert('Please enter your comments');
		comment.focus();
		comment.select();
		return false;
	}
	
	
}
