﻿$().ready(function() {
		
   
 
  
    $("#txtContactNo").numeric();
	var validator = $("#form1").validate(
	{
	   
		errorLabelContainer: $("#form1 div.container"),
		rules: {
			txtName: "required"	,
			organization:"required"	,
			email: {
				required: true,
				email: true
			},
			txtContactNo:"required"
			
			
		},
//		success: function() {
//				$(".infoContainer").hide();
//				$(".form-title").eq(0).html("Registration Successfull.");
//				},

		messages: {
			txtName: "Please enter your name<br/>",
			organization: "Please enter your organization<br/>",
			email:"Please enter your email address<br/>",
			txtContactNo:"Please enter your Contact Number<br/>"
		
			
		}		
	}
	);
	
	$(".cancel").click(function() {
		validator.resetForm();
	});

});
function hideshow(el,act) 
{ 
    
if(act) $('#'+el).css('visibility','visible'); 
    
else $('#'+el).css('visibility','hidden'); 
} 
