﻿// JScript File

// JScript File

//    function window.onbeforeprint() { >> only works for IE
	function window_onbeforeprint() {
        var hidValue;
		hidValue = document.getElementById("hidBrowser");
		var strLogo;
		strLogo = document.getElementById("divFixedMenu");
		
		if (hidValue.value.substr(0,1) == "I") {
			//Make sure the browser is IE
			//Before printing document, hide Menu and other objects
			if (strLogo != null) {
			    divScrollable.className = "scrollareaPrint";
			    //divLogo.style.display = "none";
			    divFixedMenu.style.display = "none";
			    divBC.style.display = "none";
			    if (document.all.btnPrint != null) {
			    	document.forms[0].btnPrint.style.display = "none";
					}
			}
		}
    }
//    function window.onafterprint() { >> only works for IE
    function window_onafterprint() {
		var hidValue;
		hidValue = document.getElementById("hidBrowser");
		var strLogo;
		strLogo = document.getElementById("divFixedMenu");

		if (hidValue.value.substr(0,1) == "I") {
			//Make sure the browser is IE
			//After printing document, redisplay Menu and other objects
			if (strLogo != null) {
			    divScrollable.className = "scrollarea";
			    //divLogo.style.display = "";
			    divFixedMenu.style.display = "";
			    divBC.style.display = "";
			    if (document.all.btnPrint != null) {
    			    document.forms[0].btnPrint.style.display = "";
				}
			}
		}   
    }
