<!--
function Main()
{
   var strResult = new String()
   var intEventID = arrevent[0][0]
   var strName = StringDecode(arrevent[0][1])
   var strDescription = StringDecode(arrevent[0][2])
   var intType = arrevent[0][3]
   var intReport = arrevent[0][4]
   var intRevert = arrevent[0][5]
   var intShowInfo = arrevent[0][6]
   var strInfo = StringDecode(arrlocal[1]) 
   var strGoto = StringDecode(arrlocal[2]) 
   var strBackLabel = StringDecode(arrlocal[3])
   var strBackHomeLabel = StringDecode(arrlocal[4])

   if (strBackLabel.length == 0) { strBackLabel = 'terug' }
   if (strBackHomeLabel.length == 0) { strBackHomeLabel = 'verder' }

   strResult += '<P>' + strDescription + '</P>'

   if ((strInfo.length !== 0) && (intShowInfo)) { strResult += '<P ID="pheader">Specifieke foutmelding</P><P><I>' + strInfo + '</I></P>' }

   switch (intType)
   {
      case 1 : strResult += '<P ID="previous"><A HREF="javascript:history.go(-' + intRevert + ');"><IMG BORDER="0" SRC="images/icons/icon-leftarrowwhite.gif"> terug</A></P>'; break
      case 2 : strResult += '<P ID="next"><A HREF="' + strGoto + '"><IMG BORDER="0" SRC="images/icons/icon-rightarrowwhite.gif"> verder</A></P>'; self.setTimeout("window.location.href = '" + strGoto + "';", 5000); break 
      case 4 : strResult += '<P ID="next"><A HREF="' + strGoto + '"><IMG BORDER="0" SRC="images/icons/icon-rightarrowwhite.gif"> verder</A></P>'; self.setTimeout("window.location.href = '" + strGoto + "';", 5000); break 
   } 

   document.getElementById("titlediv").innerHTML = strName
   document.getElementById("contentdiv").innerHTML = strResult
}

InsertLayout()
Main()
//-->

