         function requestCustomerInfo(id)
		 {
			var mag_id=id.value;
			
			var oXmlHttp = zXmlHttp.createRequest();
			 oXmlHttp.open("get", "getdata.php?id="+mag_id, true);
             oXmlHttp.onreadystatechange = function () {
                if (oXmlHttp.readyState == 4) {
                    if (oXmlHttp.status == 200)
					 {
					   // alert(oXmlHttp.responseText);
						PopulateCategoryList(oXmlHttp.responseXML.documentElement);
					}		
					 else
					 {
						PopulateCategoryList(oXmlHttp.responseXML.documentElement); 	
					}
                }            
            };
            oXmlHttp.send(null);
		 
        }
      
	function PopulateCategoryList(categoryNode)
	{
    var issuecontent = document.getElementById("issuecontent");
	for (var count = issuecontent.options.length; count >=0; count--)
	{
		issuecontent.length = 0;
	}
	var categoryNodes = categoryNode.getElementsByTagName('category');
	var idValue;
	var textValue; 
	var optionItem;
	
	
	for (var count = 0; count < categoryNodes.length; count++)
	{
		
   		textValue = GetInnerText(categoryNodes[count]);
		idValue = categoryNodes[count].getAttribute("id");
		optionItem = new Option( textValue, idValue,  false, false);			
		issuecontent.options[issuecontent.length] = optionItem;
	}
}

function GetInnerText (node)
{
	 return (node.textContent || node.innerText || node.text) ;
}
   
