var ofd=""; function makeRequest(url, target, ldr) { var httpRequest; var ThisField=document.getElementById(target); if (document.getElementById(target)){ ofd=document.getElementById(target).style.overflow; var CurrH=ThisField.offsetHeight; ThisField.style.overflow=""; } if (ldr=='1') { var Tldr=uds+'/tpl/pictures/bar-loader.gif'; ThisField.innerHTML='<img src="'+Tldr+'" border="0"alt="LOADING" />'; ThisField.style.height=CurrH; } else if (ldr=='2'){ var Tldr=uds+'/tpl/pictures/ajax-loader_s.gif'; ThisField.innerHTML='<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr> <td align="center"><img src="'+Tldr+'" border="0"alt="LOADING" /></td></tr> </table>'; ThisField.style.height=CurrH; } else if (ldr=='10'){ } else{ var Tldr=uds+'/tpl/pictures/ajax-loader.gif'; ThisField.innerHTML='<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr> <td align="center"> <img src="'+Tldr+'" border="0" alt="LOADING"/></td></tr> </table>'; ThisField.style.height=CurrH; } if (window.XMLHttpRequest) { httpRequest = new XMLHttpRequest(); if (httpRequest.overrideMimeType) { httpRequest.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { try { httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!httpRequest) { alert('Giving up :( Cannot create an XMLHTTP instance'); return false; } httpRequest.onreadystatechange = function() { alertContents(httpRequest, target); }; httpRequest.open('GET', url, true); httpRequest.send(''); } function alertContents(httpRequest, target) { if (httpRequest.readyState == 4) { if (httpRequest.status == 200) { var ThisField=document.getElementById(target); if (ThisField){  ThisField.innerHTML=httpRequest.responseText; } } else { alert('There was a problem with the request. Please try again.'); } } }