function getimg_new(myform) { // Writes an html page based on the input from the form on the surface analysis page. var filename = ""; var areaIndex = myform.area.selectedIndex; var timeIndex = myform.time.selectedIndex; var colorIndex = myform.color.selectedIndex; // Re-direct to sfc-zoom.php page if North American Zoom-in has been selected if ( myform.area.options[areaIndex].value == "lrgnam" ) { var seltime = myform.time.options[timeIndex].value; if ( seltime == "Latest" ) { window.location = "/html/sfc-zoom.php"; } else { window.location = "/html/sfc-zoom.php?h=" + seltime; } } else { // Otherwise, display the normal static maps 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.area.options[areaIndex].value != "sfc_" ) { myform.time.options[timeIndex].value = ""; } filename = myform.area.options[areaIndex].value+"sfc"+myform.time.options[timeIndex].value+myform.color.options[colorIndex].value+".gif"; // Case for DWM black and white pdf if ( myform.area.options[areaIndex].value == "usdwm" && myform.color.options[colorIndex].value == "bw") { filename = myform.area.options[areaIndex].value+"sfc"+myform.time.options[timeIndex].value+myform.color.options[colorIndex].value+".pdf"; fullfname = "/sfc/"+filename; window.open (fullfname, "mywindow"); return true; } if ( myform.area.options[areaIndex].value == "radsfcus_exp" ) { filename = "radar_mosaic"+myform.time.options[timeIndex].value+".html"; window.location = "/html/"+filename; } 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_" && myform.time.options[timeIndex].value != "Latest" ) { filename = myform.area.options[areaIndex].value+myform.time.options[timeIndex].value+".tiff"; window.location = "/sfc/"+filename; } if ( myform.area.options[areaIndex].value == "sfc_" && myform.time.options[timeIndex].value == "Latest" ) { window.location = "/sfc/QYAA00.tiff" } 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_" && myform.area.options[areaIndex].value != "radsfcus_exp" ) { document.open(); document.write("
\n"); document.write("\n"); document.write("\n"); document.close(); } } return true; }