function getWindowHeight(){
	if (window.innerHeight) return window.innerHeight; // Mozilla, Opera, NN4
	if (document.documentElement && document.documentElement.clientHeight) { // ˆÈ‰º IE
		return document.documentElement.clientHeight;
	} else if (document.body && document.body.clientHeight) {
		return document.body.clientHeight;
	}
	return 0;
}
function getElementById2(s) {
	if (document.all) return document.all(s);
	if (document.getElementById) return document.getElementById(s);
	return null;
}
function getElementsByTagName2(s) {
	if (document.all) return document.all.tags(s);
	if (document.getElementById) return document.getElementsByTagName(s);
	return null;
}
function initFrame() {
	var m;
	if (window.onbeforeprint) {
		getElementById2("main").style.height = (getWindowHeight() - getElementById2("menu").offsetHeight) + "px";
		getElementById2("main").style.overflow = "auto";
		m = getElementsByTagName2("BODY");
		m.item(0).style.overflow = "hidden";
		m.item(0).style.marginRight = "0px";
		if (location.hash != "") location.hash = location.hash;
	}
}
function print_onclick() {
	window.print();
}
function bPrint() {
	var m;
	m = getElementsByTagName2("BODY");
	getElementById2("main").style.height = "auto";
	getElementById2("main").style.overflow = "visible";
	m = getElementsByTagName2("BODY");
	m.item(0).style.overflow = "auto";
	m.item(0).style.marginRight = "auto";
}
function aPrint() {
	var m;
	m = getElementsByTagName2("BODY");
	getElementById2("main").style.height = (getWindowHeight() - getElementById2("menu").offsetHeight) + "px";
	getElementById2("main").style.overflow = "auto";
	m.item(0).style.overflow = "hidden";
	m.item(0).style.marginRight = "0px";
}



