function loadDBCEvent(eventId) {
  new Ajax.Request(
    '/public.ejs',
    {method:'post',
      parameters: {command:'PublicDBCEventLookup',id:eventId},
      evalScripts: true,
      onLoading:function(transport) {
      
      },
      onSuccess:function(transport) {
        document.getElementById('eventcontent').innerHTML = transport.responseText;
	showElement('event');				
      },
      onFailure: function(transport) {
        alert(transport.responseText.substr(14000));
      },
      asynchronous:true
    });
    return false;
}

function parseEvent(eventXML) {

}


function showElement(id) {
  if (document.all) { //IS IE 4 or 5 (or 6 beta)
    eval("document.all." + id + ".style.visibility = 'visible'");
  }
  if (document.layers) { //IS NETSCAPE 4 or below
    document.layers[id].visibility = 'visible';
  }
  if (document.getElementById && !document.all) {
    var divname = document.getElementById(id);
    divname.style.visibility = 'visible';
  }
}

function hideElement(id) {
  if (document.all) { //IS IE 4 or 5 (or 6 beta)
    eval("document.all." + id + ".style.visibility = 'hidden'");
  }
  if (document.layers) { //IS NETSCAPE 4 or below
    document.layers[id].visibility = 'hidden';
  }
  if (document.getElementById && !document.all) {
    var divname = document.getElementById(id);
    divname.style.visibility = 'hidden';
  }
}

