

function openWin(targt) {

 var strSrc = targt + ".asp"
 window.parent.frames("content").location = strSrc

}


function CommaFormatted(amount) {

	var delimiter = ","; 
	var a = amount.split('.',2)
	var d = a[1];
	var i = parseInt(a[0]);
	if(isNaN(i)) { return ''; }
	var minus = '';
	if(i < 0) { minus = '-'; }
	i = Math.abs(i);
	var n = new String(i);
	var a = [];
	while(n.length > 3)
	{
		var nn = n.substr(n.length-3);
		a.unshift(nn);
		n = n.substr(0,n.length-3);
	}
	if(n.length > 0) { a.unshift(n) }
	n = a.join(delimiter);
	//if(d.length < 1) { amount = n; }
	//else { amount = n + '.' + d; }
	amount = minus + n;
	return amount;
}


function openHelp(){

RH_ShowHelp(0, '../WebHelp/Centre_County_Map_Viewer.htm', 0, 0)

}


function openHelpbyTopic(numTopicID) {
 
    RH_ShowHelp(0, '../WebHelp/Centre_County_Map_Viewer.htm', 15, numTopicID)

   }


function openFeedbackWindow() {

    objwinid = window.open("feedback.aspx","winID","height=250,width=500,toolbar=no,menubar=no,scrollbars=no,,resizable=yes,status=0") 
    objwinid.focus()

    }


