<!--
function verify() {
	if((document.enquiry.contactname.value == '')) {
		alert('Unfortunately your message has not been sent, please ');
		
	} else {
		if((document.enquiry.email.value == '') & (document.enquiry.telephone.value == '')) {
		alert('Unfortunately your request for an intial assessment has not been sent. Please make sure you enter either your email address or telephone number and complete all of the fields.');
		} else {
		if(!ValidateNo(document.enquiry.telephone.value,"1234567890+-() ")) 
    		{ 
        	alert('Unfortunately the phone number you entered seems invalid, please try re-typing it.'); 
        	
        	document.enquiry.telephone.focus(); 
        	return false; 
    		}  else {
				if(!ValidateName(document.enquiry.name.value,"abcdefghijklmnopqrstuvwyxz ABCDEFGHIJKLMNOPQRSTUVWYXZ-")) 
    			{ 
        		alert('Unfortunately there seems to be an error in the contact name you supplied, please try retyping it and submitting again.'); 
        	
        		document.enquiry.contactname.focus(); 
        		return false; 
    			}  else {
				document.enquiry.submit(); 
				return true;
				}
			}
		}

		
	}

}

function ValidateNo(NumStr, String) 
{ 
    for(var Idx=0; Idx<NumStr.length; Idx++) 
    { 
        var Char = NumStr.charAt(Idx); 
        var Match = false; 

        for(var Idx1=0; Idx1<String.length; Idx1++) 
        { 
            if(Char == String.charAt (Idx1)) 
                Match = true; 
        } 

        if (!Match) 
            return false; 
    } 
    return true; 
} 

//-->

