
// <!-- \/ Mouse Click Functions
// These provide functionality for determining whether an item has been clicked or not
//   and are meant to extend what the current onClick event does by allowing you to
//   trap the event.
// The event provides information such as where on the screen the click took place.
// To use these functions you must:
//   1) Name the object you wish to trap the 'clicks' on
//   2) Include:
//     a) onMouseDown="setMouseDown(event)";
//     b) onMouseUp="<some action that checks 'checkMouseDown'>";
//          This action should accept the 'event' as a parameter
//  
  mouseDown = new Array();
  
  function setMouseDown(e, target) {
    mouseDown[target.name] = true;
  }
  function clearMouseDown(e, target) {
    mouseDown[target.name] = false;
  }
  function checkMouseDown(e, target) {
    if (mouseDown[target.name]) {
      mouseDown[target.name] = false;
      return true;
    }
    else {
      return false;
    }
  }
//      /\ Mouse Click Functions

<!--
  function openWindow(event, target, FileName, windowName, width, height) {

    if (!(width && height)) {
      width = 800;
      height = 600;
    }
    
    if (checkMouseDown(event, target)) {
      _openWindow(event, false, FileName, windowName, width, height);
    }
return false;
  }
  function _openWindow(event, dependant, FileName, windowName, width, height) {
   wh = window.open(FileName, windowName, 'dependant=' + (dependant ? 'yes' : 'no') + ',resizable=no,scrollbars=yes'  + ',width=' + width + ',height=' + height + ',left=' + (event.screenX - 200) + ',top=' + (event.screenY));    wh.topwin = self;
    wh.focus(); 
  }

  function openWindow2(FileName) {
   wh = window.open(FileName,"","width=300,height=300,screenX=200,screenY=200,");
   wh.topwin = self;
   wh.focus(); 
   return false;
  }
//  /\
// -->

