<!--
var baseText = null;
var winW, winH;
//var popUp = document.getElementById("popupcontent");
//var sbar = document.getElementById("statusbar");

function getWindowSize() {
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
		winW = window.innerWidth;
		winH = window.innerHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
		winW = document.body.offsetWidth;
		winH = document.body.offsetHeight;
	 }
	}
}

function showComment(id,w,h){
	
	getWindowSize();
	//alert((winW-w)/2);
	var mleft = ((winW - w)/2);
	var mtop = ((winH - h)/2 - 70);
	
	with (document.getElementById(id).style) {
		top = "30px";
		left = mleft;
		width = w + "px";
		height = h + "px";
	}
	if (baseText == null) baseText = document.getElementById(id).innerHTML;
	
	document.getElementById(id).style.visibility = "visible";
}


function showPopup(id,w,h){
	
	getWindowSize();
	//alert((winW-w)/2);
	var mleft = ((winW - w)/2);
	var mtop = ((winH - h)/2 - 70);
	
	with (document.getElementById(id).style) {
		top = "30px";
		left = mleft;
		width = w + "px";
		height = h + "px";
	}
	if (baseText == null) baseText = document.getElementById(id).innerHTML;
	//document.getElementById(id).innerHTML = baseText + "<div id=\"statusbar\" style=\"float:left;width:100%;text-align:center;font:bold 12px Arial, Helvetica, sans-serif;\"><button onclick=\"hidePopup("+id+");\">Close window</button></div>";
	
	//document.getElementById("statusbar").style.marginTop = (parseInt(h)-40) + "px";
	document.getElementById("statusbar").style.marginTop = "0px";
	document.getElementById(id).style.visibility = "visible";
}
function hideComment(id){
		document.getElementById(id).style.visibility = "hidden";
}
function hidePopupContent(){
		document.getElementById('popupcontent').style.visibility = "hidden";
}
function hidePopupTASC(){
		document.getElementById('TASC').style.visibility = "hidden";
}
-->