function LoginCore() {
	this.currentPage = Object();
	this.ident ='';
	
	this.register = function(nickname, firstname, lastname, email,password,password_confirm,captcha) {
		 var data = new Object();	 
		 data['act'] = 'reg';
		 data['widget'] = 'login';
		 data['nickname'] = encodeURIComponent(nickname);
		 data['firstname'] = encodeURIComponent(firstname);
		 data['lastname']=encodeURIComponent(lastname);
		 data['email']=encodeURIComponent(email);
		 data['password']=encodeURIComponent(password);
		 data['password_confirm']=encodeURIComponent(password_confirm);
		 data['captcha'] = captcha;	 
		 
		 this.InitializeRequest('POST', '/ajax.php');
         this.Commit(postquery(data));	
		
	}
		
	this.OnSuccess = function()
      {
      	//alert(this.GetResponseText());
      	eval(this.GetResponseText());
      	// fade(0,"form_"+this.ident);
      	// $("loading_"+this.ident).style.display = 'none';
      }
	
	this.gmclic = function(menuid) {
		 var data = new Object();	 
		 data['act'] = 'clic';
		 data['widget'] = 'login';
		 data['menuid'] = encodeURIComponent(menuid);
		 
		 this.InitializeRequest('POST', '/ajax.php');
         this.Commit(postquery(data));	
		
	}
}

LoginCore.prototype = new ajax();
Login = new LoginCore();

