//This javascript page is used for printing part of the screen.
//A layer is used to block the unwanted part.

//Check browser type
//var ie4 = (document.all) ? true : false;
var ns4 = window.Event ? true : false;

//Variables for definding different types of layer for IE and Netscape

upperLayerOpen = new String();
upperLayerClose = new String();
spacing = new String("<br><br>");
//logoimage = new String("login2.gif");

//set layer

if(ns4)// for Netscape
	{
     	upperLayerOpen = "<LAYER ID=\"upper\" visibility = \"hide\">";
	upperLayerClose = "</LAYER>" + spacing;
        }
else //for IE and others
	{
    	upperLayerOpen = "<DIV ID=\"upper\" CLASS=\"layer\">";
        upperLayerClose = "</DIV>";
	}


//function to make a layer visible
function showlayer() {
    document.layers["upper"].visibility = "show";
}

//Show a hidden layer when the page is loaded.
//For Netscape 4, a hidden window with outerWidth and outerHeight
//both equals zero will be loaded when we use printscreen,
//the layer of this hidden window should not been shown.
 if(ns4)
        {
               window.onload = showlayer;
	}
