//bcs-systems.com API--Kevin J. Garriott 2005 updated 050912

	
	
	
	
//-----------------------------------------------------------------------print function! 060207 kjg
//variant of my hide / unhide script to show hidden page elements on print...
 function printOnly(id) {
	  if (document.all){ 
	    object=eval(id);
		}else if (document.getElementById){
	    object=document.getElementById(id);
		}if (object.className=="hide"){
	    object.className="printShow";			
		}else{ object.className="hide";		
		}
	}
	
 function printOnlyH(id) {
	  if (document.all){ 
	    object=eval(id);
		}else if (document.getElementById){
	    object=document.getElementById(id);
		}if (object.className=="printShow"){
	    object.className="hide";			
		}else{ object.className="printShow";		
		}
	}	
	//--------------------------------------------------------------------------
function printPage(){ 
/*
 * content to be printed is wrapped in <div id="print_content"></div> at end of header file
 * and at beginning of footer file.
 *
 * to exclude content from printing, wrap with <span id="hideP"></span>
 * manipulate font colors ect. with something like <span id="blackP"></span>
 */
 printOnly('hideOnScreen');
 
	
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; 
  var content_vlue = document.getElementById("print_content").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>&nbsp;</title>');	 
	 //kjg
	 docprint.document.write('<link rel="stylesheet" href="./includes/staffPrint.css" type="text/css" />');
	 //kjg
   docprint.document.write('</head><body onLoad="self.print()">');
	 //kjg
	 docprint.document.write('<img src="./images/print_header.gif" width="630" height="113" alt="" /><br /><br />');
	 //kjg
   docprint.document.write(content_vlue);          
   docprint.document.write('</body></html>'); 
   docprint.document.close();
	 //kjg
	 printOnlyH('hideOnScreen');
	 //kjg
   docprint.focus(); 
}