function TradeProductQuickSearchBox( strRbProductId, strRbWebsiteId, strCblCategoryId, intCblItemCount){
	this.m_strRbProductId = strRbProductId;
	this.m_strRbWebsiteId = strRbWebsiteId;
	this.m_strCblCategoryId = strCblCategoryId;
	this.m_intCblItemCt = intCblItemCount;

	this.CbOnClick = function( objCheckbox){
		if( !GetObj( this.m_strRbProductId).checked)
			GetObj( this.m_strRbProductId).checked=true;
	}

	this.RbOnClick = function( objRadioButton){
		if( objRadioButton.id==this.m_strRbWebsiteId)
			this.CbClearAll();		
	}

	this.Init = function(){
	}

	this.CbDisableAll = function( blnValue){
		for( var intIndex=0; intIndex<this.m_intCblItemCt; intIndex++)
			(document.getElementById( this.m_strCblCategoryId + intIndex)).disabled = blnValue;
	}

	this.CbClearAll = function(){
		for( var intIndex=0; intIndex<this.m_intCblItemCt; intIndex++)
			(document.getElementById( this.m_strCblCategoryId + intIndex)).checked = false;
	}
}

function QsbInit(){	objQsb.Init();}
