
$(document).ready(function() { 	
$('#btn_submit').click(function() {
	$('#contfrm').submit();
	//alert("hi" + resultt.value);
});
//$('#btn_submit').click(send);

$.validator.addMethod("notEqualTo",function(value, element, params) {
        return this.optional(element) || value != params;
}); 
	var validator = $("#quote-final").bind("invalid-form.validate", function() {
			$("#prob").html("Please correct the errors shown below:");
			$("#prob").addClass("error-msg");
		}).validate({
		rules: { 
			cont_email: {
				required: true,
				email:true
			},
			cont_comment: {
				required: true
			}
		}, 
		messages: { 
			cont_email: "",
			cont_comment: "" 
		} ,
		errorElement: "span"
	});
	var validator = $("#contfrm").bind("invalid-form.validate", function() {
			$("#prob").html("Please correct the errors shown below:");
			$("#prob").addClass("error-msg");
		}).validate({
		rules: { 
			cont_email: {
				required: true,
				email:true
			},
			cont_comment: {
				required: true
			}
		}, 
		messages: { 
			cont_email: "Enter Valid Email",
			cont_comment: "Comment is Mandatory" 
		} ,
		errorElement: "span"
	});
	if ($.browser.msie) $('select.wide')
                    .bind('focus mouseover', function() { $(this).addClass('expand').removeClass('clicked'); })
                    .bind('click', function() { $(this).toggleClass('clicked'); })
                    .bind('mouseout', function() { if (!$(this).hasClass('clicked')) { $(this).removeClass('expand'); }})
                    .bind('blur', function() { $(this).removeClass('expand clicked'); });

}); 


