function validate_contact(f)
{
	var Numeric;
	Numeric = "^[0-9]+$";
	
	var theForm = document.getElementById("contactform");
	
	if(theForm.name.value == '')
	{
		alert("Name cannot be empty");
		theForm.name.focus();
	}
	else if(theForm.email.value == '')
	{
		alert("Email cannot be empty");	
		theForm.email.focus();
	}
	else if(theForm.phone.value == '')
	{
		alert("Phone cannot be empty");	
		theForm.phone.focus();
	}
	else if(theForm.message.value == '')
	{
		alert("Message cannot be empty");	
		theForm.message.focus();
	}
	else if(document.getElementById('code').value == "") 
	{
		alert("Verification Code cannot be empty");
		document.getElementById('captcha').focus();
	}	
	else if(document.getElementById('code').value != document.getElementById('captcha').value) 
	{
		alert("Verification code did not match the Captcha Image");
		document.getElementById('captcha').focus();
	}
	else
	{
		theForm.submit();
	}
}
