/*
This copy is only to be used on the holiday weather site.
*/
var xmlhttp
var weatherDiv

function getWeatherDiv(reportId, divId) {

	xmlhttp=null
	weatherDiv = divId
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
		xmlhttp=new XMLHttpRequest()
	}
	// code for IE
	else if (window.ActiveXObject)
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	if (xmlhttp!=null)
	{
		xmlhttp.onreadystatechange=stateChange
		xmlhttp.open("GET", "/weather_frames/weather_frame.php?id="+reportId,true);
		xmlhttp.send(null)
	}
	else
	{
		alert("Your browser does not support XMLHTTP.")
	}

}

function stateChange()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
  {
  // if "OK"
  if (xmlhttp.status==200)
  {
  document.getElementById(weatherDiv).innerHTML=xmlhttp.responseText
  }
  else
  {
  document.getElementById(weatherDiv).innerHTML = "Could not get Holiday Weather feed"
  }
  }
}