function login1(url){
   var str='';
   if($('#username').val()=='')str+='Please fill out the account number!\r\n';
   if($('#password').val()=='')str+='Please fill out the password!\r\n';
   if(str)alert(str);
   else{
     $('#loading').css('display','block');
	 var urls=url;
     $.ajax({
		 url: urls,
		 type:'POST',
		 dataType:'html',
		 data:'username='+$('#username').val()+'&password='+$('#password').val(),
		 success:function(msg){
		    $('#loading').css('display','none');
			if(msg=='false'){
			   alert('The system did not recognize the login information and/or password that you entered. Please verify and try again.');
			}else {
			   alert('Welcome to GuangzhouNightlife!');
			   $('.zi-member').css('display','none');
			   $('.zi-member2').css('display','block');
			   eval('json='+msg);
			   $('#un').html(json.username);
			   $('#logincount').html(json.logincount);
			   $('#spend').html(json.spend);
			}
		 }
	  });
   }
}
function logout(url){
     $('#loading').css('display','block');
	 var urls=url;
     $.ajax({
		 url: urls,
		 type:'POST',
		 dataType:'html',
		 data: '',
		 success:function(msg){
		    $('#loading').css('display','none');
		    if(msg=='islogout'){
			   $('.zi-member').css('display','block');
			   $('.zi-member2').css('display','none');
			}
		 }
	});
}