function cancelEvent()
{
  if (window.event != null)
  {
    window.event.cancelBubble = true;
    window.event.returnValue = true;
  }
  
  return (true);
}

function clearStatus()
{
  window.status = "";
  return (cancelEvent());
}

function showWindowStatus(pElement)
{
  if (pElement == null)
  {
    return;
  }
  else if (pElement.status != null)
  {
    window.status = pElement.status;
  }
  else if ((pElement.title != null) && (pElement.title.length > 0))
  {
    window.status = pElement.title;
  }
  else if (pElement.alt != null)
  {
    window.status = pElement.alt;
  }
  else
  {
    return;
  }
  
  return (cancelEvent());
}

