// JavaScript Document
var intervalId=0;

function init(){
	showWeather();
	intervalId=setInterval("showWeather();",900000);
}

function showWeather(){
	xmlHttp=GetXmlHttpObject();
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4)
		{
			if (xmlHttp.status == 200){
				document.getElementById('alertlayer').innerHTML=xmlHttp.responseText;
			}
		}
	}
	xmlHttp.open('GET','/weather/getWeather.jsp',true);
	xmlHttp.send(null);
}

function clearTimer(){
	clearInterval(intervalId);
}