

/* Algemene print functionaliteit
Functie: Print enkel de titel en tekst van een pagina met daarboven het Sogeti logo en het adres van Sogeti
 */
function printContent(content)
{
  var contents , arrElementTemp , arrAttributesTemp , iCounter , iCounter2, reg

  contents = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">" + "\r\n";
  contents = contents + "<html>" + "\r\n";
  contents = contents + "<head>" + "\r\n";
  contents = contents + "<title>" + document.title + " (print)</title>" + "\r\n";
  contents = contents + "<meta http-equiv=\"Pragma\" content=\"no-cache\" />" + "\r\n";
  contents = contents + "<meta http-equiv=\"Expires\" content=\"0\" />" + "\r\n";



contents = contents + " <link rel=\"stylesheet\" href=\"/includes/stylesheets/print.css\" type=\"text/css\">" + "\r\n";



  contents = contents + "</head>" + "\r\n";
  contents = contents + "<body style=\"background:#FFFFFF\;\">" + "\r\n";

  contents = contents + "<div id=\"center\" style=\"height:100%\;\">";
  contents = contents + "<img src=\"/Images/sogeti_logo_tcm9-87.gif\"/><BR><BR>"; 
  contents = contents + "Lange Dreef 17, 4131 NJ VIANEN<BR>" + "\r\n";
  contents = contents + "Postbus 76, 4130 EB VIANEN<BR>" + "\r\n";
  contents = contents + "tel +31 (0)88 660 66 00, fax +31 (0)88 660 67 00<BR>" + "\r\n";
  contents = contents + "(Voor het aanvragen van algemene bedrijfsinformatie)<BR>" + "\r\n";
  contents = contents + "e-mail: <a href=\"mailto:info@sogeti.nl\">info@sogeti.nl</a><BR><BR>" + "\r\n";
  
  contents = contents + "<div id=\"printcontent\" style=\"height:100\%\;\">"; /*overrides printcontent style in general.css for printoverflow bug in IE */
  contents = contents +  document.getElementById(content).innerHTML.replace('Naar het vacatureoverzicht',''); /*for not showing the badly aligned link */
  contents = contents + "</div>";

  contents = contents + "</div>";

/*  Voeg sitestat code toe en pas de tellernaam aan voor de print pagina. */
  var idSiteStat = document.getElementById('sitestat');
  if (idSiteStat) {
    // element exists do something
    contents = contents + document.getElementById('sitestat').innerHTML.replace(/'(http:\/\/[\w.]+\/?\S*)'/ig, '\'$1_print\'');
  }

  contents = contents + "</body>";
  contents = contents + "</html>";

  var printwindow = window.open("","","");
  printwindow.document.title = document.title;
  printwindow.document.write(contents);
  printwindow.document.close();

  // print normal window.
  printwindow.print();
  return ;

  }