function getCityList(e){var c=new Array();
var b;
var d=new Object();
if(e==null||e==""){var a="../"+getURL(d)+"/cityOptions.do?mappingURL="+getAction(d)
}else{var a="../"+getURL(d)+"/cityOptions.do?changedPhoneNumber="+e+"&mappingURL="+getAction(d)
}$.ajax({type:"get",url:a,dataType:"json",async:false,success:function(g){if(g){if(e==null||e==""){if($.browser.msie){for(var f=0;
f<g.length-1;
f++){c[f]=new Option(g[f].name,g[f].id)
}}else{for(var f=0;
f<g.length;
f++){c[f]=new Option(g[f].name,g[f].id)
}}}else{if($.browser.msie){b=new Option(g[g.length-2].name,g[g.length-2].id);
for(var f=0;
f<g.length-3;
f++){c[f]=new Option(g[f].name,g[f].id)
}}else{b=new Option(g[g.length-1].name,g[g.length-1].id);
for(var f=0;
f<g.length-2;
f++){c[f]=new Option(g[f].name,g[f].id)
}}c[c.length]=b
}}}});
return c
}function addOptionForCity(d){var a=getCityList();
var c=document.getElementById("cityIdValue");
if(d=="allCity"){for(var b=0;
b<a.length;
b++){c.options[b+1]=a[b]
}}if(d=="cityByRed"){}}function enterCity(){var a=document.getElementById("cityIdValue");
var b=a.value;
if(a.value=="0"){document.getElementById("cityNameValue").value="";
document.getElementById("cityNameEnter").style.display="block"
}else{document.getElementById("cityNameEnter").style.display="none"
}}function getURL(b){b.dir=location.href.substring(0,location.href.lastIndexOf("/"));
b.dom=b.dir;
if(b.dom.substr(0,7)=="http://"){b.dom=b.dom.substr(7)
}b.path="";
var c=b.dom.indexOf("/");
if(c>-1){b.path=b.dom.substr(c+1);
var a=b.path.indexOf("/");
if(a>-1){b.path=b.dom.substr(0,a)
}}return b.path
}function getAction(a){a.action=location.href.substring(location.href.lastIndexOf("/")+1,location.href.lastIndexOf("o")+1);
return a.action
};