function trimStr(str)
{
    while(str.charAt(0) == (" ") )	
    {
	    str = str.substring(1);	
    }
    while(str.charAt(str.length-1) == " " )
    {
	    str = str.substring(0,str.length-1);	
    }	
    return str;
}

function checkEnquiry()
{

if (trimStr(contactForm.clientName.value) == ""){ 
alert("Please provide a name")
contactForm.clientName.focus()
contactForm.clientName.select()
return false
}

if ( ( trimStr(contactForm.clientTel.value) == "" ) && ( trimStr(contactForm.clientMail.value) == "" ) ){ 
alert("Please provide a method of contact")
contactForm.clientTel.focus()
contactForm.clientTel.select()
return false
}

document.contactForm.submit();
return true

}
