function Validate() {
	if (document.fmMain.T1.value.length < 1) {
		alert ("Please enter your First Name");
     	fmMain.T1.focus();
		return false;
		}
	if (document.fmMain.T2.value.length < 1) {
		alert ("Please enter your Last Name");
        fmMain.T2.focus();
		return false;
		}
    if (document.fmMain.T3.value.length < 1) {
		alert ("Please enter your Telephone Number");
		fmMain.T3.focus();
		return false;
		}
	if (document.fmMain.T4.value.length < 1) {
		alert ("Please enter your Email Address");
		fmMain.T4.focus();
		return false;	
		}	
return true;
}
function Validate1() {
	if (document.fmMain1.T5.value.length < 1) {
		alert ("Please enter your First Name");
     	fmMain1.T5.focus();
		return false;
		}
	if (document.fmMain1.T6.value.length < 1) {
		alert ("Please enter your Last Name");
        fmMain1.T6.focus();
		return false;
		}
    if (document.fmMain1.T7.value.length < 1) {
		alert ("Please enter your Telephone Number");
		fmMain1.T7.focus();
		return false;
		}
	if (document.fmMain1.T8.value.length < 1) {
		alert ("Please enter your Email Address");
		fmMain1.T8.focus();
		return false;	
		}
if (document.fmMain1.S1.value.length < 1) {
		alert ("Please enter your Message");
		fmMain1.S1.focus();
		return false;	
		}	
return true;
}
function DisableButton(buttonName, buttonText)
{
	var isValidation = (window.ValidatorOnSubmit!=null); 
	if(!isValidation || window.event.returnValue==true)
	{
		var button=document.getElementsByName(buttonName)[0];
		if (button)
		{
			if (buttonText!='') button.value=buttonText;
			setTimeout("document.getElementsByName('" + buttonName + "')[0].disabled=true;", 50);
		}
	}
	return true;
}