function validate()
{
	var valid = true;
	var alertStr = "";
		
	if(document.contactForm.name.value == "")
	{
		alertStr += "Name\n";
		valid = (false);
	}
	if(document.contactForm.email.value == "")
	{
		alertStr += "Email\n";
		valid = (false);
	}
	if(document.contactForm.enquiry.value == "")
	{
		alertStr += "Enquiry\n";
		valid = (false);
	}
	if(!valid)
	{
		alert("Following field(s) not entered:\n\n" + alertStr);
		return (false);
	}
	else
	{
		return valid;
	}
}

function emailvalidation(entered, alertbox)
{
	// E-mail Validation by Henrik Petersen / NetKontoret
	// Explained at www.echoecho.com/jsforms.htm
	// Please do not remove this line and the two lines above.
	with (entered)
	{
		apos=value.indexOf("@"); 
		dotpos=value.lastIndexOf(".");
		lastpos=value.length-1;
		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
		{
			if (alertbox) 
			{
				alert(alertbox);
			} 
			return false;
		}
		else 
		{
			return true;
		}
	}
} 
//-->
