function changeWeatherLayer(id) {
	//MM_swapImage('wtap'+WeatherRegion,'','/img/tap'+WeatherRegion+'.gif',1);
	//MM_swapImage('wtap'+id,'','/img/tap'+id+'_.gif',1);
	//alert(document.all['fnt'+id].id);
	for(var i=1;i<=13;i++){
		if(i==id)
			document.all['fnt'+i].style.fontWeight="bold";  
		else
			document.all['fnt'+i].style.fontWeight="";  
	}
	WeatherRegion = id;

	getReadWeatherInformation(id);
}

function getReadWeatherInformation(id) {
	initWeatherData();
	document.frames['weather'].location.href='/scripts/fc_week.php?region='+id;
}

function changeTextData(id, month, day, day_str, str) {
	var day_string = month+'.'+day+' ('+day_str+')';
	if (id == 1) {
		document.weather_display.today_day.value = day_string;
		document.weather_display.today_weather.value = str;
	} else if (id == 2) {
		document.weather_display.tomorrow_day.value = day_string;
		document.weather_display.tomorrow_weather.value = str;
	}
}

function changeDayData(id, month, day, day_str, image_file, image_alt, mintemp, maxtemp) {
	var day_string = month+'.'+day+'('+day_str+')';
	eval('document.weather_display.temp_low'+id+'.value = mintemp;');
	eval('document.weather_display.temp_high'+id+'.value = maxtemp;');
	eval('document.weather_display.date'+id+'.value = day_string;');
	document.all['weather'+id].src='/img/'+image_file;
	document.all['weather'+id].alt=image_alt;

	loadingMap(RegionID);
}

function initWeatherData() {
	document.weather_display.today_day.value = "---";
	document.weather_display.today_weather.value = "---";
	document.weather_display.tomorrow_day.value = "---";
	document.weather_display.tomorrow_weather.value = "---";
	for (i=1;i<6;i++) {
		eval('document.weather_display.temp_low'+i+'.value = "--";');
		eval('document.weather_display.temp_high'+i+'.value = "--";');
		eval('document.weather_display.date'+i+'.value = "--";');
		document.all['weather'+i].src='/img/img_w28.gif';
		document.all['weather'+i].alt='ΈπΈ§';
	}
}
