// JavaScript Document
$(function(){
	$('#name').watermark('Your Name');
	$('#email').watermark('E-mail Address');
	$('#city').watermark('City');
	$('#product').watermark('Product Ordered');
	$('#testimonial').watermark('Your Testimonial');
	$('#captcha').watermark('Enter Code from Above');
	var validator = $("#form1").validate({
		invalidHandler: function() {
    		$("#error-box #num-errors").text("Oops, you have some important information missing:");
			$.scrollTo({top:0,left:0});
		},
		errorContainer: "#error-box",
		errorLabelContainer: "#error-box ul",
		wrapper: "li", 		
		messages: {
			name: "Please enter your Name",
			city: "Please enter your City",
			product: "Please enter the Product you ordered",
			testimonial: "Please enter your Testimonial",
			captcha: "Please enter the security code."
		}
	});
});
