$(document).ready(function(){a();$("#Education").autogrow();$("#Experience").autogrow();$("#Information").autogrow();$("#ServicesDesired").autogrow();$("#Questions").autogrow();$("#Hvac").change(function(){a()});$("#Refridge").change(function(){a()});$("#Filter").change(function(){a()});function a(){if($("#Hvac").val()=="Yes"){$("#HvacForm").show()}else{$("#HvacForm").hide()}if($("#Refridge").val()=="Yes"){$("#RefridgeForm").show()}else{$("#RefridgeForm").hide()}if($("#Filter").val()=="Yes"){$("#FilterForm").show()}else{$("#FilterForm").hide()}}$("#submit").click(function(){$("#ProgressDialog").show()}).hover(function(){$(this).addClass("stdbuttonhover")},function(){$(this).removeClass("stdbuttonhover")});$("#frm").validate({rules:{FirstName:{required:true,maxlength:50},LastName:{required:true,maxlength:50},Name:{required:true,maxlength:100},Company:{maxlength:50},Email:{required:true,maxlength:50,email:true},Education:{required:true},Experience:{required:true},ServicesDesired:{required:true},Questions:{required:true}},messages:{FirstName:{required:"First Name is required.",maxlength:"First Name must be shorter than 50 characters."},LastName:{required:"Last Name is required.",maxlength:"Last Name must be shorter than 50 characters."},Name:{required:"Name is required.",maxlength:"Name must be shorter than 100 characters."},Company:{maxlength:"Company must be shorter than 50 characters."},Email:{required:"Email Address is required.",maxlength:"Email Address must be shorter than 50 characters.",email:"Email Address is invalid."},Education:{required:"Education is required."},Experience:{required:"Experience is required."},ServicesDesired:{required:"Services Desired is required."},Questions:{required:"Comments or Questions is required."}},errorContainer:"#messageBox1",errorLabelContainer:"#messageBox1 ul",wrapper:"li",invalidHandler:function(b,c){window.scrollTo(0,0);$("#ProgressDialog").hide()},onfocusout:false,onkeyup:false,onclick:false})});
