function validate(theForm)
	{
		var errors = new Array();
	
	
		clearErrors();
		
		if(theForm.name.value == "" )
		{
			errors.push("Please tell us your name.");	
		}
	
	
		if(theForm.email.value == "" )
		{
			errors.push("Please supply your email address.");	
		}
	
	

		if(theForm.question.value == "")
		{
			errors.push("Please enter your enquiry.");	
		}


	
		if(errors.length > 0)
		{
			showErrors(errors);	
			return false;
		}	
		
	
		return true;
		
	} // validate()




	function clearErrors()
	{
		errorBox = document.getElementById('errors');
		errorBox.innerHTML = "";
	
	} // clearErrors()
	


	function showErrors(errors)
	{
		errorBox = document.getElementById('errors');
		errorHTML = '<ul><label>Some required information is missing</label>';
		
		 for(var i=0; i < errors.length; i++)
		 {
		 	errorHTML = errorHTML + '<li>'+errors[i]+'</li>';
		 }
		 
		errorHTML = errorHTML + '</ul>'; 
		
		errorBox.innerHTML = errorHTML;
	
	} // showErrors()
