function calcHeight() {
	if (!document.getElementById('content')) return;
	if (!document.getElementById('webedit')) return;
	if (!document.getElementById('text')) return;
	var a = document.getElementById('content');
	var b = document.getElementById('webedit');
	var c = document.getElementById('text');
	var x = 390;
	if (self.innerWidth) {
		x = (parseInt(self.innerHeight) - 220);
		a.style.height = x+48 + "px";
		b.style.height = x + "px";
		c.style.height = (x - 53) + "px";
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		x = (parseInt(document.documentElement.clientHeight) - 220);
		a.style.height = x+48 + "px";
		b.style.height = x + "px";
		c.style.height = (x - 53) + "px";
	}
	else if (document.body) {
		x = (parseInt(document.body.clientHeight) - 220);
		a.style.height = x+48 + "px";
		b.style.height = x + "px";
		c.style.height = (x - 53) + "px";
	}
}
window.onload = function () { calcHeight() }
window.onresize = function () { calcHeight() }
