var http=HTTPObject();var suggest;var f=false;var results;var suggestions;var matchstring="";var pendval=null;var newval=null;var cur=-1;var topsuggestion="";var ttdto=true;var fakeblur=false;var inputfocus=false;function HTTPObject(){var B;if(window.ActiveXObject){if(D){B=new ActiveXObject(D)}else{var A=["MSXML2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.7.0","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0"];for(i in A){try{B=new ActiveXObject(A[i]);if(B){var D=A[i];break}}catch(C){}}}}if(!B&&typeof XMLHttpRequest!="undefined"){try{B=new XMLHttpRequest()}catch(C){B=false}}return B}function AJAX(A){if(!f&&http){f=true;http.open("GET",A,true);http.onreadystatechange=responseXHR;results="";http.send(null);return true}return false}function paintSuggestions(){fakeblur=true;var A=0;if(suggest){suggest.innerHTML="";cur=-1;topsuggestion="";if(newval!=""){for(var B in suggestions){if(suggestions[B].toLowerCase().indexOf(newval.toLowerCase())==0){if(topsuggestion==""){topsuggestion=suggestions[B]}if(A++<10){suggest.innerHTML+='<div class=suggestions><a href="/lwu.exe/lwu/d?w='+suggestions[B]+'"><div style="width:176px;">'+suggestions[B]+"</div></a></div>"}}}}}fakeblur=false;return A}function responseXHR(){try{if(http.readyState==4){if(http.status==200){results=http.responseText;results=results.replace(/\r/g,"");results=results.replace(/\n/g,"");results=results.replace(/ /g,"");suggestions=[];suggestions=results.split("<br>");matchstring=pendval;paintSuggestions();f=false;if(pendval!=newval){setTimeout("tryAJAX()",100)}}}}catch(A){f=false}}function tryAJAX(){if(matchstring&&(newval.toLowerCase().indexOf(matchstring.toLowerCase())==0)&&suggestions&&(suggestions.length<15)){return }if(newval.length==0){return }var A=AJAX("/lwu.exe/suggest/suggest?s="+newval);if(A){pendval=newval}}function AutoSuggestControl(A){this.textbox=A;this.init()}AutoSuggestControl.prototype.autosuggest=function(A){if(paintSuggestions()<10){if(pendval!=newval){tryAJAX()}}if(topsuggestion.length>0){if(A){this.typeAhead(topsuggestion)}}};AutoSuggestControl.prototype.handleKeyDown=function(A){if(!ttdto){switch(A.keyCode){case 38:this.previousSuggestion();break;case 40:this.nextSuggestion();break;case 13:this.textbox.value=(document.all)?suggest.childNodes[cur].innerText:suggest.childNodes[cur].textContent;break}}};AutoSuggestControl.prototype.handleKeyUp=function(A){newval=document.f.w.value;if(!ttdto){var B=A.keyCode;if(B==13){}if(B==8||B==46){this.autosuggest(false)}else{if(B<32||(B>=33&&B<46)||(B>=112&&B<=123)){}else{this.autosuggest(true)}}}};AutoSuggestControl.prototype.highlightSuggestion=function(A){for(var B in suggest.childNodes){var C=suggest.childNodes[B];if(C==A){C.className="current"}else{if((C.className)&&(C.className=="current")){C.className="suggestions"}}}};AutoSuggestControl.prototype.init=function(){var A=this;this.textbox.onkeyup=function(B){if(!B){B=window.event}A.handleKeyUp(B)};this.textbox.onkeydown=function(B){if(!B){B=window.event}A.handleKeyDown(B)}};AutoSuggestControl.prototype.nextSuggestion=function(){var B=suggest.childNodes;if(B.length>0&&cur<B.length-1){var A=B[++cur];this.highlightSuggestion(A);if(cur==0){this.typeAhead(newval)}}};AutoSuggestControl.prototype.previousSuggestion=function(){var B=suggest.childNodes;if(B.length>0&&cur>0){var A=B[--cur];this.highlightSuggestion(A)}};AutoSuggestControl.prototype.typeAhead=function(C){fakeblur=true;if(this.textbox.createTextRange||this.textbox.setSelectionRange){var A=this.textbox.value.length;var B=C.length;this.textbox.blur();this.textbox.value=C;if(this.textbox.createTextRange){var D=this.textbox.createTextRange();D.moveStart("character",A);D.select();D.moveEnd("character",B-this.textbox.value.length);D.select()}else{if(this.textbox.setSelectionRange){this.textbox.setSelectionRange(A,B)}}this.textbox.focus()}fakeblur=false};function addLoadEvent(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){if(B){B()}A()}}}addLoadEvent(function(){var A=new AutoSuggestControl(document.getElementById("w"));suggest=document.getElementById("suggest");document.getElementById("w").focus()});function off(){fakeblur=true;if(newval!=null){document.f.w.value=newval}ttdto=(!ttdto);if(ttdto){suggest.innerHTML=""}else{newval=document.f.w.value;if(paintSuggestions()<10){if(pendval!=newval){tryAJAX()}}}document.getElementById("onOff").innerHTML=ttdto?"On":"Off";document.getElementById("led").src=ttdto?"off.png":"on.png";document.f.w.focus();fakeblur=false;return false}suggestions=["air","ask","account","action","area","activity","add","association","application","also","all","appear","again","always","almost","American","answer","allow","act","a_few","amount","away","apply","at_least","attempt","arm","accept","approach","already","age","assume","achieve","agree","alone","announce","available","attend","attack","ago","able","Be","business","big","bank","body","bill","board","baby","become","begin","buy","back","bring","believe","boy","box","better","build","best","break","base","blue","battle","bear","black","blood","before","basic","basis","book","bad","bed","benefit","building","blow","be_born","beat","block","brush","ball","call","case","close","company","court","come","child","condition","construction","cost","country","city","change","consider","continue","cause","certain","carry","cover","contain","create","complete","cut","church","concern","control","cell","clear","center","choose","claim","century","care","course","catch","charge","conduct","community","compare","check","day","death","development","DO","date","duty","demand","develop","determine","die","drive","door","down","decide","different","describe","dark","draw","drop","design","direct","difference","deal","discover","dead","discuss","distance","direction","doctor","data","deny","declare","desire","destroy","dream","degree","drink","deep","difficult","dust","expect","economic","eat","even","effect","eye","end","experience","enough","early","enter","ever","establish","explain","express","exist","effort","evidence","experiment","earth","enjoy","enemy","else","easy","expression","extend","election","event","encourage","especially","estimate","example","exercise","education","eliminate","employ","employee","English","effective","emerge","front","find","fight","factor","fact","feel","first","face","form","follow","figure","force","foot","Friend","field","far","fire","finish","four","fall","family","fear","feed","fail","five","feeling","fill","further","fellow","forget","full","function","file","few","finally","Father","feature","forward","free","future","group","game","give","get","go","government","goal","good","great","grow","girl","general","god","ground","go_on","go_to","gun","gain","guess","glance","growth","gray","generally","grant","greater","get_out","go_back","gather","go_into","grass","glass","gas","give_up","go_out","green","go_up","guide","guard","guy","gaze","hold","have","hit","house","help","home","hear","head","here","hand","high","however","happen","hope","hair","hour","history","horse","hard","half","human","heart","hang","handle","husband","hot","hate","heavy","honor","hundred","hurry","happy","hall","heat","highly","hurt","hardly","hotel","hide","high_school","issue","interest","idea","information","include","industry","increase","indicate","important","individual","involve","improve","imagine","influence","introduce","indeed","item","insist","instead","inch","importance","identify","in_fact","image","immediately","in_addition","inform","impossible","income","inside","intend","illustrate","intensity","ignore","independent","in","instant","interpret","imply","invite","just","job","join","Jew","Jewish","judgment","judge","jump","justify","June","jerk","joy","jury","justice","journey","jacket","jazz","joke","July","January","Japanese","jaw","junior","joint","japan","jam","Jesus","Jupiter","Jesus_Christ","just_about","jab","jaded","Jap","jealous","jeep","jurisdiction","justification","jail","jar","jeopardize","know","keep","kind","kill","kid","knee","knowledge","kitchen","known","kick","key","kiss","king","knock","keep_up","keep_on","knife","Kansas_City","killing","kidney","kneel","known_as","keep_an_eye_on","killer","kind_of","kitten","knock_out","knot","ketosis","knock_down","k","keynote","kelvin_scale","kidnapper","kinesthetic","kinetic_energy","kingdom","knapsack","knit","knock_off","last","location","loss","language","look","leave","little","long","life","live","let","lead","lie","line","like","light","lose","learn","later","large","love","less","level","local","list","low","land","listen","law","leg","laugh","left","lack","letter","limit","literature","likely","late","look_like","lip","man","make","move","more","machine","member","market","money","most","many","much","mean","meet","mind","moment","material","month","measure","maintain","mother","method","morning","matter","minute","Mass","major","mention","meaning","march","mark","manner","merely","modern","more_than","mouth","movement","miss","music","means","maybe","not","new","now","number","name","news","need","never","no","Night","note","nothing","nature","national","necessary","normal","near","notice","not_only","New_York","North","nod","nearly","nation","no_longer","newspaper","natural","noise","neighborhood","next","non","neck","nose","naturally","Negro","notion","Nice","network","nevertheless","old","other","organization","one","opinion","only","own","open","often","offer","once","obtain","occur","of_course","officer","out","order","office","observe","operate","object","opportunity","outside","operation","over","on","objective","obviously","old_man","onset","oppose","occupy","oxygen","official","operator","ordinary","observation","original","obvious","off","person","part","power","put","program","period","product","people","party","price","plan","pay","plant","process","problem","policy","production","place","play","provide","present","point","pass","possible","produce","position","perhaps","prove","probably","public","purpose","pressure","picture","prevent","permit","past","push","prepare","patient","pull","question","quite","quality","quickly","quick","quiet","quote","quantity","queen","qualify","quack","quietly","quit","quarrel","quarter","qualification","queer","quiver","quaint","questioning","quirt","quackery","quarterback","quarters","quake","qualitative","quantitative","quivering","qualified","quantum","quasi","query","questionnaire","quantitatively","quart","quarter-century","quavering","quell","quicken","quietness","report","reaction","rate","run","reach","receive","result","remain","right","return","remember","require","read","regiment","raise","reduce","room","rise","record","rather","range","represent","reason","recognize","rest","really","remove","road","realize","ride","real","red","reflect","religious","reply","rifle","rule","remark","regard","region","say","stock","shot","small","service","see","state","system","stage","security","style","sell","subject","school","still","strike","share","seem","sale","so","show","such","season","stand","start","study","same","serve","some","sit","side","set","speak","stop","soldier","second","sound","send","surface","spend","turn","time","thing","trial","type","trade","take","think","tension","Tell","then","two","test","town","try","too","three","there","talk","thus","think_of","today","tree","throw","thought","true","together","total","temperature","third","Teach","therefore","trouble","treat","table","ten","top","touch","tall","theory","use","understand","United_States","usually","up","unit","urge","understanding","union","university","undertake","usual","unusual","unable","U.S.","uniform","unity","ultimate","undergo","useful","unknown","universal","upstairs","utilize","Utopia","Utopian","uphold","uneasy","unite","universe","upper","utter","upset","used_to","unadjusted","unfortunately","unique","unstructured","uncertain","unfortunate","very","voice","value","view","visit","various","vary","vote","volume","vocational","victory","variation","village","variety","vision","vast","veteran","vague","valley","visual","vacation","valuable","Virginia","virtually","values","velocity","violence","vanish","venture","visible","variable","vehicle","version","vacuum","vaguely","valued","vein","very_much","viewpoint","vigorous","way","work","want","walk","word","world","water","war","woman","week","win","write","watch","wait","well","wish","wall","whole","wife","wear","wonder","white","wave","window","wage","wide","worry","words","wrong","West","wild","woods","warm","wash","weight","writer","wind","witness","work_out","worker","X_ray","xylem","X-ray_diffraction","x","x-linked_scid","X-ray_film","X-ray_machine","x-ray_photography","x-scid","Xang","xanthous","Xavier","Xenia","xenolith","xenon","xenotransplant","xenotransplantation","xeroderma_pigmentosum","xerotes","Xiao","Xie","xinjiang","xinjiang_uighur_autonomous_region","Xiomara","Xiong","xizang","Xochitl","xtc","Xu","Xuan","xxy-syndrome","xylophone","X","x-axis","x-linked","x-linked_dominant_inheritance","x-linked_gene","x-linked_recessive_inheritance","x-or_circuit","X-radiation","year","youth","young","yard","yet","yellow","yell","yield","yesterday","years","young_man","yes","Yank","youthful","Yankee","Yokuts","younger","yr","yearning","yawn","yearn","yelp","young_girl","young_woman","youngster","yelling","yielding","you_bet","Yale","yardage","yearly","yellow-green","yokel","y-shaped","yacht","zero","zinc","zeal","zigzag","zodiacal_light","zoo","zoom","z","Zabala","Zabel","Zabriskie","Zacarias","Zaccaria","Zachariah","zacharias","Zachary","3","30","30_minutes","30th","3-hitter","3-membered","300th","3rd","3rd_october_organization","3tc","3-D","3.14159265358979323846...","4","40","4th","4-membered","400th","4-hitter","400","401-k","401-k_plan","40th"];