



// Tooltip-like help pop-ups used in forms

  function formtooltip(el,flag){
    elem = document.getElementById(el);
    if(!elem)return;
    if (flag) { 
      elem.parentNode.parentNode.style.zIndex=1000;
      elem.parentNode.parentNode.style.borderRight='0px solid #000';
      // ugly , yes .. but neccesary to avoid a small but very annoying bug in IE6
      elem.style.visibility='visible';
    }
    else {
      elem.parentNode.parentNode.style.zIndex=1;
      elem.parentNode.parentNode.style.border='none';
      elem.style.visibility='hidden';
      if (el = 'effective_date_help') {
          elv = document.getElementById("effective_date");
          if (elv.value=='')elv.value='None'; }
      if (el = 'expiration_date_help') {
          elv = document.getElementById("expiration_date");
          if (elv.value=='')elv.value='None'; }
    }
  }
