// JavaScript Document
<!--
function showreport()
{
	var dt = document.form1.myselecter;
	var dt1 = document.form1.shower;
	
	var mylinkerday = "http://climate.sdstate.edu/w_info/frost/" + dt.value + "day.shtm";
	var mylinker = "http://climate.sdstate.edu/w_info/frost/" + dt.value + ".shtm";	
	if (dt1.value == 'mmdd')
	{
		window.location.href=mylinker;
		return true;
	}
	else if (dt1.value == 'day')
	{		
		window.location.href = mylinkerday;
		return true;
	}
}

function showanotherreport()	
{
	var dt = document.form1.itemz;
	var dt1 = document.form1.periodz;
	var dt0 = document.form1.allormmdd;
	
	if (dt.value =='avgday')
	{
		if (dt1.value == 'htm')
		{			
			if (dt0.value == "day")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/avgallyrs.shtm';
				return true;	
			}
			else if (dt0.value == "mmdd")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/avgallyrsmmdd.shtm';
				return true;
			}	
		}
		else if (dt1.value == '30yr')
		{
			if (dt0.value == "day")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/avg30yrs.shtm';
				return true;	
			}
			else if (dt0.value == "mmdd")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/avg30yrsmmdd.shtm';
				return true;
			}
		}
	}
	else
	{
		if (dt1.value == 'htm')
		{
			if (dt0.value == "day")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/' + dt.value + '.s' + dt1.value;
				return true;	
			}
			else if (dt0.value == "mmdd")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/' + dt.value + 'mmdd.s' + dt1.value;
				return true;
			}	
		}
		else if (dt1.value == '30yr')
		{
			if (dt0.value == "day")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/' + dt.value + dt1.value + '.shtm';
				return true;	
			}
			else if (dt0.value == "mmdd")
			{
				window.location.href = 'http://climate.sdstate.edu/w_info/frost/' + dt.value + dt1.value + 'mmdd.shtm';
				return true;
			}
		}
	}	
}

function showanotherreport1()	
{
	var dt = document.form1.itemz1;
	var dt0 = document.form1.sessionz;
	var dt1 = document.form1.periodz1;
	
	if (dt.value =='avgday')
	{
		if (dt1.value == 'htm')
		{	
			window.location.target = "_parent";
			window.location.href = 'http://climate.sdstate.edu/w_info/frost/maps/overallavg' + dt0.value + '.jpg';
			return true;
		}
		else if (dt1.value == '30yr')
		{
			window.location.target = "_parent";
			window.location.href = 'http://climate.sdstate.edu/w_info/frost/maps/30avg' + dt0.value + '.jpg';			
			return true;
		}
	}
	else
	{
		if (dt1.value == 'htm')
		{	
			window.location.target = "_parent";
			window.location.href = 'http://climate.sdstate.edu/w_info/frost/maps/' + dt.value +  dt0.value + '.jpg';
			return true;
		}
		else if (dt1.value == '30yr')
		{
			window.location.target = "_parent";
			window.location.href = 'http://climate.sdstate.edu/w_info/frost/maps/' + dt.value +  dt0.value + '.jpg';
			return true;
		}
	}	
}


-->
