		jQuery(document).ready(function () 
		{
			
			jQuery("input[name$='login']").change(function(){
			 
				var d =jQuery(this).val();
			  
				if(d == "a")
				{
				jQuery('#rajister_error').html("");
				jQuery('#login_error').html('');
			    jQuery("#a").show();
				jQuery("#b").hide();
				}
				if(d == "b")
				{
				jQuery('#rajister_error').html("");
				jQuery("#a").hide();
				jQuery("#chang_password").hide(); 
				jQuery("#b").show();
				
				}
				
			});

		});
		function back_login()
		 {
		jQuery("#chang_password").hide(); 
		jQuery("#a").show();
		 
		 }


		function chek_rad()
		  {
			var m =jQuery("input[name$='login']:checked").val();
			
			 jQuery.ajax({
					   type: "POST",
					   url: "check_ajax.php",
					   data: "name="+m,
					   success: function(msg){
						 alert(m);	
						  $("p").append("<strong>Hello</strong>");				 
						 //jQuery.('#status').html(msg);      
						
					   }
					 });
			
		  }
