var OLhttp=false,OLcommandAJAX=null,OLdelayidAJAX=0,OLclassAJAX='',OLresponseAJAX='',OLdebugAJAX=false;function OLsorryAJAX(){alert('Sorry, AJAX is not supported by your browser.');return false}function OLchkFuncAJAX(ar){var t=typeof ar;return(((t=='function'))||((t=='string')&&(/.+\(.*\)/.test(ar))))}function OLnotFuncAJAX(m){if(over)cClick();alert('The 2nd arg of OL'+m+'AJAX is not a function reference, nor an inline function, '+'nor a quoted string with a function indicated.');return OLclearAJAX()}function OLerrorAJAX(){alert('Network error '+OLhttp.status+'. Try again later.');return false}function OLnewXMLHttp(){var f=false,req=f;if(window.XMLHttpRequest)eval(new Array('try{','req=new XMLHttpRequest();','}catch(e){','req=f;','}').join('\n'));/*@cc_on@if(@_jscript_version>=5)if(!req)eval(new Array('try{','req=new ActiveXObject("Msxml2.XMLHTTP");','}catch(e){','try{','req=new ActiveXObject("Microsoft.XMLHTTP");','}catch(e){','req=f;','}}').join('\n'));@end@*/return req}function OLdoAJAX(){if(OLhttp.readyState==4){if(OLdebugAJAX)alert('OLhttp.status = '+OLhttp.status+'\n'+'OLhttp.statusText = '+OLhttp.statusText+'\n'+'OLhttp.getAllResponseHeaders() = \n'+OLhttp.getAllResponseHeaders()+'\n'+'OLhttp.getResponseHeader("Content-Type") = '+OLhttp.getResponseHeader("Content-Type")+'\n');if(!OLhttp.status||OLhttp.status==200){OLresponseAJAX=OLclassAJAX?'<div class="'+OLclassAJAX+'">':'';OLresponseAJAX+=OLhttp.responseText;OLresponseAJAX+=OLclassAJAX?'</div>':'';if(OLdebugAJAX)alert('OLresponseAJAX = \n'+OLresponseAJAX);OLclassAJAX=0;return(typeof OLcommandAJAX=='string')?eval(OLcommandAJAX):OLcommandAJAX()}else{OLclassAJAX=0;return OLerrorAJAX()}}}function OLsetAJAX(url,qry){qry=(qry||null);var s='',m=(qry)?'POST':'GET';OLdelayidAJAX=0;eval(new Array('try{','OLhttp.open(m,url,true);','}catch(e){','s=e','OLhttp=false;','}').join('\n'));if(!OLhttp){alert(s+'\n(Cross-domain access not permitted)');return false}if(qry)OLhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');OLhttp.onreadystatechange=OLdoAJAX;OLhttp.send(qry)}function OLclearAJAX(){if(OLdelayidAJAX){clearTimeout(OLdelayidAJAX);OLdelayidAJAX=0}if(OLhttp&&!OLdebugAJAX){OLhttp.abort();OLhttp=false}return false}function OLgetAJAX(url,command,delay,css){if(!OLchkFuncAJAX(command))return OLnotFuncAJAX('get');OLclearAJAX();OLhttp=OLnewXMLHttp();if(!OLhttp)return OLsorryAJAX();OLcommandAJAX=command;delay=(delay||0);css=(css||0);OLclassAJAX=css;if(delay)OLdelayidAJAX=setTimeout("OLsetAJAX('"+url+"')",delay);else OLsetAJAX(url)}function OLpostAJAX(url,qry,command,delay,css){if(!OLchkFuncAJAX(command))return OLnotFuncAJAX('post');OLclearAJAX();OLhttp=OLnewXMLHttp();if(!OLhttp)return OLsorryAJAX();qry=(qry||0);OLcommandAJAX=command;delay=(delay||0);css=(css||0);OLclassAJAX=css;if(delay)OLdelayidAJAX=setTimeout("OLsetAJAX('"+url+"','"+qry+"')",delay);else OLsetAJAX(url,qry)}