var where = new Array(4); 
where[0]= new comefrom("类别","价格");
where[1] = new comefrom("中外合作MBA","价格|0-10万|10-20万|全部"); 
where[2] = new comefrom("EMBA","价格|10-20万|20万以上|全部");
where[3] = new comefrom("DBA/PHD","价格|10-20万|20万以上|全部");  
where[4] = new comefrom("远程教育","价格|0-1万|1万以上|全部"); 

function comefrom(loca,locacity) { 
	this.loca = loca; this.locacity = locacity; 
} 

function select() {
	with(document.creator.select2) { 
		var loca2 = options[selectedIndex].value; 
	}
		for(i = 0;i < where.length;i ++) {
			if (where[i].loca == loca2) {
				loca3 = (where[i].locacity).split("|");
				for(j = 0;j < loca3.length;j++) { 
					with(document.creator.select3) { 
						length = loca3.length; 
						options[j].text = loca3[j]; 
						options[j].value = loca3[j]; 
						var loca4=options[selectedIndex].value;
					}
			}
			break;
		}
	}
	//document.creator.newlocation.value=loca2+loca4;
}

function init() {
	with(document.creator.select2) {
		length = where.length;
		for(k=0;k<where.length;k++) { 
			options[k].text = where[k].loca; 
			options[k].value = where[k].loca; 
		}
		options[selectedIndex].text = where[0].loca; 
		options[selectedIndex].value = where[0].loca;
	}
	with(document.creator.select3) {
		loca3 = (where[0].locacity).split("|");
		length = loca3.length;
		for(l=0;l<length;l++) { 
			options[l].text = loca3[l]; 
			options[l].value = loca3[l]; 
		}
		options[selectedIndex].text = loca3[0]; 
		options[selectedIndex].value = loca3[0];
	}
}
