function printerFriendly(id){
  var popup = window.open("","","width=800, height=600, scrollbars=yes");
  var content = popup.document;
  content.open('text\/html');
  content.write('<html><head><title>Printer Friendly Version<\/title>');
  content.write('<link rel="stylesheet" type="text\/css" href="\/css\/layout.css" \/>');
  content.write('<link rel="stylesheet" type="text\/css" href="\/css\/text.css" \/><\/head>');
  content.write('<body style="background:#ffffff;"><div id="popupContainer" class="textBlack">');
  content.write('<div><img src="\/images\/header\/logoWhite.jpg" width="700" height="110" alt="Power Curbers & Power Pavers" border="0" \/>')
  content.write('<br \/><a href="javascript:window.close();">Close Window<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:window.print();">Print Window<\/a><br \/>');
  content.write(document.getElementById(id).innerHTML);
  content.write('<br \/><br style="clear:both;" \/><a href="javascript:window.close();">Close Window<\/a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:window.print();">Print Window<\/a><\/div><\/body><\/html>')
  content.close();
}

function printMachine(url){
  window.open(url,"","width=800, height=600, scrollbars=yes")
}

// Hide / Show a layer with one click of a link
// Written by Lars Michael Astrom
// 2007 A3 IT Solutions

function hideShow(id){
  var obj = document.getElementById(id); // set the object to be changed
  if (obj.style.display == "none"){
    obj.style.display = "block";
  }else{
    obj.style.display = "none";
  }
}

function silentErrorHandler() {return true;}
window.onerror=silentErrorHandler;