function validateForm() { var companyInput = document.forms["contactForm"]["companyName"].value; if (companyInput == " ") { alert("Company must be filled out"); return false; } }
function validateForm() { var companyInput = document.forms["contactForm"]["companyName"].value; if (companyInput == " ") { alert("Company must be filled out"); return false; } }