        
        function ajaxrequest(requesturl,divname,names,values,readyfunction){
        	
            var xmlHttp;
            try {
                // Firefox, Opera 8.0+, Safari
                xmlHttp=new XMLHttpRequest();
            }
            catch (e) {
                // Internet Explorer
                try {
                    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
                } catch (e){
                    try {
                        //IE5.5
                        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                    } catch (e) {
                        xmlHttp=false;
                    }
                }
            }
            //dynamically construct the name/value pairs in the url with the data from the
            //form
            var url=requesturl+'?';
            var i=0;
            while(i!=names.length){
                url+=names[i]+'='+values[i]+"&";
                i++;
            }
            url=url.substr(0,url.length-1);
            //every time the server replies call the function below
            //which will update the page if the response is valid
            xmlHttp.onreadystatechange =function()
            {
            //when the ready state=4 then the server has handled the request
            // so then set the page division = to the results of the request
                if (xmlHttp.readyState == 4) {
                    document.getElementById(divname).innerHTML=xmlHttp.responseText;
                    if(readyfunction=='getajaxservices'){
                    	getajaxservices();
                    }
                }
            }
            xmlHttp.open("GET", url, true);
            //send the request
            xmlHttp.send(null);
            
            }
            
            