function ShowSelectProvinces(code)
{
  provcode=code.substr(0,2);

  var areaname = eval("area" + provcode);
  document.write(areaname);
}

function ShowSelectCities(theform,code)
{
  var provcode = theform.address.options[theform.address.selectedIndex].value;
        
  theform.city.options[0].value = 0;
  theform.city.options[0].text = "Ñ¡Ôñ";

  if (provcode == 0)
  {
    theform.city.options.length = 1;
  }
  else
  {
    var citylist = eval("prov" + provcode + ".split(',')");
    var codelist = eval("code" + provcode + ".split(',')");

    theform.city.options.length = citylist.length + 1;
	
    for(var i=1; i<citylist.length+1; i++)
    {
      theform.city.options[i].value = codelist[i-1];
      theform.city.options[i].text  = citylist[i-1];

      if(code==codelist[i-1]) theform.city.options[i].selected=true;
    }
  }

  return false;
} 

function ShowProvince(code)
{
  if(code.length<2)
  {
    document.write("ÎÞ");
    return;
  }

  provcode=code.substr(0,2);

  var areaname = eval("area" + provcode);
  var citylist = eval("prov" + provcode + ".split(',')");
  var codelist = eval("code" + provcode + ".split(',')");

  document.write(areaname);

  if(code.length>2) 
  {
    for(var i=1; i<codelist.length+1; i++)
    {
      if(codelist[i-1]==code)
      {
        document.write("" + citylist[i-1]);
        return;
      }
    }
  }
}