#cgivar rtn
#setifnotgiven _ERRORMESSAGE = "An unspecified error occurred"
#set TITLE = "Error report
#include top
//
<center>
#if @_ERRORMESSAGE != ""
<br>
<h3>
@_ERRORMESSAGE
<br>
<br>
<a href="?rtn=index">Continue</a>
<h3>
// keep track of all errors 
#write @PROJDIR/logs/web_errorlog  a
  #+ @CURRENT_DATE @CURRENT_TIME who=@USER page=@rtn @_ERRORMESSAGE ..from: @REFERER
#endwrite

