function ValueDisplay(inID, showDecimals)
{
	var itsElement = DOM.getElementById(inID);
	var itsShowDecimals = showDecimals;
	
	this.setValue = function(inValue)
	{
		if(!itsShowDecimals)
			inValue = Math.round(inValue);
			
		itsElement.firstChild.nodeValue = inValue;
	};
}

function PriceDisplay(inID, showDecimals)
{
	var itsElement = DOM.getElementById(inID);
	var itsShowDecimals = showDecimals;
	
	this.setValue = function(inValue)
	{
		//format the num to xx,xxx
		var theFormatedValue;
		
		if(!itsShowDecimals)
			inValue = Math.round(inValue);
			
		var inValueString = inValue.toString();

		
		if (inValueString.length > 3)
			theFormatedValue = inValueString.substring(0,inValueString.length - 3) + "," + inValueString.substring(inValueString.length - 3);
		else
			theFormatedValue = inValueString;

		itsElement.firstChild.nodeValue = theFormatedValue;
	};
}

function FilterDisplay(inID)
{
	var self = this;
	var itsElement = document.getElementById(inID);

	self.show = function(inProperties,inFlag)
	{
		var theDisplay;
		if (inFlag)
			theDisplay = "";
		else
			theDisplay = "none";
		itsElement.style.display = theDisplay;
	};


	self.hide = function(inProperties,inFlag)
	{
		self.show(inProperties, !inFlag);
	};
}