Hola
 
Pruba con esto. Necesitas un textfield con id 
txt y un div(capa) con el nombre 
contenedor    
Código Javascript
:
Ver original- var SelUsuario = { 
-   
- Evento: function (elemento,nomevento,funcion) { 
-   if (elemento.attachEvent) 
-   { 
-       var f=function(){ 
-         funcion.call(elemento,window.event); 
-     } 
-     elemento.attachEvent('on'+nomevento,f); 
-     return true; 
-   } 
-   else   
-     if (elemento.addEventListener) 
-     { 
-       elemento.addEventListener(nomevento,funcion,false); 
-       return true; 
-     } 
-     else 
-       return false; 
- }, 
-   
-   
-   
- init: function(){ 
- var txtfield = document.getElementById("txt"); // el textfield 
- var elem = document.getElementById("contenedor"); // la capa 
-         SelUsuario.Evento(elem1, 'click', SelUsuario.Muestra); 
-         SelUsuario.Evento(elem, 'mouseover', SelUsuario.Seleccionar); 
-         SelUsuario.Evento(window, 'click', SelUsuario.Cerrar); 
-     }, 
-   
-   
-   
- Muestra: function () { 
- var obj = document.getElementById("contenedor") 
-                 if (obj.style.display == "block"); obj.style.display= "none";        
- }, 
-   
-   
- Seleccionar: function () { 
- var ref = document.getElementById(this.id).getElementsByTagName('DIV'); // la capa y DIV son los elementos que hay dentro de la capa 
-   
- for (var i = 0; i < ref.length; i++) { 
-   
- SelUsuario.Evento(ref[i], 'click', function() { 
- SelUsuario.Pegar(this.id); 
-   
- })    
- } 
- }, 
-   
-   
-   
- Pegar: function (valor) { 
- var obj = document.getElementById("contenedor") 
-         document.getElementById("txt").value = valor; 
-                 if (obj.style.display == "block"); obj.style.display= "none";        
- } 
-   
- SelUsuario.Evento(window, 'load', SelUsuario.init); 
Suerte