function deframe() {
 top.location.href = self.location.href;
}

function err_handler(msg, url, line) {
 deframe();
 return true;
}
window.onerror = err_handler;

function killExternalFrames() {
 if (top.location.hostname == null)
  deframe();
}

function printContent() {
 if(window.print)
  window.print()
 else
  alert("Please use your browser's Print function to print this page.")
}
