/**
	关于档案的js
*/
function checkIllegalValue() {
	var resultText = "";
	var isError=true;			
	if(document.getElementById("year").value=="" || document.getElementById("month").value=="" || document.getElementById("day").value=="") {
		resultText += '请选择出生日期' + ",";
		isError=false;
	}
	if(document.getElementById("locationCountry").value=="") {
		resultText += '请选择所在地' + ",";
		isError=false;
	} else {
		var locationProvinceArray = document.getElementsByName("locationProvince");
		var locationProvinceLen = locationProvinceArray.length;
		for(var i=0; i<locationProvinceLen; i++) {
			if(jQuery("#locationCountry").val()=="中国"&&locationProvinceArray[i].disabled==false) {
				if(locationProvinceArray[i].value=="-1"||locationProvinceArray[i].value=="0") {
					resultText += '请选择所在地' + ",";
					isError=false;
					break;
				}							
			}
		}
	}
	if(document.getElementById("bornCountry").value != "") {
		var bornProvinceArray = document.getElementsByName("bornProvince");
		var bornProvinceLen = bornProvinceArray.length;
		for(var i=0; i<bornProvinceLen; i++) {
			if(jQuery("#bornCountry").val()=="中国"&&bornProvinceArray[i].disabled==false) {
				if(bornProvinceArray[i].value=="-1"||bornProvinceArray[i].value=="0") {
					resultText += '请填写完整的家乡信息' + ",";
					isError=false;
					break;
				}
			}
		}
	}
	var shape1 = document.getElementById("shape1").value;
	var shape2 = document.getElementById("shape2").value;
	var shape3 = document.getElementById("shape3").value;
	if(!(shape1==0&&shape2==0&&shape3==0) && !(shape1!=0&&shape2!=0&&shape3!=0)) {
		resultText += '请填写完整的三围信息' + ",";
		isError=false;
	}
	if(resultText != "") {
		alert(resultText.substring(0,resultText.length-1));
	}
	return isError;
}
function setBloodGroupValue(bloodGroup) {
	var bloodGroupNode = document.getElementById("bloodGroup");
	var bloodGroupOptions = bloodGroupNode.options;
	for(var i=0; i<bloodGroupOptions.length; i++) {
		if(bloodGroupOptions[i].value == bloodGroup) {
			bloodGroupOptions[i].selected = "true";
			break;
		}
	}
}
function setUserGender(userGender) {
	var maleNode = document.getElementById("genderForMale");
	var femaleNode = document.getElementById("genderForFemail");
	if(userGender == '1') {
		maleNode.checked = "true";
	} else {
		femaleNode.checked = "true";
	}
}

function promptEditResult() {
	var isIE = document.all?true:false;
	var resultText = "";
	var editResultNode = document.getElementById("editResult");
	if(isIE) {
		resultText = editResultNode.innerText.trim();
	} else {
		resultText = editResultNode.textContent.trim();
	}
	if(resultText != "") {
		editResultNode.style.display = "block";
	}
}

function clearInputInfo(nodeId) {
	var inputNode = document.getElementById(nodeId);
	inputNode.value = "";
}
function resetInputInfo(nodeId) {
	var inputNode = document.getElementById(nodeId);
	inputNode.value = "0";
}
function clearHometownInfo(){
	document.getElementById("bornCountry").options[0].selected=true;
	//清空下拉框中省级的数据
    for(var k=document.getElementById("bornProvince").options.length-1;k>=0;k--) {
        document.getElementById("bornProvince").options[k]=null;
    }
    document.getElementById("bornProvince").options.add(new Option("请选择",-1),-1);
    
    //清空下拉框中县份的数据
    for(var k=document.getElementById("bornCity").options.length-1;k>=0;k--) {
        document.getElementById("bornCity").options[k]=null;
    }
    document.getElementById("bornCity").options.add(new Option("请选择",-1),-1);
}
function clearBloodGroupInfo() {
	clearInputInfo('bloodGroup');
}
function clearHeightInfo() {
	resetInputInfo('height');
}
function clearWeightInfo() {
	resetInputInfo('weight');
}
function clearShapeInfo() {
	resetInputInfo('shape1');
	resetInputInfo('shape2');
	resetInputInfo('shape3');
}
function clearHairColorInfo() {
	clearInputInfo('hairColor');
}
function clearCarInfo() {
	clearInputInfo('car');
}
function clearShoesSizeInfo() {
	clearInputInfo('shoesSize');
}
function gourl1() {
	if(checkIllegalValue()){
		document.getElementById("BasePorfile").action="/editUserProfile|editBase.action";     
		document.getElementById("BasePorfile").submit();
	}             
} 
var isIE = document.all?true:false;
function convertHeight(height) {
    var heightImgNode = document.getElementById("heightImg");
    var heightDisplayNode = document.getElementById("heightDisplay");
    var value=heightDisplayNode.value.split(" ");
    var heightunit = document.getElementById("heightunit").value;
    if(value[1] == "CM") {
        if(Math.round(parseFloat(value[0])/2.54)%12 == 0)
        heightDisplayNode.value = Math.floor(Math.round(parseFloat(value[0])/2.54)/12) + " FEET";
        else
        {
        if((Math.round(parseFloat(value[0])/2.54)%12) > 1 )
          heightDisplayNode.value = Math.floor(Math.round(parseFloat(value[0])/2.54)/12) + " FEET " + Math.round(parseFloat(value[0])/2.54)%12 + " INCHES"; 
        else
          heightDisplayNode.value = Math.floor(Math.round(parseFloat(value[0])/2.54)/12) + " FEET " + Math.round(parseFloat(value[0])/2.54)%12 + " INCH";
         }
        heightImgNode.value = "转换成CM";
    } else {
        if(heightunit == "CM"){
    		heightDisplayNode.value = height + " CM";
    	}else{
    		heightDisplayNode.value = Math.round(parseFloat(height*2.54)) + " CM";
    	}
        heightImgNode.value="转换成INCH";
    }
}
function convertWeight(weight) {
	var weightImgNode = document.getElementById("weightImg");
	var weightDisplayNode = document.getElementById("weightDisplay");
	var value= weightDisplayNode.value.split(" ");
	if(value[1] == "POUND") {
		weightDisplayNode.value = Math.round(value[0]*0.4536) + " KG";
		weightImgNode.value = "转换成POUND";
	} else {
		weightDisplayNode.value = Math.round(parseFloat(value[0])/0.4536) + " POUND";
		weightImgNode.value = "转换成KG";;
	}
}
function convertShape(shape1,shape2,shape3) {
	var shapeImgNode = document.getElementById("shapeImg");
	var shapeDisplayNode = document.getElementById("shapeDisplay");
	var value = shapeDisplayNode.value.split(" ")
	if(value[3] == "CM") {
		shape1Value = Math.round(parseFloat(value[0])/2.54);
		shape2Value = Math.round(parseFloat(value[1])/2.54);
		shape3Value = Math.round(parseFloat(value[2])/2.54);
		shapeDisplayNode.value = shape1Value + " " + shape2Value + " " + shape3Value + " INCH";
		shapeImgNode.value = "转换成CM";
	} else {
		shapeDisplayNode.value = Math.round(parseFloat(value[0]*2.54)) + " " + Math.round(parseFloat(value[1]*2.54)) + " " + Math.round(parseFloat(value[2]*2.54)) + " CM";
		shapeImgNode.value = "转换成INCH";
	}
}	
function gourl11() {   
	window.open("/supplyUserProfile.action?expTypeId=10&display=0&random=" +Math.random(), "_self");
}

//身高
function convertHeights(heightUnit,height){
	var convertHeightUnit = (heightUnit == "CM") ? "INCH" : "CM";
	document.getElementById("heightImg").value = "转换成"+convertHeightUnit;    
    if(heightUnit == "CM"){
    	document.getElementById("heightDisplay").value = height + " " + heightUnit;
    }else{
        if(height%12 == 0){
        	document.getElementById("heightDisplay").value = Math.floor(height/12) + " " + "FEET";
        }
        else{
            if((height%12) > 1)
              document.getElementById("heightDisplay").value = Math.floor(height/12) + " " + "FEET" + " " + height%12 + " " + "INCHES";
            else
              document.getElementById("heightDisplay").value = Math.floor(height/12) + " " + "FEET" + " " + height%12 + " " + "INCH";
        }
    }
}
//体重
function convertWeights(weightUnit){
	var convertWeightUnit = (weightUnit == "KG") ? "POUND" : "KG";
	document.getElementById("weightImg").value = "转换成" + convertWeightUnit;
}
//三围		
function convertShape1s(shapeUnit){
	var convertShapeUnit = (shapeUnit == "CM") ? "INCH" : "CM";
	document.getElementById("shapeImg").value = "转换成" + convertShapeUnit;
}	
function loadCareer() {
	var careerLen = self.parent.document.getElementById("careerModuleNum").value;
	var careerLi = "";
	for(var i=0;i<careerLen;i++){
		var careerModuleLis=self.parent.document.getElementById("careerMode_"+i).value;
		careerLi+='<li id="base_'+careerModuleLis.split('_')[0]+'"><a class="weight700" href="javascript:void(0)">'+careerModuleLis.split('_')[1]+'</a></li>';
	}
	jQuery("#photo_list").html(careerLi);
	jQuery("#photo_list").sortable();
	jQuery("#photo_list").disableSelection();
}
function saveSort(){
	var sortIds="";
	var objli=document.getElementById("photo_list");
	for(var i=0;i<objli.childNodes.length;i++){
		sortIds+=objli.childNodes[i].id.split("_")[1]+",";
	}
	jQuery.ajax({
		url:"/editUserExperence|submitSorting.action",
		type:"post",
		data:"strSeq="+sortIds,
		success:function(response){
			sorttingCallback(response);
		}
	});
}

function sorttingCallback(responseText) {
	var sortResultNode = document.getElementById("sorttingResult");
	if(responseText.indexOf("relogin") != -1) {
		self.parent.window.navigate('/login.jsp');
	} else if(responseText.indexOf('text.sortting.success') != -1) {
		self.location.reload();
		bkwin.load_close();
	}else if(responseText.indexOf("empty") != -1){
		bkwin.load_close();
	}else {
		sortResultNode.innerHTML = responseText;
	}
}
function gourlContact(){
    document.getElementById("Contacts").action="/editUserContact|edit.action" ;     
    document.getElementById("Contacts").submit();             
} 
function addCareer(userCount,expTypeSubject){
	var count = userCount;
	count = count==0?1:count;
	var spanCount=1;
	var experienceNode = document.getElementById("add_career");
	var frame1DivNode = document.createElement("div");
	frame1DivNode.id = expTypeSubject + count;
	frame1DivNode.className = "box larger closeOn";
	experienceNode.appendChild(frame1DivNode);
	//添加隐藏域
	var updatesNode = getHiddenBlock("updates", "0");
	frame1DivNode.appendChild(updatesNode);
	var userExpIdsNode = getHiddenBlock("userExpIds", "0");
	frame1DivNode.appendChild(userExpIdsNode);
	
	//添加删除图片
	var deleteDiv = document.createElement("h4");
	deleteDiv.className = "font14";
	frame1DivNode.appendChild(deleteDiv);
	var deleteNode = document.createElement("a");
	deleteNode.className="close r";
	deleteNode.onclick=createFunction(null, "removeDiv", experienceNode, deleteDiv.parentNode);
	deleteDiv.appendChild(deleteNode);

	//添加textArea
	var contentBlock = getContent(spanCount);
	frame1DivNode.appendChild(contentBlock);
	
	//添加增加高度按钮	
	var changeDiv=document.createElement("div");
	changeDiv.id="btnHeightAdd"+spanCount;
	changeDiv.onclick=createFunction(null, "changeTextAreaHeight", "contentsAdd"+spanCount, "hidtypeAdd"+spanCount,"btnHeightAdd"+spanCount);
	var addImg=document.createElement("input");
	addImg.className="buttonS_6 font12";
	addImg.type="button";
	addImg.value="＋增加高度";
	addImg.onfocus="this.blur()";
	changeDiv.appendChild(addImg);
	frame1DivNode.appendChild(changeDiv);
	
	//添加隐藏域
	var hidInput=document.createElement("input");
	hidInput.type="hidden";
	hidInput.id="hidtypeAdd"+spanCount;
	hidInput.value="add";
	frame1DivNode.appendChild(hidInput);

	count++;
	spanCount++;
}
function removeDiv(fromNode, deletedNode){
	if(!confirm('确定要删除吗？')){
		return false;
	}
	fromNode.removeChild(deletedNode);
	return false;
}
function confirmDelete(){
	if(confirm('确定要删除吗？')){
		return true;
	}
	return false;
}
function checkNullValue(){
	var resultText = "";
	var textareaNodeArray = document.getElementsByTagName("textarea");
	var textareaLen = textareaNodeArray.length;
	for(var i=0; i<textareaLen; i++) {
		var content = textareaNodeArray[i].value.trim();
		if(textareaNodeArray[i].name=="contents" && content=="") {
			resultText += '您必须填写内容';
			break;
		}
	}
	if(resultText != "") {
		alert(resultText);
		return false;
	}
	return true;
}

//增加或减少textArea的高度
function changeTextAreaHeight(objtextAreaID,type,objID){
	var objType=document.getElementById(type).value;
	if(objType=="add"){
		document.getElementById(objtextAreaID).className="borderOn larger";
		document.getElementById(type).value="reduce";
		document.getElementById(objID).innerHTML="<input class='buttonS_6 font12' type='button' value='-减少高度' onfocus='this.blur()' />";
	}else{
		document.getElementById(objtextAreaID).className="borderOn";
		document.getElementById(type).value="add";
		document.getElementById(objID).innerHTML="<input class='buttonS_6 font12' type='button' value='+增加高度' onfocus='this.blur()' />";
	}
}
function gourl9(expTypeId){
	if(checkNullValue()){
		document.getElementById("UserExpperence").action="/editUserExperence|edit.action?expTypeId="+expTypeId;     
		document.getElementById("UserExpperence").submit();
	}
}
function gourlInterest(){   
	document.getElementById("UserInterest").action="/editUserInterest|edit.action" ;     
	document.getElementById("UserInterest").submit();             
}
function goTemplateUrl(id){
	if(confirmDelete()){
		window.location ="/editUserExperence|deleteTypeExp.action?expTypeId="+id;
	}
}

function arrowDivLive(arrowDivId){
	var imgDivNode = document.getElementById(arrowDivId);
	if(imgDivNode) {
		imgDivNode.className = "closeOn alive";
	}
}
function cropModule(pageTitle, urlString,moduleIdList){
	bkwin.remove();
	bkwin.load(urlString,{
	    draggable : false,
	    resizable : false,
	    modal:true,
	    bgiframe: true,
	    width:600,
	    height:moduleIdList*50+250,
	    title:pageTitle
	},function(){loadCareer();});
}


function addCareerModule() {
	var careerValue = jQuery("#careerModule").val();
	if(careerValue == "") {
		alert("请选择档案模块！");
		return;
	}
	document.getElementById("btnAddCareer").disabled=true;
	window.location ="/editUserExperence|addCareerModule.action?expTypeId="+ careerValue;
}

function getHiddenBlock(nodeName, nodeValue) {
	var updatesNode = document.createElement("input");
	updatesNode.type = "hidden";
	updatesNode.name = nodeName;
	updatesNode.value = nodeValue;
	return updatesNode;
}

function getContent(spanCount) {
	var contentNode = document.createElement("textarea");
	contentNode.className="borderOn";
	contentNode.name = "contents";
	contentNode.id = "contentsAdd"+spanCount;
	return contentNode;
}

function createFunction(obj, strFunc){
	var args=[];
	if(!obj) obj=window;
	for(var i=2;i<arguments.length;i++) args.push(arguments[i]);
	return function(){
		obj[strFunc].apply(obj,args);
	}
}
function goPreView(objForm,url){
	document.getElementById(objForm).action=url;     
	document.getElementById(objForm).submit();
}


function heightV(userHeight, heightUnit) {
	var heightValue;
	heightValue = userHeight ? userHeight : 0;//"";
	var baseValue;
	var iterTimes;
	if(heightUnit == "INCH") {
		baseValue = 60;
		iterTimes = 40;
	} else {
		baseValue = 150;
		iterTimes = 105;
	}
	for(var i=0; i<=iterTimes; i++) {
		document.write("<option value=" + (baseValue + i));
		if((baseValue + i) == heightValue) {
			document.write(" selected");
		}
		document.write(">"+(baseValue + i)+"</option>");
	}
}

function changeHeightValue(heightUnit) {
	var heightValue;
	var heightNode = document.getElementById("height");
	if(heightUnit == "CM") {
		heightValue = Math.round(parseFloat(heightNode.value * 2.54));
		baseValue = 150;
		iterTimes = 106;
	} else {
		heightValue = Math.round(parseFloat(heightNode.value / 2.54));
		baseValue = 60;
		iterTimes = 41;
	}
	heightNode.innerHTML = "";
	heightNode.options[0] = new Option("请选择","0");
	for(var i=1; i<=iterTimes; i++) {
		heightNode.options[i] = new Option(baseValue-1+i, baseValue-1+i);
		if(baseValue-1+i == heightValue) {
			heightNode.options[i].selected = true;
		}
	}
}

function lengthU(nodeId, heightUnit) {
	var lengthUnit;
	lengthUnit = heightUnit ? heightUnit : "CM";
	var lengthUnitNode = document.getElementById(nodeId);
	var lengthUnitOptions = lengthUnitNode.options;
	for(var i=0; i<lengthUnitOptions.length; i++) {
		if(lengthUnitOptions[i].value == lengthUnit) {
			lengthUnitOptions[i].selected = "true";
		}
	}
}

function weightV(userWeight, weightUnit) {
	var weightValue;
	weightValue = userWeight ? userWeight : 0;//"";
	var baseValue;
	var iterTimes;
	if(weightUnit == "pand") {
		baseValue = 66;
		iterTimes = 177;
	} else {
		baseValue = 30;
		iterTimes = 80;
	}
	for(var i=0; i<=iterTimes; i++) {
		document.write("<option value=" + (baseValue + i));
		if((baseValue + i) == weightValue) {
			document.write(" selected");
		}
		document.write(">"+(baseValue + i)+"</option>");
	}
}

function changeWeightValue(weightUnit) {
	var weightValue;
	var weightNode = document.getElementById("weight");
	if(weightUnit == "KG") {
		weightValue = Math.round(parseFloat(weightNode.value * 0.4536));
		baseValue = 30;
		iterTimes = 81;
	} else {
		weightValue = Math.round(parseFloat(weightNode.value / 0.4536));
		baseValue = 66;
		iterTimes = 112;
	}
	weightNode.innerHTML = "";
	weightNode.options[0] = new Option("请选择","0");
	for(var i=1; i<=iterTimes; i++) {
		weightNode.options[i] = new Option(baseValue-1+i, baseValue-1+i);
		if(baseValue-1+i == weightValue) {
			weightNode.options[i].selected = true;
		}
	}
}

function weightU(userWeight) {
	var weightUnit;
	weightUnit = userWeight ? userWeight : "KG";
	var weightUnitNode = document.getElementById("weightUnit");
	var weightUnitOptions = weightUnitNode.options;
	for(var i=0; i<weightUnitOptions.length; i++) {
		if(weightUnitOptions[i].value == weightUnit) {
			weightUnitOptions[i].selected = "true";
		}
	}
}

function chestSize(userChest, shapeUnit) {
	var chestValue;
	chestValue = userChest ? userChest : 0;//"";
	var baseValue;
	var iterTimes;
	if(shapeUnit == "INCH") {
		baseValue = 28;
		iterTimes = 44;
	} else {
		baseValue = 70;
		iterTimes = 110;
	}
	for(var i=0; i<=iterTimes; i++) {
		document.write("<option value=" + (baseValue + i));
		if((baseValue + i) == chestValue) {
			document.write(" selected");
		}
		document.write(">"+(baseValue + i)+"</option>");
	}
}

function waistSize(userWaist, shapeUnit) {
	var waistValue;
	waistValue = userWaist ? userWaist : 0;//"";
	var baseValue;
	var iterTimes;
	if(shapeUnit == "INCH") {
		baseValue = 19;
		iterTimes = 31;
	} else {
		baseValue = 50;
		iterTimes = 77;
	}
	for(var i=0; i<=iterTimes; i++) {
		document.write("<option value=" + (baseValue + i));
		if((baseValue + i) == waistValue) {
			document.write(" selected");
		}
		document.write(">"+(baseValue + i)+"</option>");
	}
}

function hipsSize(userHips, shapeUnit) {
	var hipsValue;
	hipsValue = userHips ? userHips : 0;//"";
	var baseValue;
	var iterTimes;
	if(shapeUnit == "INCH") {
		baseValue = 31;
		iterTimes = 45;
	} else {
		baseValue = 80;
		iterTimes = 113;
	}
	for(var i=0; i<=iterTimes; i++) {
		document.write("<option value=" + (baseValue + i));
		if((baseValue + i) == hipsValue) {
			document.write(" selected");
		}
		document.write(">"+(baseValue + i)+"</option>");
	}
}

function changeShapeValue(shapeUnit) {
	var shape1Node = document.getElementById("shape1");
	var shape2Node = document.getElementById("shape2");
	var shape3Node = document.getElementById("shape3");
	if(shapeUnit == "CM") {
		shape1Value = Math.round(parseFloat(shape1Node.value * 2.54));
		shape2Value = Math.round(parseFloat(shape2Node.value * 2.54));
		shape3Value = Math.round(parseFloat(shape3Node.value * 2.54));
		shape1BaseValue = 70;
		shape1IterTimes = 110;
		shape2BaseValue = 50;
		shape2IterTimes = 77;
		shape3BaseValue = 80;
		shape3IterTimes = 113;
	} else {
		shape1Value = Math.round(parseFloat(shape1Node.value / 2.54));
		shape2Value = Math.round(parseFloat(shape2Node.value / 2.54));
		shape3Value = Math.round(parseFloat(shape3Node.value / 2.54));
		shape1BaseValue = 28;
		shape1IterTimes = 45;
		shape2BaseValue = 19;
		shape2IterTimes = 32;
		shape3BaseValue = 31;
		shape3IterTimes = 46;
	}
	shape1Node.innerHTML = "";
	shape1Node.options[0] = new Option("请选择","0");
	for(var i=1; i<=shape1IterTimes; i++) {
		shape1Node.options[i] = new Option(shape1BaseValue-1+i, shape1BaseValue-1+i);
		if(shape1BaseValue-1+i == shape1Value) {
			shape1Node.options[i].selected = true;
		}
	}
	shape2Node.innerHTML = "";
	shape2Node.options[0] = new Option("请选择","0");
	for(var i=1; i<=shape2IterTimes; i++) {
		shape2Node.options[i] = new Option(shape2BaseValue-1+i, shape2BaseValue-1+i);
		if(shape2BaseValue-1+i == shape2Value) {
			shape2Node.options[i].selected = true;
		}
	}
	shape3Node.innerHTML = "";
	shape3Node.options[0] = new Option("请选择","0");
	for(var i=1; i<=shape3IterTimes; i++) {
		shape3Node.options[i] = new Option(shape3BaseValue-1+i, shape3BaseValue-1+i);
		if(shape3BaseValue-1+i == shape3Value) {
			shape3Node.options[i].selected = true;
		}
	}
}

function shoeSize(userShoesize) {
	var shoesizeValue;
	shoesizeValue = userShoesize ? userShoesize : "";
	for(var i=0; i<=40; i++) {
		document.write("<option value=" + (10 + i));
		if((10 + i) == shoesizeValue) {
			document.write(" selected");
		}
		document.write(">"+(10 + i)+"</option>");
	}
}

//初始化dropdownList中省级数据
function setLocationProvince(curProvince,objProvince)
{	
	if(curProvince==""||curProvince==null||curProvince==0)
	{
		document.getElementById(objProvince).style.display="none";
		return;
	}
	for(var i = 0;i < Province_array.length;i++)
	    {
	    	document.write("<option value='"+Province_array[i].split(",")[0]+","+Province_array[i].split(",")[1]+"'");
			if(curProvince==Province_array[i].split(",")[0]) document.write(" selected");
			document.write(" >"+Province_array[i].split(",")[0]+"</option>");
	    }
}

//初始化dropdownList中市级数据
function setLocationCity(curProvince,curCity,objCity)
{
	if(curProvince==""||curProvince==null||curProvince=="北京"||curProvince=="上海"||curProvince=="重庆"||curProvince=="天津"||curProvince=="香港"||curProvince=="澳门"||curProvince=="台湾"){
		document.getElementById(objCity).style.display="none";
		return;
	}
	var curCityValue;
	for(var i = 0;i < Province_array.length;i++)
	{
		if(curProvince==Province_array[i].split(",")[0])
		{
	    	curCityValue=Province_array[i].split(",")[1];
	    	break;
	    }
	}
	
	for(var k=0;k<City_array.length;k++)
	{
		if(curCityValue==City_array[k].split(",")[1])
		{
			document.write("<option value='"+City_array[k].split(",")[0]+","+City_array[k].split(",")[1]+"'");
			if(curCity==City_array[k].split(",")[0]) document.write(" selected");
			document.write(" >"+City_array[k].split(",")[0]+"</option>");
		}
	}	
}

function saveTouXianInfo(expTypeId){
	document.getElementById("UserExpperence").action="/editUserExperence|updateTouXian.action?expTypeId="+expTypeId;     
	document.getElementById("UserExpperence").submit();
}
