﻿$(document).ready(function () {
    $(".footerInput").click(function () {
        if ($(this).attr("class") != "footerInput fsubmit") {
            if ($(this).attr("class") == "footerInput fmessage") {
                $(this).find("textarea").focus();
                $(this).find("textarea").val('');
            } else {
                $(this).find("input").focus();
                $(this).find("input").val('');
            }
        }
    });
    $("#footer_contact_form").validate({
        messages: {
            fname: ""
            , femail: ""
            , fphone: ""
            , fmessage: ""
        },
        errorElement: "div"
    });
});


