var xmlhttp;
xmlhttp=null;
if (window.XMLHttpRequest)
  {// code for IE7, Firefox, Opera, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
 xmlhttp.open("GET", "xml/weather_proxy.asp",true); 
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
  
  if(xmlhttp.status!=200)
  {
  alert("Problem retrieving XML data");
  return;
  }
  
 /*   alert(xmlhttp.responseText) */
   
var theDate = todaysDate();

temp=xmlhttp.responseXML.documentElement.getElementsByTagName("temp_f")[0].childNodes[0].nodeValue;
tempString=xmlhttp.responseXML.documentElement.getElementsByTagName("temperature_string")[0].childNodes[0].nodeValue;

weather=xmlhttp.responseXML.documentElement.getElementsByTagName("weather")[0].childNodes[0].nodeValue;

windString=xmlhttp.responseXML.documentElement.getElementsByTagName("wind_string")[0].childNodes[0].nodeValue;

windMph=xmlhttp.responseXML.documentElement.getElementsByTagName("wind_mph")[0].childNodes[0].nodeValue;

barometer=xmlhttp.responseXML.documentElement.getElementsByTagName("pressure_string")[0].childNodes[0].nodeValue;



 txt="<p>" + theDate +"</p>";


// txt=txt + "<p>" + tempString +"</p>";

txt=txt + "<p>" + temp +"&deg;F at City Hall</p>";


txt=txt + "<p>" + weather +"</p>";


//txt=txt + "<p>Wind: From " + windMph +"mph</p>" + ;

txt=txt + "<p>Wind: " + windString +"</p>";


txt=txt + "<p>" + barometer +"</p>";


document.getElementById('todays_weather').innerHTML=txt;




   
   
  }
 }
 xmlhttp.send(null)
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
