/* shows/hides a layer */
function switchBoxOnOff(szDivID)
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
		if (obj.style.visibility == "visible") {
         obj.style.visibility = "hidden";
		}
		else {
          obj.style.visibility = "visible";
		}
   }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}


/* pops up a printer-friendly version of the page */

function openaprintwindow(theURL) {

	var width = 680;

	var height = 500;

	

	windowprops = "width=" + width + ",height=" + height;

	if (document.all||document.layers||document.getElementById)

	{

		var top = ((screen.height-50)-height)/2;

		var left = ((screen.width-10)-width)/2;

		windowprops += ",top=" + top + ",left=" + left;

	}

	windowprops += "toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1";

	window.open(theURL, 'printableWindow', windowprops);

}


