	        <!--

	        function validateForm()
	        {

		        //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.firstName.value == "") || (document.frmContact.address.value == "") || (document.frmContact.postcode.value == "") || (document.frmContact.telephone.value == "") || (document.frmContact.email.value == "") || (document.frmContact.confirmEmail.value == "") || (document.frmContact.property.value == "") || (document.frmContact.message.value == "") )
		        {
			        document.getElementById('fillError').style.display='block';
			        errorCounter = errorCounter + 1;
		        }
		        else
		        {
			        document.getElementById('fillError').style.display='none';
		        }
        		
		        // check the email address is valid
		        $address=document.frmContact.email.value;
		        apos=$address.indexOf("@")
		        dotpos=$address.lastIndexOf(".")
        	
		        if (apos<1||dotpos-apos<2)
		        {
			        document.getElementById('emailError').style.display='block';
			        errorCounter = errorCounter + 1;
		        }
		        else
		        {
			        document.getElementById('emailError').style.display='none';
		        }
        		
               //Check to see both emails match
		        if	(document.frmContact.email.value !== document.frmContact.confirmEmail.value)
		        {
			        document.getElementById('confirmEmailError').style.display='block';
			        errorCounter = errorCounter + 1;
		        }
		        else
		        {
			        document.getElementById('confirmEmailError').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;
	            }
        	    
	        }

	        //-->
