function open_popup (page,w,h) {
	date = new Date();
	counter = Math.floor((date.getSeconds()/60)*100);
	new_window = window.open (page,"a" + counter + "a","width="+w+",height="+h+",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);
}


function chg_button(which,onoff) {
	document[which].src = "images/button_"+which+"_"+onoff+".gif";
}


function resize_overlay() {
	x = 0;
	y = 0;
	if (self.innerHeight) {
		x = self.innerWidth + self.pageXOffset;
		y = self.innerHeight + self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		x = document.documentElement.clientWidth + document.documentElement.scrollLeft;
		y = document.documentElement.clientHeight + document.documentElement.scrollTop;
	}
	else if (document.body) {
		x = document.body.clientWidth + document.body.scrollLeft;
		y = document.body.clientHeight + document.body.scrollTop;
	}
	document.getElementById("overlay_flower").style.top = (y-620) + "px"; //619
	document.getElementById("overlay_flower").style.left = (x-663) + "px";  //643
}
