


window.onload=function(){
locLabel();
}

function goTWF() {
var x = document.searchFormTWF.searchInputTWF.value;
parent.location.href = 'http://www.foxreno.com/weather/related.html?host=krxi&token='+ x;
}

function goHeader() {
var x = document.searchFormHeader.searchInputHeader.value;
parent.location.href = 'http://www.foxreno.com/weather/related.html?host=krxi&token='+ x;
}

function locLabel() {
var host = "krxi";
switch (host) {
case "wjac":
document.getElementById("location").innerHTML = "Alleghenies";
break;
case "wtov":
document.getElementById("location").innerHTML = "Ohio Valley";
break;
case "ktvu":
document.getElementById("location").innerHTML = "San Jose";
break;
default:
}
}

function Ajax()
{
	var xmlhttp=false;
	this.Get= Get;

/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
	try
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e)
	{
		try
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(E)
		{
			xmlhttp = false;
		}
	}
@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined')
	{
		xmlhttp = new XMLHttpRequest();
	}

	function Get(url,target, postRtn)
	{
		try
		{
			if(target)
			{
				target.innerHTML= '<p><img style="text-align:center" src="http://content.myweather.net/modules/almanac/1/ajax-loader.gif"/></p>';
			}
			xmlhttp.open("GET", url,true);


			xmlhttp.onreadystatechange=function() 
			{

				if (xmlhttp.readyState==4)
				{
					if(target)
					{
						target.innerHTML = xmlhttp.responseText;
					}
                    if(postRtn){postRtn()};
				}
                       
			}
			xmlhttp.send(null)
		}
		catch(e)
		{
		}
	}
}