// JavaScript Document
function printWindow(htmlToPrint) {
var printWindow = null
  printWindow =
window.open('','print_window','width=680,height=600,scrollbars=yes,toolbar=no,menubar=no,resizable=yes')

var printLogo = document.getElementById('main-logo').innerHTML;
var printBannerLinks = document.getElementById('cob').innerHTML;

printWindow.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
printWindow.document.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
printWindow.document.write("<title>Beaverton Arts Commission<\/title>\n");
printWindow.document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"\/styles\/print.css\">\n");
printWindow.document.write("<style type=\"text/css\" media=\"print\">div.printFriendlyButtonBar, printButton2 { display:none; }<\/style>\n");
printWindow.document.write("<\/head><body>\n");

printWindow.document.write("<div class=\"printFriendlyButtonBar\">\n");
printWindow.document.write("<input type=\"button\" value=\"&nbsp;Print Page&nbsp;\" onclick=\"window.print();\" class=\"printButton2\" />\n");
printWindow.document.write("<input type=\"button\" value=\"Close\" onclick=\"window.close();\" class=\"printButton2\" />\n");
printWindow.document.write("<\/div>\n");

printWindow.document.write("<h1 id=\"main-logo\">\n");
printWindow.document.write(printLogo + '\n');
printWindow.document.write("<\/h1>\n");

printWindow.document.write("<div id=\"cob\">\n");
printWindow.document.write(printBannerLinks + '\n');
printWindow.document.write("<\/div>\n");

printWindow.document.write("<div id=\"main-content\">\n");
printWindow.document.write(htmlToPrint + '\n');
printWindow.document.write("<\/div>\n");

printWindow.document.write("<\/body><\/html>\n");

  /* printWindow.document.write("<HTML><HEAD><TITLE>City of Beaverton<\/TITLE>\n");
  printWindow.document.write("<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"/style_xhtml.css\">\n");
  printWindow.document.write("<\/HEAD>\n");
  printWindow.document.write("<BODY BGCOLOR=\"#FFFFFF\" LEFTMARGIN=\"2\" TOPMARGIN=\"2\" MARGINHEIGHT=\"2\" MARGINWIDTH=\"2\" ALINK=\"#990033\" LINK=\"#000099\" VLINK=\"#330066\">\n");
  printWindow.document.write(htmlToPrint + '\n');
  printWindow.document.write("<\/BODY><\/HTML>\n"); */
  printWindow.document.close();
}
