<!--general_functions.js-->
<!--start-->
function wv_WinOpen(url, wname, wdth, hgt, status, resizable, scrollbars, location) {
  if (hgt) { hgt = ",height=" + hgt; }
  if (wdth) { wdth = ",width=" + wdth; }
  if (status) {status = "status=" + status;} else {status="status=no";}
  if (resizable) {resizable = ",resizable=" + resizable;}
  if (scrollbars) {scrollbars = ",scrollbars=" + scrollbars;}
  if (location) {location = ",location=" + location;}
  var spec = status + wdth + hgt + resizable + scrollbars + location +",top=100,left=100,screenX=100,screenY=100";
  popupWin = window.open(url, wname, spec);
  popupWin.focus(); 
}

function convertToDollarStr(money) {
	money=Math.round(money*100).toString();
	if (money<10) return '0.0'+money;
	return (money<100)?'0.'+money:+money.substring(0,money.length-2)+'.'+money.substring(money.length-2,money.length);
}

//---------------------------------------------------------------------||
// FUNCTION:    ReplaceStr                                             ||
// PARAMETERS:  StrSource,StrFind,StrReplace                           ||
// RETURNS:     String with the Str replaced			               ||
// PURPOSE:     Got from the web 9/2/04 to replace double quotes with  ||
//				html equivalent &quot;						           ||
//---------------------------------------------------------------------||
function ReplaceStr(StrSource,StrFind,StrReplace)
	{
		//alert ('calling paul');
		var StrReplacedContent="";
		var FindPos;
		var StrOriginal=new String(StrSource).toString();
		var StrOriginalSource=new String(StrSource);
		var FindPos=StrOriginalSource.toString().indexOf(StrFind);
		while(FindPos>-1)
			{

				StrReplacedContent+= StrOriginal.substring(0,FindPos) + StrReplace;
				StrOriginalSource=StrOriginalSource.substring(FindPos+StrFind.length);
				StrOriginal=StrOriginal.substring(FindPos+StrFind.length);
				FindPos=StrOriginalSource.indexOf(StrFind);
			}
		StrReplacedContent+=StrOriginalSource;
		return StrReplacedContent;
	}
	
<!--end-->
