function validForm(theForm)
{	
	if (theForm.name.value=="")
	{
		alert("You need to enter you name")
		theForm.name.focus()
		return false	
	}
	
	if (theForm.email.value=="")
	{
		alert("You need to enter your email address")
		theForm.email.focus()
		return false
	}
	
	re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	
	if (!re.test(theForm.email.value))
	{
		alert("Your email address is not valid")
		return false
	}
	
	if (theForm.subject.value=="")
	{
		alert("You need to enter a subject")
		theForm.subject.focus()
		return false
	}
	
	if (theForm.feedback.value=="")
	{
		alert("You need to give feedback")
		theForm.feedback.focus()
		return false
	}
	
	return true
}
