﻿// JScript 文件

var CityInfo = function(){
    this.ParentID;
    this.ParentName;
    this.Sun_DDL;
    this.Type;//1省份;2城市;3区县
    this.ItemText;
    this.ItemValue;
    this.Handler
}
CityInfo.prototype = {
    City_Init:function(){
        var cityInfo = this;
        var repurl = cityInfo.Handler+"?op=GetCityInfo&Type=" + cityInfo.Type + "&ParentID=" + cityInfo.ParentID ;  // + "&dt="+new Date()      
        Request.sendGET(repurl,cityInfo.AddItem, cityInfo.Failture,this)
    },
    AddItem:function(response,obj){
        var cityInfo = obj;
        var ddl = cityInfo.Sun_DDL;
        ddl.options.length = 0;
        if(cityInfo.ItemText != ""){
            var item0 = document.createElement("option");
            item0.value = cityInfo.ItemValue;
            item0.innerHTML = cityInfo.ItemText;
            ddl.appendChild(item0);
        }
        if(response.responseText != ""){
            var city = eval(response.responseText);
            for (var i = 0; i < city.length; i++) {
                // 设置 option
                var option = document.createElement("option");
                option.value = city[i].Code;
                option.innerHTML = city[i].Name;
                ddl.appendChild(option);
            }
        }
    },
    Failture:function(){
    
    }
}


function KKMOn1(obj)
{
    obj.style.borderColor = "#e880a5";
}
function KKMOn2(obj)
{
    obj.style.borderColor = "#CCCCCC";
}


var Card = function(){





}




















