function OrdersCore() { this.currentPage = 1; this.ident = ''; this.perPage = 20; this.group = 0; this.setGroup = function(){ this.group = $('groups').value; } this.setperPage = function(amount){ this.perPage = amount; } this.setcurrentPage = function(page) { this.currentPage = page; } this.query = function(ident) { this.ident = ident; var data = new Object(); data['ident'] = ident; data['group'] = this.group; data['page'] = this.currentPage; data['perpage'] = this.perPage; data['action'] = 'showpage'; data['widget'] = 'orderslist'; 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'; } } OrdersCore.prototype = new ajax(); Orders = new OrdersCore();