var descTitle = new Array();var descText = new Array();var info = null;var invalid = "Click the download button below.";function loadAdminOptions(){	info = new DynamicOptionList("infotype", "category");		info.selectFirstOption = false;	for(var i = 0; i < 7; i++){		descTitle[i] = document.getElementById("title"+i);		descText[i] = document.getElementById("desc"+i); 	}    info.forValue("potential_natural_vegetation").addOptionsTextValue(    	"Tropical Evergreen Forest/Woodland", "veg1",    	"Tropical Deciduous Forest/Woodland", "veg2",    	"Temperate Broadleaf Evergreen Forest/Woodland", "veg3",    	"Temperate Needleleaf Evergreen Forest/Woodland", "veg4",    	"Temperate Deciduous Forest/Woodland", "veg5",     	"Boreal Evergreen Forest/Woodland", "veg6",    	"Boreal Deciduous Forest/Woodland", "veg7",    	"Evergreen/Deciduous Mixed Forest", "veg8",    	"Savanna", "veg9",    	"Grassland/Steppe", "veg10",    	"Dense Shrubland", "veg11",    	"Open Shrubland", "veg12",    	"Tundra", "veg13",    	"Desert", "veg14",    	"Polar Desert/Rock/Ice", "veg15" );    	    info.forValue("hisland").addOptionsTextValue(    	"Cropland", "cropland",    	"Forestland", "forest",		"Savanna/Grassland", "savgr",		"Shrubland" , "shrub",		"Other land", "otherland");    info.forValue("curland").addOptionsTextValue(    	"Cropland", "cropland1992",    	"Forestland", "forest1992",    	"Savanna/Grassland", "savgr1992",    	"Shrubland", "shrub1992",    	"Grazing land", "pasture1992",    	"Built-up land", "urban1992",    	"Other land", "otherland1992");    info.forValue("majorcrops").addOptionsTextValue(    	"Barley", "barley1992",    	"Cassava","cassava1992",		"Cotton", "cotton1992",		"Groundnuts/Peanuts", "grnuts1992",		"Maize", "maize1992",		"Millet", "millet1992", 		"Oil Palm", "oilpalm1992",		"Other Crops", "othercrops1992",		"Potato", "potat1992",		"Pulses", "pulses1992",		"Rapeseed/Canola", "rape1992",		"Rice", "rice1992",		"Rye", "rye1992",		"Sorghum", "sorghum1992",		"Soybeans", "soy1992",		"Sugarbeet", "sugarb1992",		"Sugarcane", "sugarc1992",		"Sunflower", "sunfl1992",		"Wheat", "wheat1992");	info.forValue("population").addOptionsTextValue(		invalid, "invalid" );	info.forValue("land_area").addOptionsTextValue(		invalid, "invalid" );	info.forValue("landsuit").addOptionsTextValue(		invalid, "invalid" );}function loadGridOptions(){		info = new DynamicOptionList("grid_lev_1", "grid_lev_2");		for(var i = 0; i < 6; i++){		descTitle[i] = document.getElementById("title"+i);		descText[i] = document.getElementById("desc"+i); 	}	info.selectFirstOption = false;		info.forValue("pop_den").addOptionsTextValue(		"1990", "1990",		"1995", "1995" );		info.forValue("land_area").addOptionsTextValue(		invalid, "invalid" );		info.forValue("hist_crp_lnd").addOptionsTextValue(		"1700", "1700",		"1710", "1710",		"1720", "1720",		"1730", "1730",		"1740", "1740",		"1750", "1750",		"1760", "1760",		"1770", "1770",		"1780", "1780",		"1790", "1790",		"1800", "1800",		"1810", "1810",		"1820", "1820",		"1830", "1830",		"1840", "1840",		"1850", "1850",		"1860", "1860",		"1870", "1870",		"1880", "1880",		"1890", "1890",		"1900", "1900",		"1910", "1910",		"1920", "1920",		"1930", "1930",		"1940", "1940",		"1950", "1950",		"1960", "1960",		"1970", "1970",		"1980", "1980",		"1990", "1990",		"1992", "1992" );		info.forValue("land_cvr").addOptionsTextValue(		"Cropland", "cropland",		"Pasture", "pasture",		"Built-Up", "built_up" );		info.forValue("major_crps").addOptionsTextValue(		"Barley", "barley",		"Cassava", "cassava",		"Cotton", "cotton",		"Groundnuts/Peanuts", "grnuts",		"Maize", "maize",		"Millet", "millet",		"Oil Palm", "oilpalm",		"Other Crops", "othercrops",		"Potato", "potato",		"Pulses", "pulses",		"Rapeseed/Canola", "rape",		"Rice", "rice",		"Rye", "rye",		"Sorghum", "sorghum",		"Soybeans", "soy",		"Sugarbeet", "sugarbeet",		"Sugarcane", "sugarcane",		"Sunflower", "sunflower",		"Wheat", "wheat" );		info.forValue("land_suit").addOptionsTextValue(		invalid, "invalid" );}function changeText(index) {	var t = document.getElementById("title");	var d = document.getElementById("desc");	while (t.hasChildNodes()) {		var c = t.childNodes[0];		t.removeChild(c);	}	while (d.hasChildNodes()) {		var c = d.childNodes[0];		d.removeChild(c);	}	t.appendChild (descTitle[index]);	d.appendChild (descText[index]);}