function getcategories(url,divElm){
    var XMLhttpObj = false;
    if (typeof XMLHttpRequest != 'undefined'){
        XMLhttpObj = new XMLHttpRequest();
    } else if (window.ActiveXObject){
        	try{
            	XMLhttpObj = new ActiveXObject('Msxml2.XMLHTTP');
        	} catch(e) {
            		try{
                		XMLhttpObj = new ActiveXObject('Microsoft.XMLHTTP');
            		} catch(e) {}
        	}
    }
    if (!XMLhttpObj) return;
	
	XMLhttpObj.onreadystatechange = function() {
    	if (XMLhttpObj.readyState == 4) { // when request is complete
            fillSelect(XMLhttpObj.responseText,divElm);
        }
    };
    url = url+"?sid="+Math.random();
    XMLhttpObj.open('GET', url, true);
    XMLhttpObj.send(null);
}
function fillSelect(optionData,divElm) {
    var edivElm = document.getElementById(divElm);
    edivElm.innerHTML = optionData;    
}
