// JavaScript Document function displayneighb(select_neighb){ for (h = 0; h < select_neighb.length; h++){ for (j = 0; j < document.myform.neighb.options.length; j++){ if (document.myform.neighb.options[j].value == select_neighb[h]){ document.myform.neighb.options[j].selected = true; } } } } function displayrent(min,max){ document.myform.minrent.value = min; document.myform.maxrent.value = max; } function displayroom(bed, bath){ for(h = 0; h < bed.length; h++){ for (i = 0; i < document.myform.broom.length; i++){ if (document.myform.broom[i].value == bed[h]){ document.myform.broom[i].checked = true; } } } for(h = 0; h < bath.length; h++){ for (i = 0; i < document.myform.bathroom.length; i++){ if (document.myform.bathroom[i].value == bath[h]){ document.myform.bathroom[i].checked = true; } } } }