function updateViewPopList() {
	if (request.readyState == 4) {
		var responseInfo = request.responseText.split("*;*");//get the response from the server
		var strOptions = responseInfo[0];
		var ddlTargetID = responseInfo[1];
		//alert(responseInfo);
		var ddlTarget = document.getElementById(ddlTargetID);
		var arrOptions = strOptions.split(";"); //strOptions is a semicolon separated array of all option pairs
		//hide the wait image
		var processingImage = document.getElementById("processingImage" + ddlTargetID).style;
		processingImage.display = processingImage.display? "":"none";	
		//get rid of old options
		ddlTarget.options.length = 0;
		//make it visible
		ddlTarget.style.display = "block";	
		//add a blank option
		var optn = document.createElement("OPTION");
		optn.value = "";
		optn.text = "";
		ddlTarget.options.add(optn);
		for (var strPair in arrOptions) {
			var arrPair = arrOptions[strPair].split("/"); //strPair is slash separated pair of option value and text
			var OptionID = arrPair[0];
			var OptionName = arrPair[1];
			var optn = document.createElement("OPTION");
			optn.value = OptionID;
			optn.text = OptionName;
			ddlTarget.options.add(optn);
		}			
	}
}
