
function std_window(lnk, w, h, n) {
	if (!w) w = 600;
	if (!h) h = 400;
	var l = ( screen.width - w )/2;
	var t = ( screen.height - h )/2 - 20;
	win = window.open(lnk, n?n:'', "toolbar=0,scrollbars=1,resizable=1,left="+l+",top="+t+",width="+w+",height="+h);
	return win;
}

function setPrintStyle() {
		var cont = document.body.innerHTML;

		//alert(cont.indexOf('<!--middle column printable-->'));
		//alert(cont.indexOf('<!--.middle column printable-->'));


		//document.getElementById("printButton").style.display = "none";

		//document.getElementsByTagName('link')[0].href = "css/print.css";

		document.body.style.backgroundColor = "white";
		document.body.style.backgroundImage = "none";

		document.body.innerHTML = cont.substring(cont.indexOf('<!--middle column printable-->'), cont.indexOf('<!--.middle column printable-->'));

		setTimeout("window.print()", 1000);

} // setPrintStyle
