// Div-printing script developed by Jeremy Coulson in October 2008.

// *********************************************************************************************************************
//																														 
// On the page from which you want to print just one div, place a print button like this:                                
//																									                     
// <input type="button" value="Print Information" onClick="printContent('contentPageContent')" id="printButton" />       
//																									 					 
// The onClick event calls the function below.  In most cases, you will want to leave contentPageContent, but if you're  
// trying to print from a different div, put the id of that div in place of contentPageContent.  For example, if you're  
// printing a div called fooDiv, your onClick even will look like: "printContent('fooDiv')".							 
// 																														 
// Questions?  Call Jeremy at x8211.																					 
// 																														 
// ********************************************************************************************************************* 

function printContent(printThis)
{
	// This line defines the pop-up window.  You can change these attributes.
	var a = window.open('','','width=600,height=600,scrollbars=yes,resizable=yes,');
	a.document.open("text/html");
	a.document.write("<link rel=\"stylesheet\" href=\"http://www.co.frederick.va.us/dry_dock/css/fredCoStyles.css\" type=\"text/css\" />");
	a.document.write("<style>");
	a.document.write("body{background-image:none !important;}");
	a.document.write(".trOdd {background-color:#9eb3d2;}");
	a.document.write(".trEven {background-color:#FFFFFF;}");
	a.document.write("th {font-size:17px;background-color:#CCCCCC;}");
	a.document.write("#footer {top:1700px !important;}");
	a.document.write("#printButton{display:none;}");
	a.document.write("</style>");
	a.document.write(document.getElementById(printThis).innerHTML);
	a.document.write("<hr />");
	a.document.write("<p class=\"pageText\"><span style=\"font-size:21px;font-weight:bold;\">County of Frederick, Office of the Treasurer</span><br />");
	// If you are not HR, edit your department's contact info.  Just be sure to esacpe all " with a \.
	a.document.write("107 North Kent Street<br />Winchester, VA 22601</p>");
	a.document.write("<p class=\"pageText\">Phone: (540) 665-5607<br />Email: borndoff@co.frederick.va.us</p>");
	// The line below can be uncommented and used for a tag line at the bottom of the page.
	// a.document.write("<p class=\"pageText\" style=\"font-style:italic;\">Frederick County is proud to be an Equal Opportunity Employer.</p>");
	a.document.close();
	a.print();
	
}