<!--MOST OF THE LSE HOMEPAGE JS ARE LOCATED HERE...AND THEN LINKED TO THIS PAGE VIA THE INDIVIDUAL PAGES>

function zoom2(form) {
	var climonnum=form.climate.selectedIndex
	location=form.climate.options[climonnum].value;
}
function displayWindow(url, width, height) {
	var Win = window.open(url,"displayWindow", 'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=yes,status=yes' );
}

function Cliget(form) {
var data1 = document.clifind.place.selectedIndex;
var data2 = document.clifind.month.selectedIndex;
var data3 = document.clifind.year.selectedIndex;
var data = "/arx/scripts/getlocallcd.php?" 
 + document.clifind.place.options[data1].value
 + document.clifind.month.options[data2].value
 + document.clifind.year.options[data3].value;

location = data;
}

function CliF6_lse(form) {
var data2 = document.f6find_lse.mon.selectedIndex;
var data3 = document.f6find_lse.year.selectedIndex;
var data = "/arx/scripts/getlocallcd.php?site=lse" 
 + document.f6find_lse.mon.options[data2].value
 + document.f6find_lse.year.options[data3].value;

location = data;
}

function CliF6_rst(form) {
var data2 = document.f6find_rst.mon.selectedIndex;
var data3 = document.f6find_rst.year.selectedIndex;
var data = "/arx/scripts/getlocallcd.php?site=rst" 
 + document.f6find_rst.mon.options[data2].value
 + document.f6find_rst.year.options[data3].value;

location = data;
}


function lse_get(form) {
var data2 = document.cli_lse.normrec.selectedIndex;
var data3 = document.cli_lse.lse_mon.selectedIndex;
var data = "/arx/?n=" +
 document.cli_lse.normrec.options[data2].value
  + document.cli_lse.lse_mon.options[data3].value + ".lse";

location = data;
}

function rst_get(form) {
var data2 = document.cli_rst.normrec.selectedIndex;
var data3 = document.cli_rst.rst_mon.selectedIndex;
var data = "/arx/?n=" +
 document.cli_rst.normrec.options[data2].value
  + document.cli_rst.rst_mon.options[data3].value + ".rst";

location = data;
}


function Cliget2(form) {
var data2 = document.clifind2.month.selectedIndex;
var data3 = document.clifind2.year.selectedIndex;
var data = "/arx/scripts/getlocallcd.php?site=lse" 
 + document.clifind2.month.options[data2].value
 + document.clifind2.year.options[data3].value;

location = data;
}
function Cliget3(form) {
var data2 = document.clifind3.month.selectedIndex;
var data3 = document.clifind3.year.selectedIndex;
var data = "/arx/scripts/getlocallcd.php?site=rst" 
  + document.clifind3.month.options[data2].value
  + document.clifind3.year.options[data3].value;

location = data;
}

function Cliget4(form) {
var data2 = document.clifind4.month.selectedIndex;
var data3 = document.clifind4.year.selectedIndex;
var data = "/arx/?n=pcpn." +
 document.clifind4.month.options[data2].value
  + document.clifind4.year.options[data3].value;

location = data;
}

function Cliget5(form) {
var data2 = document.clifind5.season.selectedIndex;
var data3 = document.clifind5.year.selectedIndex;
var data = "/images/arx/climate/" +
 document.clifind5.season.options[data2].value
  + document.clifind5.year.options[data3].value + "pcpn.jpg";

location = data;
}

function Cliget6(form) {
var data3 = document.clifind6.year.selectedIndex;
var data = "/images/arx/climate/" +
 "Annual"+ document.clifind6.year.options[data3].value + "pcpn.jpg";

location = data;
}

function Cliget7(form) {
var data3 = document.clifind7.year.selectedIndex;
var data = "/images/arx/climate/" +
 document.clifind7.year.options[data3].value + "seasonsnow.jpg";

location = data;
}

function SVRget(form) {
var data2 = document.svrfind.month.selectedIndex;
var data3 = document.svrfind.year.selectedIndex;
var data = "/images/arx/sdata/" +
 document.svrfind.month.options[data2].value
  + document.svrfind.year.options[data3].value + ".pdf";

location = data;
	
}
function zoom(form) {
	var statenum=form.state.selectedIndex
	location=form.state.options[statenum].value;
}

function getplot(form) {
var data1 = document.cliplot.location.selectedIndex;
var data2 = document.cliplot.month.selectedIndex;
var data3 = document.cliplot.year.selectedIndex;
var data = "http://www.crh.noaa.gov/images/arx/climate/plots/" 
 + document.cliplot.location.options[data1].value
 + document.cliplot.year.options[data3].value
 + document.cliplot.month.options[data2].value
 + "plot.png";
window.open(data);
}


function getplot_lse(form) {
var data2 = document.cliplot_lse.month.selectedIndex;
var data3 = document.cliplot_lse.year.selectedIndex;
var data = "http://www.crh.noaa.gov/images/arx/climate/plots/KLSE" 
 + document.cliplot_lse.year.options[data3].value
 + document.cliplot_lse.month.options[data2].value
 + "plot.png";
window.open(data);
}

function getplot_rst(form) {
var data2 = document.cliplot_rst.month.selectedIndex;
var data3 = document.cliplot_rst.year.selectedIndex;
var data = "http://www.crh.noaa.gov/images/arx/climate/plots/KRST" 
 + document.cliplot_rst.year.options[data3].value
 + document.cliplot_rst.month.options[data2].value
 + "plot.png";
window.open(data);
}

function windChill(form) {
wind=eval(form.wind.value);
temp=eval(form.temp.value);
if (wind < 4)
alert("The wind is too light to calculate the wind chill properly. Please select a wind 4 mph or higher."); 
chilla=(35.74+(0.6215*temp)-(35.75*(Math.pow(wind, 0.16)))+(0.4275*temp*(Math.pow(wind, 0.16))));
var chill = Math.round(chilla)
form.windchill.value = chill;
}


<!--This script is used to open a new window to display a selected link from a drop down menu -->

function zoom3(form) {
	var choicenum=form.choice.selectedIndex;
	window.open(form.choice.options[choicenum].value);
}

