function ajaxPost(a,b,c){if(b==""||typeof b=="undefined")b="/uniScripts/mgrqispi.dll";var d=this;if(window.XMLHttpRequest)d.xmlHttpReq=new XMLHttpRequest;else if(window.ActiveXObject)d.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");d.xmlHttpReq.open(a,b,!0);d.xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");d.xmlHttpReq.onreadystatechange=function(){d.xmlHttpReq.readyState==4&&updatepage(d.xmlHttpReq)};d.xmlHttpReq.send(c)} function ajaxSend(a){if(window.XMLHttpRequest)this.xmlHttpReq=new XMLHttpRequest;else if(window.ActiveXObject)this.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");this.xmlHttpReq.open("POST","/uniScripts/mgrqispi.dll",!0);this.xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.xmlHttpReq.onreadystatechange=function(){return!0};this.xmlHttpReq.send(a)} function updatepage(a){for(var b=a.responseXML.getElementsByTagName("divdata"),a=a.responseXML.getElementsByTagName("parse"),c=0;c<b.length;c++){var d=b[c].attributes.getNamedItem("divname").value;if(document.getElementById(d))navigator.appName=="Microsoft Internet Explorer"?document.getElementById(d).innerHTML=b[c].firstChild.nodeValue:document.getElementById(d).innerHTML=b[c].childNodes[1].nodeValue}if(navigator.appName=="Microsoft Internet Explorer")for(c=0;c<a.length;c++)eval(a[c].firstChild.nodeValue); else for(c=0;c<a.length;c++)eval(a[c].childNodes[1].nodeValue);fixPNG();try{datePickerController.create()}catch(e){}}function getNodeValue(a,b){return a.getElementsByTagName(b)[0].firstChild.nodeValue} function create_request_string(a){var b="";for(i=0;i<a.elements.length;i++){isFormObject=!1;switch(a.elements[i].tagName){case "INPUT":case "input":switch(a.elements[i].type){case "text":case "hidden":case "password":b+=a.elements[i].name+"="+encodeURIComponent(a.elements[i].value);isFormObject=!0;break;case "checkbox":b+=a.elements[i].checked?a.elements[i].name+"="+encodeURIComponent(a.elements[i].value):a.elements[i].name+"=";isFormObject=!0;break;case "radio":a.elements[i].checked&&(b+=a.elements[i].name+ "="+encodeURIComponent(a.elements[i].value),isFormObject=!0)}break;case "TEXTAREA":b+=a.elements[i].name+"="+encodeURIComponent(a.elements[i].value);isFormObject=!0;break;case "SELECT":var c=a.elements[i];b+=c.name+"="+encodeURIComponent(c.options[c.selectedIndex].value);isFormObject=!0}isFormObject&&i+1!=a.elements.length&&(b+="&")}return b} function ajaxPopUp(a,b,c,d,e,f,h){if(b==""||typeof b=="undefined")b="/uniScripts/mgrqispi.dll";d||fadePurple(f);var g=this;if(window.XMLHttpRequest)g.xmlHttpReq=new XMLHttpRequest;else if(window.ActiveXObject)g.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");g.xmlHttpReq.open(a,b,!0);g.xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");g.xmlHttpReq.onreadystatechange=function(){if(g.xmlHttpReq.readyState==4){h?showWidePopup(g.xmlHttpReq.responseText,d,e,f):showPopup(g.xmlHttpReq.responseText, d,e,f);try{datePickerController.create()}catch(a){}}};g.xmlHttpReq.send(c)}function hideLoader(){document.getElementById("loaderdiv")&&document.body.removeChild(document.getElementById("loaderdiv"))} function showMessage(a,b){var c=Math.floor(Math.random()*11),d=document.createElement("div"),c="message_"+c;d.setAttribute("id",c);d.style.visibility="hidden";document.body.appendChild(d);if(navigator.appName=="Microsoft Internet Explorer"){var e=document.getElementsByTagName("select");for(i=0;i<e.length;i++)e[i].style.visibility="hidden";e=document.getElementsByTagName("object")}else e=document.getElementsByTagName("embed");for(i=0;i<e.length;i++)e[i].style.visibility="hidden",e[i].style.width="0px"; messagetoshow=a.replace(/x1x/g,"'"+c+"'");d.innerHTML=messagetoshow;d.style.visibility="visible";fixPNG();e=d.getElementsByTagName("script");for(i=0;i<e.length;i++)eval(e[i].innerHTML);d.getElementsByTagName("input");b==!1&&setTimeout('hideMessage("'+c+'")',5E3)} function hideMessage(a){document.getElementById(a)&&document.body.removeChild(document.getElementById(a));if(navigator.appName=="Microsoft Internet Explorer"){a=document.getElementsByTagName("select");for(i=0;i<a.length;i++)a[i].style.visibility="visible";a=document.getElementsByTagName("object")}else a=document.getElementsByTagName("embed");for(i=0;i<a.length;i++)a[i].style.visibility="visible",a[i].style.width=""} function fixPNG(){var a=navigator.appVersion.split("MSIE"),a=parseFloat(a[1]);if(a>=5.5&&a<7&&document.body.filters)for(a=0;a<document.images.length;a++){var b=document.images[a],c=b.src.toUpperCase();if(c.substring(c.length-3,c.length)=="PNG"){var c=b.id?"id='"+b.id+"' ":"",d=b.className?"class='"+b.className+"' ":"",e=b.title?"title='"+b.title+"' ":"title='"+b.alt+"' ",f="display:inline-block;"+b.style.cssText;b.align=="left"&&(f="float:left;"+f);b.align=="right"&&(f="float:right;"+f);b.parentElement.href&& (f="cursor:hand;"+f);b.outerHTML="<span "+c+d+e+' style="width:'+b.width+"px; height:"+b.height+"px;"+f+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b.src+"', sizingMethod='scale');\"></span>";a-=1}}};
