function myMemu(id,fun){
			var obj = document.getElementById(id);	
			var inputBox = obj.getElementsByTagName("div")[0];
			var menuBox = obj.getElementsByTagName("ul")[0];
			var items =  menuBox.getElementsByTagName("li");
			var me = this;
			menuBox.style.display = "none";	
			inputBox.onclick = function(){
 					menuBox.style.display = "";	
					this.style.color="#000";
					this.style.backgroundColor="#fff";
			}
			for(var i = 0 ; i<items.length; i++){
				   var item = items[i];
				   (function(item){ 
				   		
						item.onmouseover = function(){
 								 this.style.backgroundColor  = "#eee";	
								 menuBox.style.display = ""
								 inputBox.style.color="#000";
								 inputBox.style.backgroundColor="#fff";
						}
						item.onmouseout = function(){
 								 this.style.backgroundColor  = "#fff";	
						}
						item.onclick = function(){
 								menuBox.style.display = "none";	
								inputBox.style.color="#fff";
								inputBox.style.backgroundColor="";
								me.hid = this.getAttribute("hid");
								me.value = inputBox.innerHTML = this.innerHTML;
								fun.call(me);
						}					
					})(item);	
			}
			obj.onmouseout = function(){
								menuBox.style.display = "none";	
								inputBox.style.color="#fff";
								inputBox.style.backgroundColor="";
							}
	
}

// JavaScript Document
