<script language="javascript"> 
/*function changeSearch(formDom){
	location.href=formDom.value;
}*/
function quickSearch2(domValue,domType){
	var inputDom = document.getElementById(domType);
	if(inputDom){
		inputDom.value=domValue;
	}
 
	var cityareaValue = document.getElementById('cityarea').value;
	var company_id = document.getElementById('company_id').value;
	var boroughValue = document.getElementById('borough').value;
	if(domType == 'cityarea') boroughValue = '';
	
	var qValue = document.getElementById('S_q').value;
	if(qValue == "可输入经纪人名、门店名，或公司名称关键词"){
		qValue ="";
	}
	
	//var identityValue = document.getElementById('identity').value;
	var list_numValue = document.getElementById('list_num').value;
	var list_orderValue = document.getElementById('list_order').value;
	var pagenoValue = document.getElementById('pageno').value;
//	location.href='index.php?cityarea='+cityareaValue+'&identity='+identityValue+'&list_num='+list_numValue+'&list_order='+list_orderValue;
	location.href='index.php?q='+qValue+'&cityarea='+cityareaValue+'&company_id='+company_id+'&borough='+boroughValue+'&list_num='+list_numValue+'&list_order='+list_orderValue;
	return false;
}
</script>
<div class="filter">
<input type="hidden" id="cityarea" name="cityarea" value="<!--{$smarty.get.cityarea}-->">
<input type="hidden" id="avgprice" name="avgprice" value="<!--{$smarty.get.avgprice}-->">
<input type="hidden" id="borough" name="borough" value="<!--{$smarty.get.borough}-->">
<input type="hidden" id="company_id" name="company_id" value="<!--{$smarty.get.company_id}-->">
<input type="hidden" id="type" name="type" value="<!--{$smarty.get.type}-->">
<input type="hidden" id="list_num" name="list_num" value="10">
<input type="hidden" id="list_order" name="list_order" value="">
<input type="hidden" id="pageno" name="pageno" value="<!--{$smarty.get.pageno}-->">
<input type="hidden" id="S_q" name="S_q" value="<!--{$smarty.get.q}-->">
 
<!--{if $cityarea_option!=''}-->
<div>
<ul>
	<li class="filterTarget">区域：</li>
	<li<!--{if $smarty.get.cityarea==''}--> class="linkOn"<!--{/if}-->><a href="index.php?identity=<!--{$smarty.get.identity}-->&company_id=<!--{$smarty.get.company_id}-->&list_num=<!--{$smarty.get.list_num}-->&list_order=<!--{$smarty.get.list_order}-->">不限</a></li>
    <!--{foreach from=$cityarea_option item=item key=key }-->
    <li class="<!--{if $key==$smarty.get.cityarea}-->linkOn<!--{/if}-->"><a href="index.php?cityarea=<!--{$key}-->&company_id=<!--{$smarty.get.company_id}-->&identity=<!--{$smarty.get.identity}-->&list_num=<!--{$smarty.get.list_num}-->&list_order=<!--{$smarty.get.list_order}-->"><!--{$item}--></a></li>
     <!--{/foreach}-->
</ul>
</div>
  <!--{if $smarty.get.cityarea!=''}-->
        <div style="height:auto;">
        	<div style="height:auto;">
        		<ul id="filterTargetSub" style="_margin-left:38px">
        	 		<li <!--{if $smarty.get.cityarea2==''}-->class="linkOn" <!--{/if}-->><a href="index.php?letter=<!--{$smarty.get.letter}-->&cityarea=<!--{$smarty.get.cityarea}-->&cityarea2=&identity=<!--{$smarty.get.identity}-->&list_num=<!--{$smarty.get.list_num}-->&list_order=<!--{$smarty.get.list_order}-->">不限</a></li>   
        			<!--{foreach from=$borough_section item=item key=key }-->
            		<li <!--{if $item.di_value==$smarty.get.cityarea2}--> class="linkOn"<!--{/if}-->><a href="index.php?letter=<!--{$smarty.get.letter}-->&cityarea=<!--{$smarty.get.cityarea}-->&cityarea2=<!--{$item.di_value}-->&identity=<!--{$smarty.get.identity}-->&list_num=<!--{$smarty.get.list_num}-->&list_order=<!--{$smarty.get.list_order}-->" ><!--{$item.di_caption}--></a></li>        
            		<!--{/foreach}-->
                 
              </ul>      
           </div> 
           <div style=" clear:both;"></div> 
        </div>
        <!--{/if}-->
        <!--{if $smarty.get.company_id}-->
<ul>
	<li class="filterTarget">公司：</li>
	<li class="linkOn"><!--{$companyName}--></li>

</ul>
  <!--{/if}-->
<p align="right">&nbsp;</p>
<span class="xj_c xj_c01"></span>
<span class="xj_c xj_c06"></span>
<span class="xj_c xj_c03"></span>
<span class="xj_c xj_c04"></span> 
<!--{/if}-->
</div>