rem:  unObj.onblur = function() { CheckDestroyUsernameDropdowns(thediv.id); }; 
context:   ajaxGet(stdAjaxPrefix+'&_mode=fillpagename&name='+val, function()    {      if(!ajax) return;      if(ajax.readyState==4)      {        // Determine the appropriate left/top positions, then create a div to use for the drop-down list        // The trick here is to be able to make the div dynamically destroy itself depending on how far the user's mouse is from it        destroyUsernameDropdowns();        off = fetch_offset(unObj);        dim = fetch_dimensions(unObj);        left = off['left'];        top = off['top'] + dim['h'];        var thediv = document.createElement('div');        thediv.className = 'tblholder';        thediv.style.marginTop = '0px';        thediv.style.position = 'absolute';        thediv.style.top  = top  + 'px';        thediv.style.left = left + 'px';        thediv.style.zIndex = getHighestZ() + 2;        id = 'usernamehoverobj_' + Math.floor(Math.random() * 10000000);        unObjDivCurrentId = id;        thediv.id = id;                eval(ajax.responseText);        if(errorstring)        {          html = '<span style="color: #555; padding: 4px;">'+errorstring+'</span>';        }        else        {          html = '<table border="0" cellspacing="1" cellpadding="3" style="width: auto;"><tr><th colspan="2">Page name matches</th></tr><tr><th><small>Page title</small></th><th><small>Page ID</small></th></tr>';          cls = 'row2';          unObjCurrentSelection = userlist[0];          for(i=0;i<userlist.length;i++)          {            tmpnam = 'listobjnode_'+Math.floor(Math.random() * 10000000);            html = html + '<tr><td id="'+tmpnam+'" class="'+cls+'" style="cursor: pointer;" onclick="document.getElementById(\''+unObj.id+'\').value=\''+userlist[i]+'\';destroyUsernameDropdowns();"><small>'+namelist[i]+'</small></td><td class="'+cls+'" style="cursor: pointer;" onclick="document.getElementById(\''+unObj.id+'\').value=\''+userlist[i]+'\';destroyUsernameDropdowns();"><small>'+userlist[i]+'</small></td></tr>';            if(cls=='row2') cls='row1';          }          html = html + '</table>';        }                thediv.innerHTML = html;        var body = document.getElementsByTagName('body');        body = body[0];        unSelectMenuOn = true;        submitAuthorized = false;        body.appendChild(thediv);                unObj.onblur = function() { CheckDestroyUsernameDropdowns(thediv.id); };      }    });
meta: 3765	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3765/e66e3e72024c3a70327b744838cf3edb34ac81c2/autocomplete.js/buggy/includes/clientside/static/autocomplete.js