function chg_button(titlename, onoff) 
{
	document[titlename].src = "images/button_" + titlename + "_" + onoff + ".gif"
}

function chg_tab (titlename, onoff) 
{
	document["tab_"+titlename].src = "images/tab_" + onoff + ".gif"
}

function open_map (loc) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);

	new_window = window.open (loc,"a" + counter + "a","width=530,height=490,toolbar=no,location=no,scrollbars=no,directories=no,menubar=yes,resizable=no");
}

function open_image (imagefile, width, height) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);


	new_window = window.open (imagefile,"a" + counter + "a","width="+width+",height="+height+",toolbar=no,location=no,scrollbars=no,directories=no,menubar=no,resizable=no");
}


function cent(amount) {
    amount -= 0;
    amount = (Math.round(amount*100))/100;
    return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
}
