<!--
<!-- hide this script from non-javascript-enabled browsers

/**
 * (c) Copyright 2008, 2009 Summer Hill Software Solutions, Inc.  All Rights Reserved.
 * 
 *                           Summer Hill Software Solutions, Inc.
 *                           Larkspur, CO 80118 U.S.A.
 * 
 * This is private, confidential, and propritary property of Summer Hill Software Solutions, Inc.
 * This property may not be distributed in any form without the express written consent
 * of an officer of Summer Hill Software Solutions, Inc.
 * 
 * Copyright:   Copyright (c) 2008, 2009
 * Company:     Summer Hill Software Solutions, Inc.
 * @version 1.0
 *
 */

function validate_contact_page() {
    var form=document.contactus;
    var fname=form.elements["firstname"].value;
    var lname=form.elements["lastname"].value;
    var email=form.elements["email"].value;
    var phone=form.elements["phone"].value; 

    if ((fname == "") || (fname == null)) {
        alert("Please enter your first name.");
        return false;
    }

    if ((lname == "") || (lname == null)) {
        alert("Please enter your last name.");
        return false;
    }

    if (!isEmail(email)) {
        alert("Please enter a valid email address.");
        return false;
    }
   
    phone = stripCharsInBag(phone, "()-+.,");
    phone = stripWhitespace(phone);
    
    if (!isUSPhoneNumber(phone)) {
        alert("Please enter a valid phone number (for example, (123)456-7890)");
        return false;
    }

   return true;
}

//-->
