function ShowProvince(provinceId)
{
	if(provinceId.length < 4)
	    return "";
	for(var i = 0;i < cityItems.length;i++)
	{
		
		if(cityItems[i][0].substring(0,4) == provinceId.substring(0,4))
		{
			return cityItems[i][1];
		}
	}
    return "";
}
function ShowProvinceName(provinceId)
{
    document.write(ShowProvince(provinceId));	
}
function ShowCity(cityId)
{
	if(cityId.length < 8)
	   return "";
	if(cityId.substring(4,4) == "0000")
	    return "";
	for(var i = 0;i < cityItems.length;i++)
	{
		if(cityItems[i][0].substring(0,8) == cityId.substring(0,8))
		{
			return cityItems[i][1];
		}
	}
   return "";
}
function ShowCityName(cityId)
{
	document.write(ShowCity(cityId));
}
function ShowArea(areaId)
{
	if(areaId.length < 12 )
	   return "";
	if(areaId.substring(8,4) == "0000")
	    return "";
	for(var i = 0;i < areaItems.length;i++)
	{
		if(areaItems[i][0] == areaId)
		{
			return areaItems[i][1];
		}
	}
   return "";
}
function ShowAreaName(areaId)
{
	document.write(ShowArea(areaId));
}
function ShowProvinceAndCity(cityId)
{
	if(cityId.length < 8)
	   return "";
	document.write(ShowProvince(cityId.substring(0,4)) + "&nbsp;" + ShowCity(cityId.substring(0,8)));
}
function ShowProvinceOrCity(cityId)
{
    if(cityId.length > 4)
	    document.write(ShowCity(cityId));
    else
	    document.write(ShowProvince(cityId));
}
function ShowProvinceAndCityAndArea(areaId)
{
	
	if(areaId.length < 12)
	   return "";
	//alert(ShowProvince(areaId.substring(0,4)));
	document.write(ShowProvince(areaId.substring(0,4)) + "&nbsp;" + ShowCity(areaId.substring(0,8)) + "&nbsp;" + ShowArea(areaId.substring(0,12)));
	
}
function ShowDegreeName(degreeId)
{
	for(var i=0;i< degreeItems.length;i++)
	{
		if(degreeItems[i][0] == degreeId)
		{
		   document.write(degreeItems[i][1]);
		   return;
		}
	}
}
function ShowIndustryName(industryId)
{
	if(industryId.length < 4)
	{
	    document.write("");
		return;
	}
	for(var i = 0;i < industryItems.length;i++)
	{
		
		if(industryItems[i][0] == industryId)
		{
			document.write( industryItems[i][1]);
			return;
		}
	}
    document.write("");
}
function ShowString(str)
{
	document.write(str);
}