/////////////////////////////////////////////////////////////////////////
//   JumpAlert.js --  JavaScript
//
//   Author:  Bernard N. Meisner, Scientific Services Division, NWS SRHQ
//
//   Latest Revision:  May 14, 2000
/////////////////////////////////////////////////////////////////////////

function jumpAlert() {
window.alert('You are now leaving the National Weather Service Web site.\n\nThe NWS provides a link to this external Web page because it may contain related information of interest to you. This link does not constitute an endorsement by the NWS of any information, products or services on this external Web site.\n\nYou can return to the NWS Web site by using the Back button on your Web browser.')
            }

//	Use this function for invoking jumpAlert within Form drop-down SELECT tags
function formSelect(newLoc) {
	URLandFlag = newLoc.options[newLoc.selectedIndex].value		//  Determine the VALUE of the selected OPTION
	parameterArray = URLandFlag.split("#")						//  Split the string into a two element array at the "#" separator  
	URL = parameterArray[0] 									//  The URL was the string before the "=" separator
	alertFlag = parameterArray[1]								//  The alert flag (if any) was the string after the "#" separator
	if (URL != "") {
		if (alertFlag == "alert") {								//  Should we display the jumpAlert?
			jumpAlert()
		}
		window.location.href = URL								//  Now jump to the new URL
	}
}

//     end of JumpAlert script

