	        <!--

	        function checkContactForm()
	        {

		        //Check to see if each required field is filled in, if not display the error div and increase errorCounter

		        var errorCounter = 0;
                
                //Check to see all fields are filled in
		        if	((document.frmContact.name.value == "") || (document.frmContact.email.value == "") || (document.frmContact.message.value == "") || (document.frmContact.question.value == ""))
		        {
			        document.getElementById('contactError').style.display='block';
			        errorCounter = errorCounter + 1;
		        }
		        else
		        {
			        document.getElementById('contactError').style.display='none';
		        }
		        
                //Check the email address is valid
                $address=frmContact.email.value;
                apos=$address.indexOf("@")
                dotpos=$address.lastIndexOf(".")
                if (apos<1||dotpos-apos<2)
                {
                    document.getElementById('frmemailError').style.display='block';
                    errorCounter = errorCounter + 1;
                }
                else
                {
                    document.getElementById('frmemailError').style.display='none';
                }
				
		        
		        //If the errorcounter is greater than 0 show the main error message
		        if (errorCounter > 0)
		        {
        		
			        //alert(errorCounter);
			        document.location.href='#form-error';
			        alert("The form was not completed correctly.");
			        return (false);
        			
		        }
        		
                else
                {
			        return true;
	            }
        	    
	        }

	        //-->

