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.clientMail.focus()
    contactForm.clientMail.select()
    return false
}

document.contactForm.submit();
return true

}

function imageWin(imageSrc)
{
    win1 = window.open("http://www.getscm.com/ltf/ltf_image.php?src=" + imageSrc, "still","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=580, height=450");
    win1.focus();
}
