function shop_navigator_comparebasketCore() {
	this.ident='';	
	this.refresh = function() {
		var data = new Object();	
		data['widget']='shop_navigator_comparebasket';
		data['action'] = 'refresh';
		data['ident'] =  this.ident;
		
		this.InitializeRequest('POST', '/ajax.php');
        this.Commit(postquery(data));		
	}
	
	this.addItem = function(itemindexid) {
		var data = new Object();	
		
		data['widget']='shop_navigator_comparebasket';
		data['action'] = 'additem';
		data['itemindexid'] = itemindexid;
		data['ident'] = this.ident;
		
		this.InitializeRequest('POST', '/ajax.php');
        this.Commit(postquery(data));	
		
	}
	
	this.deleteItem = function(itemindexid) {
		var data = new Object();	
		data['widget']='shop_navigator_comparebasket';
		data['action'] = 'deleteitem';
		data['itemindexid'] = itemindexid;
		data['ident'] =  this.ident;
		
		this.InitializeRequest('POST', '/ajax.php');
        this.Commit(postquery(data));			
	}
	
	this.clear = function() {
		var data = new Object();	
		data['widget']='shop_navigator_comparebasket';
		data['action'] = 'clear';
		data['ident'] =  this.ident;
		
		this.InitializeRequest('POST', '/ajax.php');
        this.Commit(postquery(data));			
	}
	
	
	this.OnSuccess = function() {
      	eval(this.GetResponseText());
    }
	
}
shop_navigator_comparebasketCore.prototype = new ajax();
shop_navigator_comparebasket = new shop_navigator_comparebasketCore();

