﻿// JScript 文件


//author:
 
  function byId(domid)
{
    return document.getElementById(domid);
}
function htmlshow(dom)
{
    byId(dom).style.display = "";
}
function htmlhide(dom)
{
    byId(dom).style.display = "none";
} 
function changeText(dom,txt,id,hdom)
{
    var obj = byId(dom).getElementsByTagName('span');
    obj[0].innerHTML = txt;
    obj[0].title = id;
    htmlhide(hdom);
}
function changViewDescN2(bdid,bddesc,bid2,bd2,rvs,rvsn,rve,rven){
		changeText(bdid,bddesc,bid2,bd2); 
	}
	function changViewDescN3(bdid,bddesc,bid2,bd2,rvs,rvsn,rve,rven){ 
		changeText(bdid,bddesc,bid2,bd2); 
		LoadQvYU(bid2);
	}
	function selectHouseKindMethod(divcss,des,n,csscont,name,id){
		changeText(divcss,des,n,csscont); 
	}	
	function changeAjaxSecondDesc(csarea,zname,id,varea,bvalue){
	changeText(csarea,zname,id,varea);
	//bgId(bvalue).value=id;
			//alert('zid='+document.getElementById('zoneid').value+'/aid='+document.getElementById('areaid').value);
}
	function LoadQvYU(areaid)
	{ 
     $.get("AjaxProgram/ajax.aspx",{AjaxID:100001,AreaID:areaid},function(data){
     if(data.length>0){byId('viewblock').innerHTML=data;}
 	     });
	}

	
	
