
<!-- Beginning of JavaScript

function doError(a1,a2,a3) {
  str = "<body bgcolor=\"000000\" marginwidth=\"5\" marginheight=\"5\" topmargin=\"5\" leftmargin=\"5\">"
  str += "<TITLE>A Javascript error has occurred</TITLE>"
  str += "<center>"
  str += "<table width=\"560\" bgcolor=\"lightyellow\" height=\"420\" cellpadding=\"10\" cellspacing=\"0\" border=\"1\">"
  str += "<tr><td>"
  str += "<FONT FACE='geneva, arial, sans-serif'><FONT COLOR=darkred SIZE=+1>"
  str += "<B>A Javascript Error has Occurred:</B></FONT>"
  str += "<FONT SIZE=-1><BR>Something went wrong while processing this page."
  str += "<P>To help the web administrator identify the problem,"
  str += " please provide a brief explanation of what you were doing"
  str += " on the page at the time of this error," 
  str += " and press the submit error button below. This will help" 
  str += " us identify and fix the error. If the error occurred as the"
  str += " page was loading, simply state \"<b>as page was loading</b>\""
  str += " in the description box below - then click submit error information."
  str += " If you receive several of these error messages at once,"
  str += " please click \"submit error information\" in each."
  str += " This will assist us to correct the problems."
  str += " Your email address is needed <u>only</u> if you are wanting" 
  str += " feedback from us regarding this error. Thank you."
  str += "<FORM METHOD=\"POST\" ACTION=\"/cgi-bin/cgiemail/java-error.txt\">"
  str += "<INPUT NAME=\"success\" TYPE=\"hidden\" VALUE=\"http://www.royal-health.com/thank-you-java.htm\">"
  str += "Error Description:<BR><TEXTAREA NAME=desc ROWS=5 COLS=30></TEXTAREA>"
  str += "<BR>E-Mail (optional)<BR><INPUT NAME=email SIZE=30>"
  str += "<INPUT TYPE=hidden name=error VALUE=\"" + a1 + "\">"
  str += "<INPUT TYPE=hidden name=file VALUE=\"" + a2 + "\">"
  str += "<INPUT TYPE=hidden name=line VALUE=\"" + a3 + "\">"
  str += "<P><INPUT TYPE=SUBMIT VALUE=\"Submit Error Information\">"
  str += "</FORM></FONT></FONT>"
  str += "</td></tr></table></center>"
  var w = window.open("","","width=570,height=430,top=50,left=50")
  var d = w.document
  d.open() 
  d.write(str)
  d.close()
  return true
}

window.onerror = doError
//-->


