var xmlHttp;

function GetXmlHttpObject(handler) {
	var objXmlHttp = null;
	try {
		objXmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
		if (handler != null) objXmlHttp.onreadystatechange = handler;
		}
	catch (e1) {
		try {
			objXmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
			if (handler != null) objXmlHttp.onreadystatechange = handler;
			}
		catch (e2) {
			try {
				objXmlHttp = new XMLHttpRequest();
				if (handler != null) {
					objXmlHttp.onload = handler;
					objXmlHttp.onerror = handler;
					}
				}
			catch (e3) {
				objXmlHttp = null;
				}
			}
		}
	return objXmlHttp;
}

function xmlHttp_Send(xmlhttp, url, data) {
    xmlhttp.open('POST', url, true); 
    xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
    xmlhttp.send(data);
} 
function upds(from,to) 
{ 
	function add(ind, o,v,t) 
	{ 
			this.d=document.createElement("option"); 
			this.d.value=v; 
			this.d.text=t; 
			o.options[ind]=this.d;
	} 
	this.si=from.selectedIndex; 
	this.fh=document.forms[0]; 
	this.eh=this.fh.elements[to]; 
	while(this.eh.length)this.eh.remove(0); 
	for(this.i=0;this.i<xxx[this.si][2].length;this.i++) {
			add(i, this.eh,xxx[this.si][2][this.i][0],xxx[this.si][2][this.i][1]); 
	}
	this.eh.selectedIndex=0; 
}
