function createPopup(url, w, h) {
			var x = screen.availWidth;
			var y = screen.availHeight;
			var width = w;
			var height = h;
			var top = y/2-height/2;
			var left = x/2-width/2;
			pwin = window.open(url, "mypopup", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,top="+top+",left="+left+",width="+width+", height="+height);
}
function getOffsetTop(el) {
	res = 0;
	while (el != document.body && el) {
		res += el.offsetTop;
		el = el.offsetParent;
	}
	return res;
}
function getOffsetLeft(el) {
	res = 0;
	while (el != document.body) {
		res += el.offsetLeft;
		el = el.offsetParent;
	}
	return res;
}
function updateHeight() {
	if (document.getElementById) {
		if (document.getElementById("contentdiv")) {
			//document.getElementById("contentdiv").style.position = "absolute";
			var h = getOffsetTop(document.getElementById("bottomlimiter"));
			document.getElementById("contentdiv").style.height = h + 'px';
			//document.getElementById("contentdiv").style.position = "static";
		}
	}
}
function updateBottom() {
	if(document.getElementById){
		if(document.getElementById("bottomlimiter")) {
			document.getElementById("bottomlimiter").style.bottom = "0px";
		}
	}
}

function fontResize(newSize) {

}
//window.onload = updateBottom;
//window.onscroll = updateBottom;
