    
    function show_postings(item){ 
             //Append the name to search for to the requestURL 
			var requestURL = '/DufferinPeelWeb/UserControls/BoardLevel/PR/PrImptPosting.aspx?item='; 
            var url = requestURL + item; 
            GetXmlHttpObject(url, prPostings);
    
    } 

 
   function GetXmlHttpObject(url,Test) { 
        var objXmlHttp = null;    //Holds the local xmlHTTP object instance 

         if (window.XMLHttpRequest) { // Mozilla, Safari,...
            objXmlHttp = new XMLHttpRequest();
              if (objXmlHttp.overrideMimeType) {
                objXmlHttp.overrideMimeType('text/xml');
                // See note below about this line
            }
        } else if (window.ActiveXObject) { // IE
            try {
                objXmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }
        objXmlHttp.onreadystatechange = function() { Test(objXmlHttp); };
        objXmlHttp.open('GET', url, true);
        objXmlHttp.send(null);
  
    } 

function prPostings(objXmlHttp) {
        if (objXmlHttp.readyState == 4) {
            if (objXmlHttp.status == 200) {
                var str = objXmlHttp.responseText; 
            document.getElementById('prImptPostingsItems').innerHTML = "";
            //Populate the innerHTML of the div with the results 
            try{
				document.getElementById('prImptPostingsItems').innerHTML =str; 
				}catch (e)
				{
				//A bug in IE need to wrap this into another div for it to work
				var wrappingDiv = document.createElement('moreItems');
				wrappingDiv.innerHTML = str;
				document.getElementById('prImptPostingsItems').appendChild(wrappingDiv);
				}
            } else {
                //alert('There was a problem with the request.');
            }
        }

    }


   

