//javascript and ajax code for populating combo boxes etc


function makeRequestPost(url, oParams) {
params="";
//ajax function that accesses php page named sUrl, taking the paramaters as Get strings
          for (sName in oParams) {
            params += encodeURIComponent(sName) + "=" + encodeURIComponent(oParams[sName]) + "&";
             }
             params = params.slice(0,-1);

var http = new XMLHttpRequest();

http.open("POST", url, true);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");

http.onreadystatechange = function() {//Call a function when the state changes.
  if(http.readyState == 4 && http.status == 200) {
   eval(decodeURIComponent(http.responseText));
 }
}
http.send(params)

//callback function


//end makeRequest function
}



////

//end fucntion jsPopulatePorts
