
function GetData(element,service){

	if(!element._hasData){
	
		element._hasData=true;
		
		var request=(window.XMLHttpRequest)?new XMLHttpRequest():(window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):null;
		if(request){
		
			request.open("GET",service,false);
			request.send(null);
			if(request.status==200){
			
				var currentValue=element.value;
				if(element.options.length>0){
				
					var selectedOption=element.options[element.selectedIndex];
					element.removeChild(selectedOption);
				
				}
				
				var nodes=request.responseXML.documentElement.childNodes;
				for(var i=0;i<nodes.length;i++){
				
					var node=nodes[i];
					if(node.nodeType==1){
				
						var name=node.firstChild.nodeValue;
						var value=node.getAttribute("value")||name||"";
						var option=new Option(name,value);
						if(value==currentValue){
							
							option.selected=true;
						
						}
						
						element.options[element.options.length]=option;
				
					}
				}
			}
		}
	}
}

