// JavaScript Document
/*

put 
ID="DHTML_Header"
ID="DHTML_Menu"
ID="DHTML_Footer"
in balises that contain the HTML code of Header/Menu/Footer

put in the HTML HEADER (with css links) with the right path : 
<script language="javascript" src="js/print_page.js"></script>

function is called by :
<a href="#" onClick="TemplatePrint(this)"  class="green_link_template">Print Page</a>

*/

	function TemplatePrint(myObjLink) {
		if (myObjLink.innerHTML == "&lt;&lt;&nbsp;回到前页") {
			myDisplayValue = '';
			myObjLink.innerHTML = "<img src=images\\icon_print.gif width=19 height=20> <span style=\"宋体; font-size:12px; font-weight:bold; color:#006E51; cursor:pointer;\">打印</span>";
		} else {
			myDisplayValue = 'none';
			myObjLink.innerHTML = "&lt;&lt;&nbsp;回到前页";
		}
		document.getElementById('DHTML_Header').style.display	= myDisplayValue;
		document.getElementById('DHTML_Menu').style.display	= myDisplayValue;
		document.getElementById('DHTML_Footer').style.display	= myDisplayValue;
		
		//document.getElementById('DHTML_Right_Menu').style.display = myDisplayValue;
		
		document.getElementById('DHTML_Right_Menu4').style.display = myDisplayValue;
		document.getElementById('DHTML_Comment').style.display = myDisplayValue;
}
