function openwin(u,w,h,full) {						
	window.open(u,'','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen='+full+',dependent=no,width='+w+',height='+h+'');
}

function refresh_parent() {
	opener.location.reload();
}


function initHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		document.getElementById("maintable").style.height = "auto";
		if (document.body.offsetHeight < window.innerHeight) {			
			windowHeight = window.innerHeight;			
		} else {
			windowHeight = document.body.offsetHeight;
		}
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		windowHeight = document.documentElement.clientHeight;
	}
	else if (document.body && document.body.clientHeight) {
		windowHeight = document.body.clientHeight;
	}
	if(document.getElementById("maintable") != null)
		document.getElementById("maintable").style.height = windowHeight+"px";	
}
window.onresize=initHeight
window.onload=initHeight