// JavaScript Document
<!--
function validateFormOnSubmit(theForm) {
var reason = "";

reason += validateEmpty(theForm.company,'Company'); 
reason += validateEmpty(theForm.cophone,'Company Telephone');
reason += validateEmpty(theForm.name,'Buyer\'s Name');

if (reason != "") {
    alert("Some fields need correction:\n" + reason);
    return false;
  }
  return true;
}

function validateEmpty(fld,err) {
    var error = "";
 
    if (fld.value.length == 0) {
        fld.style.background = 'Yellow'; 
        error = "The \"" + err + "\" field has not been filled in.\n"
    } else {
        fld.style.background = 'White';
    }
    return error;  
}

-->