function FetchForecast(form)
{
	var URL = '';
	var myCountry = form.Country[form.Country.selectedIndex];
	var myindex=form.Places.selectedIndex;
	var tipo=form.tipo.value;
	URL= sScript + "&" + sScript2 +"&pands="+ form.Places[myindex].value;
	location.href=URL;
}

function Place (Place, Country, ICAO)
	{
		this.Name = Place;
		this.Country = Country;
		this.ICAO = ICAO;
	}
	
	


function SetPlaces ()
{

	j = document.FetchForecastForm.Country.selectedIndex;
	Country = document.FetchForecastForm.Country[j].value;
      if (Country == 'US' || Country == 'CA' || Country == 'INT') {

         URL = sScript +"&"+ sScript2 + "forecast=pass&pass=taf"+Country
        window.open("modules/imeteo/Meteoimage/stati.php?Country="+Country+"&func=free_wx","fin","width=1000,height=300,toolbar=no,status=yes") 
				// top.location.href = URL;
      }
      else {
            document.FetchForecastForm.Places.options.length = 0;
		j = 0
		for (i = 0; i < num; i++)
		{
			if (Places[i].Country == Country)
			{
				document.FetchForecastForm.Places.options[j] = new Option(Places[i].Name);
				document.FetchForecastForm.Places.options[j].value = Places[i].ICAO;
				j++;
			}
		}
		document.FetchForecastForm.Places.options[0].selected = true;
	}
}
