$(document).ready(function(){
	
	<!--START SMALL FORM VALIDATION->	
                $(".styleButton").click(function(e) {
				    e.preventDefault();
                   	check();                   
                });			
				function check(){				 
					   $.post("/inc/contactFormSmall_Action.cfm",{	
							email: $("#email").val(),
							phone: $("#phone").val() 
					
                        },
                        function(errorMessages) {
                            if (errorMessages.length > 0) {
                                $('.errors').html("<p class='errorText'>" + errorMessages + "</p>");
                            }
                            else
                            { 
$('.success').html( "<p class='largeMessage'>" + "Thank you for contacting us. We will be in touch within the next 24 hours." + "</p>");
$('.errors').html( "");
$('#contactForm').slideUp(500);
						 
                            }
                        },
                        "json"
                    );
				}
	<!--END SMALL FORM VALIDATIONS-->				
	
	<!--START LARGE FORM VALIDATION->
	 /*$(".styleButtonLarge").click(function(e) {
		  e.preventDefault();
		  //checkLarge();                   
	  });*/
	
	
	<!--END LARGE FORM VALIDATION->
	
	$('input.styleInput[type="text"]').addClass("idleField");
	$('input.styleInput[type="text"]').focus(function() {
		$(this).removeClass("idleField").addClass("focusField");
		if (this.value == this.defaultValue){ 
			this.value = '';
		}
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	$('input.styleInput[type="text"]').blur(function() {
		$(this).removeClass("focusField").addClass("idleField");
		if ($.trim(this.value) == ''){
			this.value = (this.defaultValue ? this.defaultValue : '');
		}
	});





				
  
});


 

