var IDLETIME = 500; var timerid; var otimerid; var a1; var a3; function changeBareboat(){ if(document.getElementById('bareboat').value == "N"){ //show individual select type showTR("individueel"); }else{ //hide individual select type hideTR("individueel"); } //SearchQuery(document.forms['searchengine'], null,'', ''); userAction(); } function userCalAction(){ userAction(); } function timeoutReached(){ setFacRight(); SearchQuery(document.forms['searchengine'], null,'', ''); } function otimeoutReached(){ ajax_showOptions(a1,'getArrByLetters',a3); userAction(); } function userOptionAction(ta1,ta3){ // ajax_showOptions(a1,'getArrByLetters',a2); if (otimerid!=null) { clearTimeout(otimerid); } a1 = ta1; a3 = ta3; otimerid = setTimeout("otimeoutReached()",IDLETIME); } function userAction(){ //LOAD CONTROL, IMPORTANT: only search if the user has stopped changing things for IDLETIME if (timerid!=null) { clearTimeout(timerid); } timerid = setTimeout("timeoutReached()",IDLETIME); } function setFacRight(){ arrfac = document.getElementById('faclist').value.split('|'); facstr = ""; for(t=0;t