function getimg(myform) { var filename = ""; var areaIndex = myform.area.selectedIndex; var timeIndex = myform.time.selectedIndex; var colorIndex = myform.color.selectedIndex; if ( myform.area.options[areaIndex].value == "bw" ) { myform.color.options[colorIndex].value = ""; } if ( myform.time.options[timeIndex].value == "Latest" && myform.area.options[areaIndex].value != "nam" ) { myform.time.options[timeIndex].value = ""; } filename = myform.area.options[areaIndex].value+"sfc"+myform.time.options[timeIndex].value+myform.color.options[colorIndex].value+".gif"; if ( myform.area.options[areaIndex].value == "radsfcus_exp" ) { filename = myform.area.options[areaIndex].value+myform.time.options[timeIndex].value+".gif"; } if ( myform.area.options[areaIndex].value == "print_us" ) { filename = myform.area.options[areaIndex].value+myform.time.options[timeIndex].value+"bw.gif"; } if ( myform.area.options[areaIndex].value == "sfc_" ) { filename = myform.area.options[areaIndex].value+myform.time.options[timeIndex].value+".tiff"; window.location = "/sfc/"+filename; } if ( myform.time.options[timeIndex].value == "Latest" && myform.area.options[areaIndex].value == "nam" ) { filename = "90f"+myform.color.options[colorIndex].value+".gif"; } if ( myform.area.options[areaIndex].value != "sfc_" ) { document.open(); document.write("
\n"); document.write("\n"); document.write("\n"); document.close(); } return true; }