var qF,lURL,dn,ifn,lastVal="",val="",xmlHttp,ch={},zh={},sr=false,gD,dF=false,DBC="#F9FBFD",DHC="#F0F6FB",qFLength=100,fN,sbi,curz=[];function aCh(a,b,c){ch[a]=[b,c]}mainLoop=function(){val=escape(qF.value);if(lastVal!=val&&sr==false){cAR();var a=ch[val];if(qF.value.length>2)if(a)shQd(val,a[0],a[1]);else dRq(val);else sD(false);lastVal=val}setTimeout("mainLoop()",100);return true};function cAR(){for(var b=document.getElementsByName("aa"),a=0,a=0;a<b.length;a++)b[a].checked=false}function resizeHandler(){gD.style.left=qF.offsetLeft+1+"px"}function gDv(b){if(!gD){if(!document.getElementById(b)){var d=document.createElement("div");d.setAttribute("id",b);document.body.appendChild(d)}gD=document.getElementById(b);var e=qF.offsetLeft,f=qF.offsetTop+qF.offsetHeight,c=qF.offsetWidth;if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))c=c-2;var a=qF;while(a.offsetParent){a=a.offsetParent;e+=a.offsetLeft;f+=a.offsetTop}if(!dF){gD.style.backgroundColor=DBC;gD.style.fontFamily="Arial,Tahoma,Arial,Verdana,sans-serif";gD.style.border="1px solid black";gD.style.fontSize="72%";gD.style.position="absolute";gD.style.left=e+1+"px";gD.style.top=f+"px";gD.style.visibility="hidden";gD.style.width=c+"px";gD.style.zIndex=1e4;dF=true}}return gD}function shQd(f,c,g){var d=gDv(dn);while(d.childNodes.length>0)d.removeChild(d.childNodes[0]);for(var e=0;e<c.length;e++){var a=document.createElement("div");a.style.cursor="pointer";a.style.padding="1px 3px 1px 3px";_uR(a);a.onmousedown=sRs;a.onmouseover=hR;a.onmouseout=unhR;var b=document.createElement("span");b.className="r1";b.style.textAlign="left";b.innerHTML=c[e];a.appendChild(b);d.appendChild(a)}!ch[f]&&aCh(f,c,g);sD(c.length>0)}function sRs(){_sRs(this)}function _sRs(d){var b=d.getElementsByTagName("span"),c=document.getElementById("flla"),e;if(b)for(var a=0;a<b.length;a++)if(b[a].className=="r1"){qF.value=b[a].innerHTML;qF.value=qF.value.replace(/<[/]?span[^><]*>/ig,"");if(c)c.innerHTML="";lastVal=val=escape(qF.value);sr=false;mainLoop();qF.focus();sD(false);sbi==1&&document.getElementById(fN).submit();return}}function hR(){_hR(this)}function _hR(a){a.style.backgroundColor=DHC}function unhR(){_uR(this)}function _uR(a){a.style.backgroundColor=DBC}function sD(b){var a=gDv(dn);if(b)a.style.visibility="visible";else a.style.visibility="hidden";adjF()}function hDv(){sD(false)}function adjF(){if(!document.getElementById(ifn)){var b=document.createElement("iFrame");b.setAttribute("id",ifn);b.setAttribute("src","javascript:false;");b.setAttribute("scrolling","no");b.setAttribute("frameborder","0");document.body.appendChild(b)}ifd=document.getElementById(ifn);var a=gDv(dn);try{ifd.style.position="absolute";ifd.style.width=a.offsetWidth;ifd.style.height=a.offsetHeight;ifd.style.top=a.style.top;ifd.style.left=a.style.left;ifd.style.zIndex=a.style.zIndex-1;ifd.style.visibility=a.style.visibility}catch(c){}}function getXMLHTTP(){var a=null;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){a=null}}if(!a&&typeof XMLHttpRequest!="undefined")a=new XMLHttpRequest;return a}function dRq(queryString){sr=true;if(document.getElementById("dswt")){document.getElementById("dswt").style.display="block";setTimeout('document.images["iswt"].src = "/images/prog-ind-s2.gif"',50)}xmlHttp&&xmlHttp.readyState!=0&&xmlHttp.abort();xmlHttp=getXMLHTTP();if(xmlHttp){xmlHttp.open("GET",lURL+queryString,true);xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4&&xmlHttp.responseText&&sr){eval(xmlHttp.responseText);sr=false}};xmlHttp.send(null)}}function kH(e){var c=true,d=gDv(dn);if(d.style.visibility=="hidden")return c;if(!e&&window.event)e=window.event;var a=e.kCode,j=38,h=40,i=13,g=9;if(a!=j&&a!=h&&a!=i&&a!=g)return c;var f=gSS(d),b=sSS(d,f);if(a==i||a==g){b&&_sRs(b);e.cancelBubble=c;return false}else{if(a==j)b=sSS(d,f-1);if(a==h)b=sSS(d,f+1);b&&_hR(b)}sD(c);return c}function gSS(d){var c=-1,b=d.getElementsByTagName("div");if(b)for(var a=0;a<b.length;a++){c++;if(b[a].style.backgroundColor!=d.style.backgroundColor)return c}return-1}function sSS(f,d){var e=-1,c,b=f.getElementsByTagName("div");if(b)for(var a=0;a<b.length;a++)if(++e==d){_hR(b[a]);c=b[a]}else _uR(b[a]);return c}addLoadEvent(function(){qF=document.getElementsByName("formLocation").item(0);qF.onblur=hDv;qF.onkeydown=kH;qF.autocomplete="off";lURL="/cgi-bin/lcs.cgi?q=";ifn="queryiframe";dn="querydiv";fN="formgl";sbi=0;lastVal=escape(qF.value);aCh("",[],[]);setTimeout("mainLoop()",100)});
