//根据父项控制子项显示
function FillComboByURL(cmb, sURL , sValue) {
	var xml = new ActiveXObject("Microsoft.XMLDOM");

	sURL = "../XmlService/" + sURL + "?valuecode=" + sValue;  //document.Form1.cmbDSO.value ;
	xml.async = false ;
	xml.load(sURL) ;
	
	cmb.innerHTML = "" ;

	var oOption = document.createElement("OPTION");
	oOption.text = "" ;
	oOption.value = "" ;
	cmb.options.add(oOption) ;

	for (var i=1;i<=xml.selectSingleNode("rows").selectNodes("row").length;i++) {
		var oOption = document.createElement("OPTION");
		oOption.text = xml.selectSingleNode("rows").selectNodes("row").item(i - 1).selectSingleNode("DisplayText").text ;
		oOption.value = xml.selectSingleNode("rows").selectNodes("row").item(i - 1).selectSingleNode("ValueText").text ;
		cmb.options.add(oOption) ;
	} 
}

function FillTextURL(txt, sURL , sValue) {
	var xml = new ActiveXObject("Microsoft.XMLDOM");

	if (window.RegExp && window.encodeURIComponent) {
		NewValue=encodeURIComponent(sValue);
	}
	else{
		NewValue=sValue
	}
	
	sURL = "../XmlService/" + sURL + "?valuecode=" + NewValue;  //document.Form1.cmbDSO.value ;
	xml.async = false ;
	xml.load(sURL) ;
	
	//txt.innerHTML = "" ;
	if (xml.selectSingleNode("rows").selectNodes("row").length>=1) {
		thevalue= xml.selectSingleNode("rows").selectNodes("row").item(0).selectSingleNode("DisplayText").text ;
	}
	else{
		thevalue="";
	}

	//alert(thevalue);
	txt.value = thevalue ;


}


function PageLoad() {
	AdditionalInfoLayer.style.position="absolute";
	AdditionalInfoLayer.style.visibility="hidden";
}

