function validateForm(){
var form = document.getElementById("contactForm");
if(form.name.value == ""){
focusElement(form.name);
return false;
}else if(form.email.value == ""){
focusElement(form.email);
return false;
}else if(form.comments.value == ""){
focusElement(form.comments);
return false;
}
document.getElementById("SubmitBtn").disabled = true;
return true;
}

function focusElement(element){
element.focus();
element.style.backgroundColor = "#f8dfdf";
}