  /******************************
    Notice : Permission to use this script is
    restricted, unless this header remains intact.
    Copyright (c) 2008 Joppadesign
    
    Writer - Curt Arbtin
    Contact - curt@joppadesign.com
    Date Created - Aug 2008
    Use - grab content and put it into a new window
    Requires - no other sources
  *******************************/
  var targetName = "printablePage";
  var siteName = "http://www.ci.amarillo.tx.us";
  var siteFooter = "Content Printed from "+ siteName;
  var winPrint, docPrint;

  function show_printable()
  {
    var targetContent = document.getElementById(targetName).innerHTML;

    winPrint = window.open('',"printableWindow","toolbar=yes,status=no,menubar=yes,fullscreen=no,scrollbars=yes,width=816,height=600,resizable=yes,top=100,left=100");

    render_Print_Page(targetContent);
    //winPrint.close();
    //winPrint.focus();
  }
  
  function render_Print_Page(targetContent)
  {
    docPrintHTML = "<html><head><title>Content Printed from "+siteName+"</title>\n";
    docPrintHTML += "<script language=\"javascript\">var winMain=window.opener;</script>\n";
    //docPrintHTML += "<script language=\"javascript\" src=\"printPage.js\"></script>\n";
    docPrintHTML += "<link href=\"printPage.css\" media=\"print, screen\" rel=\"stylesheet\" type=\"text/css\" />";
    docPrintHTML += "</head><body onload=\"window.print()\">\n";
    docPrintHTML += "<p class=\"print-button\"><input type=\"button\" value=\"Print\" onclick=\"javascript:window.print();\" /></p>";
    docPrintHTML += targetContent;
    docPrintHTML += "<p class=\"print-footer\">Printed from URL: "+ window.location.href +"</p>";
    docPrintHTML += "</body></html>";

    winPrint.document.open();
    winPrint.document.write(docPrintHTML);
    winPrint.document.close();
  }