function formatCurrency(Value, Symbol)
{
	var fValue = Value.toFixed(2);
	var sValue = fValue + "";
	var oRE = /(\d)(?=(\d\d\d)+(?!\d))/g;
	return Symbol + (sValue.replace(oRE, "$1,"));
}

function popSideWin( theURL, menubar )
{
	popupSetSize( theURL, 500, 400, menubar );
}


function popWindowFeatured(theURL, winName, features)
{ 
  window.open(theURL, winName, features);
}

function popupSetSize(filename, sheight, swidth, menubar) 
{
	var sheight, swidth
	if (String(sheight).length <= 0 || String(sheight) == "undefined")
		sheight = 300
	if (String(swidth).length <= 0 || String(swidth) == "undefined")
		swidth = 300
			
	var newWindow; 
	newWindow = window.open(filename, "SetSize", "height=" + sheight + ",width=" + swidth + ",resizable=yes,status=no,scrollbars=yes,dependent=yes,toolbar=no,menubar="+((menubar=='yes')?"yes":"no")+",location=no,left=0,top=0");
	newWindow.focus();
}
