// --- Functions relating to the Printer Friendly page ----
function go_back() {
// Due to issues with history.go(-1) and certain browsers not recognizing the 
// '?print=on' argument as a different page, this code simulates the 'back'
// functionality.
  var test=String(document.location).substring(0,String(document.location).indexOf("print=on"))
  if (test.charAt(test.length-1)=='?') {test=test.substring(0,test.length-1);}
  document.location=test;
}

function printer() {
  document.location=document.location+"?print=on";
}

function printMode() {
  if (String(document.location).match("print=on")) {
    document.write('<link rel="stylesheet" href="css/print.css" />');

  }
}
