var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial()
{
 if (document.getElementById != null)
 {
  var html = '<HTML>\n<HEAD>\n';

  html += '\n</HE' + 'AD>\n<BODY>\n<table width=500><tr><td>';
  
  var printHeader = '<b><u>AFC Management Consulting AG</u></b><p>';
  html += printHeader;

  var printTitle = document.getElementById("printTitle");
  var printContent = document.getElementById("printReady");
  var printPic = document.getElementById("printPic");
  
  if (printTitle != null)
  {
    html += '<b>' + printTitle.innerHTML + '</b><p>';
  }
  if (printPic != null)
  {
    html += printPic.innerHTML;
  }
  if (printContent != null)
  {
    html += printContent.innerHTML;
  }

   
  html += '</td></tr></table>\n</BO' + 'DY>\n</HT' + 'ML>';
  
  var printWin = window.open("","printSpecial");
  printWin.document.open();
  printWin.document.write(html);
  printWin.document.close();
  if (gAutoPrint)
   printWin.print();
 }
 else
 {
  alert("Sorry, the print ready feature is only available in modern browsers.");
 }
}
