<!--


/**
 * This method is the DynaForm constructor.
 */
function DynaForm(pId) {
  
  // Unique identifier corresponds to id attribute on DynaForm.
  this.mId = pId;
}

/**
 * This method handles the onmouseover event for the Options menu associated
 * with the form. It shows the div associated with the Options menu.
 */
DynaForm.prototype.mouseOverMenu = function() {
  var lMenuTd = document.all[this.mId + "Menu"];
  var lMenuDiv = document.all[this.mId + "MenuDiv"];
  if (lMenuTd != null && lMenuDiv != null) {
    if (!lMenuDiv.contains(window.event.srcElement) || lMenuDiv.style.display != 'block') {
      if (document.body.offsetWidth - lMenuDiv.style.pixelWidth < lMenuTd.offsetLeft + 3) {
        lMenuDiv.style.posRight = 0;
      }
      else {
        lMenuDiv.style.posLeft = lMenuTd.offsetLeft;
      }
      lMenuDiv.style.posTop = lMenuTd.offsetTop + lMenuTd.offsetHeight;
      lMenuDiv.style.display = 'block';
    }
  }
}

/**
 * This method handles the onmouseout event for the Options menu associated
 * with the form. It hides the div associated with the Options menu.
 */
DynaForm.prototype.mouseOutMenu = function() {
  var lMenuDiv = document.all[this.mId + "MenuDiv"];
  if (lMenuDiv != null) {
    if (!lMenuDiv.contains(window.event.toElement)) {
      lMenuDiv.style.display = 'none';
    }
  }
}

//-->
