// JavaScript for DavisData Death Valley Visit Pages
// code called by deathvalley.html in deathvalleyYY folders
//    last modified: 3/5/2010

function addOption(selectbox,text,value )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;
	selectbox.options.add(optn);
}

function addOption_list(selectbox){
var month = new Array("1999","2001","2002","2003","2004","2005","2006","2007","2008","2010");
for (var i=0; i < month.length;++i){
addOption(document.drop_list.Year_list, month[i], month[i]);
}
}

function processList(){
var list = document.drop_list.Year_list;
var len = list.length;
for(x=0;x<len;x++){
if(list[x].selected){
alert("I will take you to our "+list[x].value + " Death Valley visit.");
window.location="../deathvalley" + list[x].value.substring(2) + "/deathvalley.html"
}
}
}
