var OLhttp=false,OLcommandAJAX=null,OLdelayidAJAX=0,OLclassAJAX='', OLresponseAJAX='',OLdebugAJAX=false; bGblAJAX_Message=true; function OLcmdExT1() { return overlib(OLresponseAJAX, TEXTPADDING,0, CAPTIONPADDING,4, CAPTION,'Example with AJAX content via <span ' +'class="yellow">responseText</span>.&nbsp; Popup scrolls with the window.', WRAP, BORDER,2, STICKY, CLOSECLICK, SCROLL, MIDX,0, RELY,100, STATUS,'Example with AJAX content via responseText of XMLHttpResponse');}
function OLsorryAJAX() { if (bGblAJAX_Message) alert('Sorry, AJAX is not supported by your browser. To fully experience this website, please use IE 7, Firefox, Opera, or Safari.'); bGblAJAX_Message = false; 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() { 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')); 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);}

