if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.open("GET","/cache/KSBN.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;

var weather = xmlDoc.getElementsByTagName("weather")[0].childNodes[0].nodeValue;
var temperature = xmlDoc.getElementsByTagName("temp_f")[0].childNodes[0].nodeValue;
var obstime =xmlDoc.getElementsByTagName("observation_time")[0].childNodes[0].nodeValue;
var humidity=xmlDoc.getElementsByTagName("relative_humidity")[0].childNodes[0].nodeValue;
var winddir=xmlDoc.getElementsByTagName("wind_dir")[0].childNodes[0].nodeValue;
var windspeed=xmlDoc.getElementsByTagName("wind_mph")[0].childNodes[0].nodeValue;
//var windchill=xmlDoc.getElementsByTagName("windchill_f")[0].childNodes[0].nodeValue;
var visibility=xmlDoc.getElementsByTagName("visibility_mi")[0].childNodes[0].nodeValue;
var placelocation=xmlDoc.getElementsByTagName("location")[0].childNodes[0].nodeValue;


// temperature = (temperature<0?-1:+1)*Math.floor(Math.abs(temperature));
temperature = Math.floor(Math.abs(temperature));
