var XmlHTTP;
		var bFirst=true;
		var STATE_UNINITIALIZED=0;
		var STATE_LOADING=1;
		var STATE_LOADED=2;
		var STATE_RECEIVING=3;
		var STATE_COMPLETED=4;
		
		function buidHttpRequest()
		{
			var myReq=null
			if (window.XMLHttpRequest)// Non IE
				myReq=new window.XMLHttpRequest();
			else
				if (typeof(ActiveXObject)!='undefined')
					myReq=new ActiveXObject("Microsoft.XMLHTTP");//IE
			return myReq;
		}
		
		function sendRequest(URL, params, method)
		{
			if (!method)
				method="GET";
			//alert(URL + 'ok');
			XmlHTTP=buidHttpRequest();
			if (!XmlHTTP) return;
			XmlHTTP.onreadystatechange = showThumbnailPicture;
			XmlHTTP.open(method, URL, true);
			XmlHTTP.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
			XmlHTTP.send(params);			
		}
		function sendMultiRequest(URL, params, method, callback)
		{
			if (!method)
				method="GET";
			//alert(URL + 'ok');
			XmlHTTP=buidHttpRequest();
			if (!XmlHTTP) return;
			XmlHTTP.onreadystatechange = callback;
			XmlHTTP.open(method, URL, true);
			XmlHTTP.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
			XmlHTTP.send(params);
		}//sendMultiRequest
		//
		//function buildXMLDocument(){
		//	var xDoc=null;
		//	if (document.implementation	&& document.implementation.createDocument)
		//		xDoc=document.implementation.createDocument("","",null);
		//	else 
		//		if (typeof ActiveXObject != "undefined"){
		//		var msXmlAx=null;
		//			try{
		//				msXmlAx=new ActiveXObject("Msxml2.DOMDocument");
		//			}//try
		//			catch (e){
		//				msXmlAx=new ActiveXObject("Msxml.DOMDocument");
		//			}//catch
		//			xDoc=msXmlAx;
		//		}//if
		//	if (xDoc==null || typeof xDoc.load=="undefined"){
		//	xDoc=null;
		//	}
		//	return xDoc;
		//}
		//
		function myProcess()
		{
			var xPath= bFirst?"//Categories":"//Products";
			window.status= 'State [' + XmlHTTP.readyState + ']';
			if (XmlHTTP.readyState==STATE_COMPLETED)						
			{
				if (XmlHTTP.status!=200)
				{
					alert ('Not good! status= ' + XmlHTTP.status );
					return;
				}
				//myDoc=buildXMLDocument();
				var oDoc=XmlHTTP.responseXML.documentElement;
				var nodeList=oDoc.selectNodes(xPath);
				//alert ('my list has ' + nodeList.length);
				if (nodeList.length==0)
				{
					alert ('Khong co du lieu thoa man yeu cau \n XPATH=' + xPath  );
					//return;
				}
				var el=null;
				if (bFirst)
					el=document.getElementById("cboCategories");
				else
					el=document.getElementById("cboProducts");
				el.length=0;// tim cach xoa khac
				for (var i=0; i<nodeList.length; i++)
				{
					var newEl=document.createElement("Option");
					newEl.value=nodeList[i].firstChild.text;
					newEl.text=nodeList[i].lastChild.text;
					el.add(newEl);
				}//for				
			}//STATE_COMPLETED
		}//myProcess
		
//______________________________
function high(which2)
{
	theobject=which2
	highlighting=setInterval("highlightit(theobject)",30)
}

function low(which2)
{
	clearInterval(highlighting)
	which2.filters.alpha.opacity=70
}

function highlightit(cur2)
{
	if (cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=5
	else 
		if (window.highlighting) clearInterval(highlighting)
}


		