var where = new Array(34); 
function comefrom(loca,locacity)
{ 
    this.loca = loca; 
    this.locacity = locacity; 
}
where[0]= new comefrom("请选择","请选择"); 
where[1] = new comefrom("北京","北京"); 
where[2] = new comefrom("上海","上海"); 
where[3] = new comefrom("天津","天津"); 
where[4] = new comefrom("重庆","渝中|大渡口|江北|沙坪坝|九龙坡|南岸|北碚|万盛|双挢|渝北|巴南|万州|涪陵|黔江|长寿|綦江|潼南|铜梁|大足|荣昌|壁山|梁平|城口|丰都|垫江|武隆|忠县|开县|云阳|奉节|巫山|巫溪|石柱|秀山|酉阳|彭水|江津|合川|永川|南川"); 
where[5] = new comefrom("河北","河北"); 
where[6] = new comefrom("山西","山西"); 
where[7] = new comefrom("内蒙古","内蒙古"); 
where[8] = new comefrom("辽宁","辽宁"); 
where[9] = new comefrom("吉林","吉林"); 
where[10] = new comefrom("黑龙江","黑龙江"); 
where[11] = new comefrom("江苏","江苏"); 
where[12] = new comefrom("浙江","浙江"); 
where[13] = new comefrom("安徽","安徽"); 
where[14] = new comefrom("福建","福建"); 
where[15] = new comefrom("江西","江西"); 
where[16] = new comefrom("山东","山东"); 
where[17] = new comefrom("河南","河南"); 
where[18] = new comefrom("湖北","湖北"); 
where[19] = new comefrom("湖南","湖南"); 
where[20] = new comefrom("广东","广东"); 
where[21] = new comefrom("广西","广西"); 
where[22] = new comefrom("海南","海南"); 
where[23] = new comefrom("四川","四川"); 
where[24] = new comefrom("贵州","贵州"); 
where[25] = new comefrom("云南","云南"); 
where[26] = new comefrom("西藏","西藏"); 
where[27] = new comefrom("陕西","陕西"); 
where[28] = new comefrom("甘肃","甘肃"); 
where[29] = new comefrom("宁夏","宁夏"); 
where[30] = new comefrom("青海","青海"); 
where[31] = new comefrom("新疆","新疆"); 
where[32] = new comefrom("香港","香港"); 
where[33] = new comefrom("澳门","澳门"); 
where[34] = new comefrom("台湾","台湾"); 
function select() 
{ 
with(document.creator.province) { 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.city) { 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.province) 
    { 
    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.city) 
    { 
    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]; 
    }
} 
document.writeln("");