function search_product(type) { document.all.search_sale_price_start.value=''; document.all.search_sale_price_end.value=''; document.all.search_deposit_price_start.value=''; document.all.search_deposit_price_end.value=''; document.all.search_security_price_start.value=''; document.all.search_security_price_end.value=''; document.all.search_month_price_start.value=''; document.all.search_month_price_end.value=''; document.all.search_security_price_rent_start.value=''; document.all.search_security_price_rent_end.value=''; document.all.search_rent_price_start.value=''; document.all.search_rent_price_end.value=''; if(document.all.search_parcelout_price_start) { document.all.search_parcelout_price_start.value=''; } if(document.all.search_parcelout_price_end) { document.all.search_parcelout_price_end.value=''; } document.all.price_01.style.display='none'; document.all.price_02.style.display='none'; document.all.price_03.style.display='none'; document.all.price_04.style.display='none'; if(document.all.price_05) { document.all.price_05.style.display='none'; } if (type == 'selling') document.all.price_01.style.display=''; else if (type == 'lease') document.all.price_02.style.display=''; else if (type == 'month') document.all.price_03.style.display=''; else if (type == 'rent') document.all.price_04.style.display=''; else if (type == 'parcelout') document.all.price_05.style.display=''; } function searchAddress(value) { Ajax.init('/chtml/zipcode.php?mode=searchAddress&sido='+value, '', 'GET', callBackSearchAddress); } function callBackSearchAddress() { var result = Ajax.rltText(); result = result.split('|'); var cnt = result.length; var search_address_02 = Common.getObj('search_address_02', 'name'); search_address_02[0].options.length = 1; for(var x=0; x