var formTooltip = function()
{
  var tooltip = document.getElementById('theFormToolTip');
  var container = document.getElementById('theFormToolTipContainer');
  var theInput = document.getElementById('password');
  
  if (container) {
    container.style.zIndex='100';
    container.style.position='absolute';
    container.style.display='inline';
    container.style.margin='22px 0 0 5px';
  }
  
  if (tooltip) {
     tooltip.style.margin='0';
     tooltip.style.padding='2px 3px';
     tooltip.style.border='1px solid #000';
     tooltip.style.background='#FFFFE1';
     tooltip.style.color='#000';
     tooltip.style.fontSize='11px';
     tooltip.style.fontFamily='tahoma, sans-serif';
     too1tip.style.display='none';
     tooltip.style.whiteSpace='nowrap';
  }

  if(tooltip && theInput && theInput.tagName == "INPUT")
  {
    var toolTipTitle = theInput.title;
    theInput.title = "";
    tooltip.display="none";
  


    theInput.onfocus = function()
    {
      tooltip.innerHTML = toolTipTitle;
      tooltip.style.display="block";
    }
    theInput.onkeydown = function()
    {
      tooltip.style.display="none";
    }
    theInput.onblur = function()
    {
      tooltip.style.display="none";
    } 
  } 
}

addEvent(window, 'load', formTooltip);
