function validateForm() { var error = ""; var x=document.forms["myForm"]["name"].value if (x==null || x=="") { alert("Name must be filled out"); //highlight false input box in yellow document.forms["myForm"]["name"].style.background = "#ffffcc"; //put curser in box document.forms["myForm"]["name"].focus(); document.forms["myForm"]["name"].select(); return false; } var x=document.forms["myForm"]["company"].value if (x==null || x=="") { alert("Company must be filled out"); //highlight false input box in yellow document.forms["myForm"]["company"].style.background = "#ffffcc"; //put curser in box document.forms["myForm"]["company"].focus(); document.forms["myForm"]["company"].select(); return false; } var x=document.forms["myForm"]["email"].value var atpos=x.indexOf("@"); var dotpos=x.lastIndexOf("."); if (atpos<1 || dotpos=x.length) { alert("Not a valid e-mail address"); //highlight false input box in yellow document.forms["myForm"]["email"].style.background = "#ffffcc"; //put curser in box document.forms["myForm"]["email"].focus(); document.forms["myForm"]["email"].select(); return false; } }
Client Login Request a Quote
What would you like to do?

Please provide us with a brief description of your project and we'd be happy to provide you with an estimate.

Brief project description

If you'd like to speak to someone right away, please call us directly at 603.319.4269.