//填充select标签
//selector:selector css选择器
//valueDescArr:对象数组,对象包含value desc
//valuekey: 对象的value键值
//desckey: 对象的desc键值
//topOptionHtml(可选): string 第1个option的html
fillSelectOption = function(selector,valueDescArr,valueKey,descKey,topOptionHtml){
var optionsStr='';
if(typeof topOptionHtml != 'undefined'){
optionsStr = topOptionHtml;
}
for(var i = 0,length=valueDescArr.length; i < length; i++){
optionsStr += '<option value="' + valueDescArr[i][valueKey] + '">' + valueDescArr[i][descKey] + '</option>';
}
$(selector).html(optionsStr);
};