function rnk_change_text(pil, type)
{
   if (type == null)
     document.getElementById("textdisplay").src='../rnk_displayprod.php?product=WBC'+pil+'RNK';
   else
     document.getElementById("textdisplay").src='../rnk_displayprod.php?product=WBC'+pil+'RNK&type='+type;
}

function change_text(pil, type,versions)
{
   if (pil == "PNS" && type != null) {
     if (versions == null) versions=5
     url='../rnk_displayprod.php?product=WBC'+pil+'RNK';
     url=url+'&type='+type;
     if (versions != null)
        url=url+'&versions='+versions;
   } else {
     url='http://forecast.weather.gov/product.php?site=RNK&issuedby=RNK&product='+pil+'&format=txt&version=1&glossary=0';
     if (pil == "AFD") url=url+'&highlight=off';
   }
   document.getElementById("textdisplay").src=url;
}

<!--  NOTE: Only this function is needed for the JavaScript alert window 

function jumpAlert() {

window.alert('You are now leaving this National Weather Service (NWS) web site.\n\nThe link you have chosen will take you to an external web site, with the link provided by the NWS because it may contain information of interest to you. This link does not constitute an endorsement by the NWS of any information, products or services on the external site.\n\nYou can return to this NWS web site by using the back button on your web browser.')

            }

function goToPage(rnkSelect) {
   PageIndex2=rnkSelect.selectedIndex;
   {
   if (rnkSelect.options[PageIndex2].value != "none")

	   {
	   //this is the key code in the JavaScript to open the new page in
	   //the iframe:-
	   frames['rnk_frame'].location.href = rnkSelect.options[PageIndex2].value;
	   }
   }
}


//    -->
