// JScript 文件

function Dsy1() 
{ 
this.Items = {}; 
} 
Dsy1.prototype.add = function(id,iArray) 
{ 
this.Items[id] = iArray; 
} 
Dsy1.prototype.Exists = function(id) 
{ 
if(typeof(this.Items[id]) == "undefined") return false; 
return true; 
} 

function change1(v){ 
var str="0"; 
for(i=0;i<v;i++){ str+=("_"+(document.getElementById(s1[i]).selectedIndex-1));}; 
var ss1=document.getElementById(s1[v]); 
with(ss1){ 
length = 0; 
options[0]=new Option(opt1[v],opt1[v]); 
if(v && document.getElementById(s1[v-1]).selectedIndex>0 || !v) 
{ 
if(dsy1.Exists(str)){ 
ar1 = dsy1.Items[str]; 
for(i=0;i<ar1.length;i++)options[length]=new Option(ar1[i],ar1[i]); 
if(v)options[1].selected = true; 
} 
} 
if(++v<s1.length){change1(v);} 
} 
} 

var dsy1 = new Dsy1(); 
dsy1.add("0",["美食餐馆","休闲娱乐","生活购物","综合服务"]); 
dsy1.add("0_0",["中餐","西餐、咖啡、简餐","料理","蛋糕坊"]); 
dsy1.add("0_1",["酒吧KTV","美容、美发","桌球、健身","保健足疗、桑拿","户外、高尔夫"]); 
dsy1.add("0_2",[""]); 
dsy1.add("0_3",["鲜花","婚纱摄影","酒店","其它"]); 

var s1;
var opt1 = ["类型","具体类型"]; 
function setup1(id3,id4) 
{ 
s1=[id3,id4]; 

for(i=0;i<s1.length-1;i++) 
document.getElementById(s1[i]).onchange=new Function("change1("+(i+1)+")"); 
change1(0); 
} 
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p})
