function getWeatherGR(lid,ltext,lang){
	
	//var x=document.getElementById("weather_city");
	//document.getElementById("weather_city").value = lid;
	var url = "/includes/" + lang + "weather.asp?lid=" + lid + "&ltext=" + ltext;
	request.open("GET", url, true);
	request.onreadystatechange = changeWeatherLocationGR;
	request.send(null);
	
}

function getWeatherDE(lid,ltext,lang){
	
	var x=document.getElementById("weather_city");
	document.getElementById("weather_city").value = lid;
	var url = "/de/wetter_griechenland/weather.asp?lid=" + lid + "&ltext=" + ltext;
	request.open("GET", url, true);
	request.onreadystatechange = changeWeatherLocationGR;
	request.send(null);
	
}

function getWeatherIT(lid,ltext,lang){
	
	var x=document.getElementById("weather_city");
	document.getElementById("weather_city").value = lid;
	var url = "/it/meteo_grecia/weather.asp?lid=" + lid + "&ltext=" + ltext;
	request.open("GET", url, true);
	request.onreadystatechange = changeWeatherLocationGR;
	request.send(null);
	
}
function getWeatherFR(lid,ltext,lang){
	
	var x=document.getElementById("weather_city");
	document.getElementById("weather_city").value = lid;
	var url = "/fr/meteo_grece/weather.asp?lid=" + lid + "&ltext=" + ltext;
	request.open("GET", url, true);
	request.onreadystatechange = changeWeatherLocationGR;
	request.send(null);
	
}

function getWeatherSP(lid,ltext,lang){
	
	var x=document.getElementById("weather_city");
	document.getElementById("weather_city").value = lid;
	var url = "/sp/tiempo_en_grecia/weather.asp?lid=" + lid + "&ltext=" + ltext;
	request.open("GET", url, true);
	request.onreadystatechange = changeWeatherLocationGR;
	request.send(null);
	
}
function getWeatherNL(lid,ltext,lang){
	
	var x=document.getElementById("weather_city");
	document.getElementById("weather_city").value = lid;
	var url = "/nl/weer_griekenland/weather.asp?lid=" + lid + "&ltext=" + ltext;
	request.open("GET", url, true);
	request.onreadystatechange = changeWeatherLocationGR;
	request.send(null);
	
}


function changeWeatherLocationGR(){
	if (request.readyState == 4)
    	{
		if (request.status == 200)
			{
			var response = request.responseText;
			if (response!="")
				{
				document.getElementById("import_weather").innerHTML = response;
				}
			}
    	else if (request.status == 404)
			{
				alert("Page Does Not Exist!");
			}
//		else
//			{alert("Error: status code is " + request.status);}
		}
}

function goThere(value,lang){
var url = "/" + lang + "weather_greece/" + value;
window.location.href = url;
}

function goThereDE(value,lang){
var url = "/de/wetter_griechenland/" + value;
window.location.href = url;
}

function goThereIT(value,lang){
var url = "/it/meteo_grecia/" + value;
window.location.href = url;
}
function goThereFR(value,lang){
var url = "/fr/meteo_grece/" + value;
window.location.href = url;
}
function goThereSP(value,lang){
var url = "/sp/tiempo_en_grecia/" + value;
window.location.href = url;
}
function goThereNL(value,lang){
var url = "/nl/weer_griekenland/" + value;
window.location.href = url;
}


