/* Pop up window */
function showPopup(mypage, myname, w, h, scroll) {

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',nonresizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function toggleBox(boxID,buttonID) {
var boxClass = document.getElementById(boxID).className;
//alert(boxID);
//alert(boxClass);
	if (boxClass=="hideBlock") {
		document.getElementById(boxID).className="showBlock";
		document.getElementById(buttonID).className="hideBlock";
	} else {
		document.getElementById(boxID).className="hideBlock";
		document.getElementById(buttonID).className="showBlock";
	}
}