

 // Pop ups for Weather warming   
var newwindow;
function pop(url){
	newwindow=window.open(url,'name','height=570,width=700, scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}
 
var newwindow;
function pop1(url){
	newwindow=window.open(url,'name','height=800,width=850, scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

var newwindow;
function pop2(url){
	newwindow=window.open(url,'name','height=800,width=700, scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}
var newwindow;
function pop4(url){
	newwindow=window.open(url,'name','height=650,width=700, scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/6)-(w/6);
var top = (screen.height/10)-(h/10);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}

<!-- NOAA Player
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=600,height=900,scrollbars=yes');
return false;
}


var newwindow;
function pop3(url){
newwindow=window.open(url,'name','height=800,width=850, scrollbars=yes');
if (window.focus) {newwindow.focus()}
}


// For Changing Images in Water Vapor   
function changeImage(filename)

{

   document.mainimage.src = filename;

}

// For Changing Images 2   
function changeImage2(filename)

{

   document.mainimage2.src = filename;

}


<!-- New  Wind Chill Calculator 1.1 -->
<!-- Modified 9/10/2001: Bryan Ruby, National Weather Service, Sioux Falls -->
<!-- Previous Contributers: Darren Collins (WFO FSD), James P. Dildine (jpd@wlsmail.com), Bryan Ruby (bryan.ruby@noaa.gov) -->
<!-- Begin

			function decideConvert(temp, ws)
			{
				temp = parseFloat(document.Convert.Temp.value);
				ws = parseFloat(document.Convert.windspeed.value);

				if(document.Convert.windunit[1].checked)
				{
					ws = convertktstomph(ws);
					ws1 = convertktstomps(ws);
				}

				if(document.Convert.windunit[2].checked)
				{
					ws = convertmpstomph(ws);
					ws1 = document.Convert.windunit[2].value;
				}
				
				if(document.Convert.windunit[3].checked)
				{
					ws = convetkphtomph(ws);
					ws1 = convertkphtomps(ws);
				}
								
				if (document.Convert.tempunit[0].checked)
				{
					var ws1 = convertmphtomps(ws);
					var temp1 = convertFtoC(temp);
					
					if (temp > 40)
					{
						alert('A Wind Chill value cannot be calculated for temperatures greater than 40 degrees Fahrenheit.');
						document.Convert.Fahr.value="";
						document.Convert.Cels.value="";
					}
					else
					{
						document.Convert.Fahr.value = roundOff(windChill(temp, ws));
						var C = parseFloat(document.Convert.Fahr.value);
						document.Convert.Cels.value = roundOff(convertFtoC(C));
						document.Convert.Watts.value = roundOff(WPM2(temp1, ws1));
					}
				}

				if (document.Convert.tempunit[1].checked)
				{
					var F = convertCtoF(temp);
					var ws1 = convertmphtomps(ws);
					if (F > 40)
					{
						alert('A Wind Chill value cannot be calculated for temperatures greater than 4.4 degrees Celsius.');
						document.Convert.Fahr.value="";
						document.Convert.Cels.value="";
					}
					else
					{
						document.Convert.Fahr.value = roundOff(windChill(F, ws));
						document.Convert.Cels.value = roundOff((convertFtoC(windChill(F, ws))));
						document.Convert.Watts.value = roundOff(WPM2(temp,ws1));
					}
				}
			}
				
			function convertFtoC(Fahr)
			{
				var Celsius;
				Celsius= .55556 * (Fahr - 32);
				return Celsius;
			}

			function convertCtoF(Cels)
			{
				var Fahr;
				Fahr= 1.8 * Cels + 32;
				return Fahr;
			}

			function convertktstomph(knots)
			{
				var mph;
				mph = 1.1507794*knots;
				return mph;
			}

			function convertmpstomph(mps)
			{
				var mph;
				mph = 2.23694*mps;
				return mph;
			}
			
			function convertmphtomps(mph)
			{
				var ws1;
				ws1 = 0.44704*mph;
				return ws1;
			}
			
			function convertktstomps(knots)
			{
				var ws1;
				ws1 = 0.5144444*knots;
				return ws1;
			}
			
			function convetkphtomph (kph)
			{
				var mph;
				mph = 0.621371*kph;
				return mph;
			}
			
			function convertkphtomps (kph)
			{
				var ws1;
				ws1 = 0.277778*kph;
				return ws1;
			}
			
			function windChill(F, mph)
			{
				var wChill;
				
				wChill = 35.74 + .6215*F - 35.75*Math.pow(mph, 0.16) + 0.4275*F*Math.pow(mph, 0.16);
				return wChill;
			}

			function WPM2 (C, mps)
			{
				var Watts;
			
				Watts = (12.1452 + 11.6222*Math.sqrt(mps) - 1.16222*mps)*(33 - C);
				return Watts;

			}
			function getAns(temp)
			{
				return temp;
			}

			function roundOff(value)
			{
				value = Math.round(10*value)/10;
				return value;
			}

			function setToNull()
			{
				document.Convert.Fahr.value="";
				document.Convert.Cels.value="";
				document.Convert.windspeed.value="";
				document.Convert.Temp.value="";
				document.Convert.Watts.value="";
			}
		
//  End -->


<!-- Version 8/020/2000: w-ddc.webmaster -->
<!-- Modified Version 8/16/2001 (for New Wind Chill Index): -->
<!-- National Weather Service Dodge City, KS -->

<!-- Begin
function windChill1(form) {
wind=eval(form.wind.value);
temp=eval(form.temp.value);
chill=(0.0817*(3.71*(Math.sqrt(wind))+5.81-0.25*wind)*(temp-91.4)+91.4);
nchill=(35.74+0.6215*temp-35.75*Math.pow(wind,0.16)+0.4275*temp*Math.pow(wind,0.16));
chill=Math.round(chill);
nchill=Math.round(nchill);
form.windchill.value = chill;
form.nwindchill.value = nchill;
}
//  End -->



//--  Heat Index Calculator 1.1 

    //  ###################################  HEAT INDEX ######################################
            function heat1_c(HI1_C){
            if(parseFloat(HI1_C.tempair.value) < 18){
            alert("Entry Invalid!  Click on reset and try again!");
            }
            else {
            var tempair_in_fahrenheit = 1.80 * HI1_C.tempair.value + 32.0;
            var hi1_c = -42.379 + 2.04901523 * tempair_in_fahrenheit + 10.14333127 * HI1_C.RHumidity.value - 0.22475541 * tempair_in_fahrenheit * HI1_C.RHumidity.value - 6.83783 * (Math.pow(10, -3)) * (Math.pow(tempair_in_fahrenheit, 2)) - 5.481717 * (Math.pow(10, -2)) * (Math.pow(HI1_C.RHumidity.value, 2)) + 1.22874 * (Math.pow(10, -3)) * (Math.pow(tempair_in_fahrenheit, 2)) * HI1_C.RHumidity.value + 8.5282 * (Math.pow(10, -4)) * tempair_in_fahrenheit * (Math.pow(HI1_C.RHumidity.value, 2)) - 1.99 * (Math.pow(10, -6)) * (Math.pow(tempair_in_fahrenheit, 2)) * (Math.pow(HI1_C.RHumidity.value,2));
            HI1_C.heatindex.value = Math.round(hi1_c) + " F"  + " / " + Math.round((hi1_c - 32) * .556) + " C";
            var rh3 = 1 - HI1_C.RHumidity.value/100;
            var tdpc3 = HI1_C.tempair.value - (((14.55 + .114*HI1_C.tempair.value)*rh3) + (Math.pow(((2.5 + .007*HI1_C.tempair.value)*rh3), 3)) + ((15.9 + .117*HI1_C.tempair.value))*(Math.pow(rh3, 14)));
            HI1_C.dewpt2.value = Math.round(1.80 * tdpc3 + 32.0) + " F" + " / " + Math.round(tdpc3) + " C";
            }
            }
            function HIDEW_c(heatdew_c){
            if(heatdew_c.tempair3.value < 19){
            alert("Invalid Entry!  Click on reset and try again!");
            }
            else{
            if (heatdew_c.tempair3.value < heatdew_c.dewpoint_c.value){
            alert("Your dew point temperature cannot be higher than the air temperature.  Click on reset and try again!");
            }
            else{
            tac = parseFloat(heatdew_c.tempair3.value);
            tdac = parseFloat(heatdew_c.dewpoint_c.value);
            var stuff3 = (112 - (0.1 * tac) + tdac) / (112 + (0.9 * tac));
            var RHumidity3 = Math.round(100.0 * (Math.pow(stuff3,8)));
            var airtemp_in_fahrenheit = 1.80 * heatdew_c.tempair3.value + 32.0;
            var hi3 = -42.379 + 2.04901523 * airtemp_in_fahrenheit + 10.14333127 * RHumidity3 - 0.22475541 * airtemp_in_fahrenheit * RHumidity3 - 6.83783 * (Math.pow(10, -3)) * (Math.pow(airtemp_in_fahrenheit, 2)) - 5.481717 * (Math.pow(10, -2)) * (Math.pow(RHumidity3, 2)) + 1.22874 * (Math.pow(10, -3)) * (Math.pow(airtemp_in_fahrenheit, 2)) * RHumidity3 + 8.5282 * (Math.pow(10, -4)) * airtemp_in_fahrenheit * (Math.pow(RHumidity3, 2)) - 1.99 * (Math.pow(10, -6)) * (Math.pow(airtemp_in_fahrenheit, 2)) * (Math.pow(RHumidity3,2));
            heatdew_c.answer.value = Math.round(hi3) + " F" +  " / " + Math.round((hi3 - 32) * .556) + " C";
            heatdew_c.RH3.value = RHumidity3 + "%";
            }
            }
            }
            function heat1(HeatIndex){
            if(HeatIndex.tempair.value < 65){
            alert("Entry Invalid!  Click on reset and try again!");
            }
            else {
            var hi = -42.379+2.04901523*HeatIndex.tempair.value+10.14333127*HeatIndex.RHumidity.value-0.22475541*HeatIndex.tempair.value*HeatIndex.RHumidity.value-6.83783*(Math.pow(10, -3))*(Math.pow(HeatIndex.tempair.value, 2))-5.481717*(Math.pow(10, -2))*(Math.pow(HeatIndex.RHumidity.value, 2))+1.22874*(Math.pow(10, -3))*(Math.pow(HeatIndex.tempair.value, 2))*HeatIndex.RHumidity.value+8.5282*(Math.pow(10, -4))*HeatIndex.tempair.value*(Math.pow(HeatIndex.RHumidity.value, 2))-1.99*(Math.pow(10, -6))*(Math.pow(HeatIndex.tempair.value, 2))*(Math.pow(HeatIndex.RHumidity.value,2));
            HeatIndex.heatindex.value = Math.round(hi) + " F" +  " / " + Math.round((hi - 32) * .556) + " C";
            var tempc2 = (HeatIndex.tempair.value - 32) * .556;
            var rh2 = 1 - HeatIndex.RHumidity.value/100;
            var tdpc2 = tempc2 - (((14.55 + .114*tempc2)*rh2) + (Math.pow(((2.5 + .007*tempc2)*rh2), 3)) + ((15.9 + .117*tempc2))*(Math.pow(rh2, 14)));
            HeatIndex.dewpt2.value = Math.round(1.80 * tdpc2 + 32.0) + " F" + " / " + Math.round(tdpc2) + " C";
            }
            }
            function HIDEW(heatdew){
            if(heatdew.tempair2.value < 65){
            alert("Entry Invalid!  Click on reset and try again!");
            }
            else{
            var tc2 = (parseFloat(heatdew.tempair2.value) - 32) * .556;
            var tdc2 = (parseFloat(heatdew.dewpoint.value) -32)* .556;
            if (tc2 < tdc2){
            alert("Your dew point temperature cannot be higher than the air temperature.  Click on reset and try again!");
            }
            else{
            var stuff2 = (112-(0.1*tc2)+tdc2)/(112+(0.9*tc2));
            var RHumidity2 = Math.round(100.0*(Math.pow(stuff2,8)));
            var hi2 = -42.379+2.04901523*heatdew.tempair2.value+10.14333127*RHumidity2-0.22475541*heatdew.tempair2.value*RHumidity2-6.83783*(Math.pow(10, -3))*(Math.pow(heatdew.tempair2.value, 2))-5.481717*(Math.pow(10, -2))*(Math.pow(RHumidity2, 2))+1.22874*(Math.pow(10, -3))*(Math.pow(heatdew.tempair2.value, 2))*RHumidity2+8.5282*(Math.pow(10, -4))*heatdew.tempair2.value*(Math.pow(RHumidity2, 2))-1.99*(Math.pow(10, -6))*(Math.pow(heatdew.tempair2.value, 2))*(Math.pow(RHumidity2,2));
            heatdew.answer.value = Math.round(hi2) + " F" +  " / " + Math.round((hi2 - 32) * .556) + " C";
            heatdew.RHumidity2.value = RHumidity2 + "%";
            }
            }
            }
            function clearF(form){
            form.Celsius.value="";
            form.tempf.value = "";
            }
            function clearC(form){
            form.Fahrenheit.value = "";
            form.tempc.value = "";
            }
            function clearwindchill(form){
            form.windchill.value = "";
            form.mph.value = "";
            form.intemp.value = "";
            }
            function clearwindchill_C(form){
            form.wcvalue_in_c.value = "";
            form.mph_C.value = "";
            form.intemp_C.value = "";
            }
            function clearhumidity(form){
            form.relativeh.value = "";
            form.airtemp.value = "";
            form.dewpointtemp.value = "";
            form.answer3.value = "";
            form.answer4.value = "";
            }
            function clearhumidity2(form){
            form.TheRHinPercent.value = "";
            form.rh_tcc.value = "";
            form.rh_tdcc.value = "";
            form.answer1.value = "";
            form.answer2.value = "";
            }
            function clearHI(form){
            form.tempair.value = "";
            form.RHumidity.value = "";
            form.heatindex.value = "";
            }
            function clearHIDEW(form){
            form.tempair2.value = "";
            form.RHumidity2.value = "";
            form.answer.value = "";
            }
            function clearHI(form){
            form.tempair.value = "";
            form.RHumidity.value = "";
            form.heatindex.value = "";
            }
            function clearHIDEW(form){
            form.tempair2.value = "";
            form.RHumidity2.value = "";
            form.answer.value = "";
            }
            function clearHI1_C(form){
            form.tempair.value = "";
            form.RHumidity.value = "";
            form.heatindex.value = "";
            form.dewpt2.value = "";
            }
            function clearHIDEW_c(form){
            form.tempair3.value = "";
            form.RH3.value = "";
            form.answer.value = "";
            form.dewpoint_c.value="";
            }
//-- END Heat Index END Heat Index END Heat Index END Heat Index END Heat Index 




//--  Start 5 Scale Temperature Conversion  

var arrFactors = new Array(6);

var prevValue = 0;

var prevBox = null;

var decimalPlaces = 3;

  arrFactors[1] = parseFloat('1');

  arrFactors[2] = parseFloat('1');

  arrFactors[3] = parseFloat('1');

  arrFactors[4] = parseFloat('1');

  arrFactors[5] = parseFloat('1');



function convertTemps(fromID, toID, val) {

  var FAHR_RANK_DIFF = 459.67;

  var CELS_KELV_DIFF = 273.15;  

  switch (fromID) {

  case 1: // deg Fahrenheit

    switch (toID) {

    case 1: return val;  // to deg Fahrenheit   

    case 2: return (val - 32) * 5 / 9;  // to deg Celsius

    case 3: return (val + FAHR_RANK_DIFF) / 1.8;  // to Kelvin

    case 4: return val + FAHR_RANK_DIFF; // to deg Rankine

    case 5: return (val - 32) * 4 / 9;  // to deg Reaumur

    }

  case 2: // deg Celsius

    switch (toID) {

    case 1: return val * 9 / 5 + 32;  // to deg Fahrenheit

    case 2: return val;  // to deg Celsius

    case 3: return val + CELS_KELV_DIFF;  // to Kelvin

    case 4: return val * 9 / 5 + 32 + FAHR_RANK_DIFF; // to deg Rankine

    case 5: return val * 8 / 10;  // to deg Reaumur

    }

  case 3: // Kelvin

    switch (toID) {

    case 1: return val * 1.8 - FAHR_RANK_DIFF;  // to deg Fahrenheit    

    case 2: return val - CELS_KELV_DIFF;  // to deg Celsius

    case 3: return val;  // to Kelvin

    case 4: return val * 1.8; // to deg Rankine

    case 5: return (val - CELS_KELV_DIFF) * 8 / 10;  // to deg Reaumur

    }

  case 4: // deg Rankine

    switch (toID) {

    case 1: return val - FAHR_RANK_DIFF;  // to deg Fahrenheit  

    case 2: return (val - FAHR_RANK_DIFF - 32) * 5 / 9;  // to deg Celsius

    case 3: return val / 1.8;  // to Kelvin

    case 4: return val; // to deg Rankine

    case 5: return (val - FAHR_RANK_DIFF - 32) * 4 / 9;  // to deg Reaumur

    }

  case 5: // deg Reaumur

    switch (toID) {

    case 1: return val * 9 / 4 + 32;  // to deg Fahrenheit      

    case 2: return val * 10 / 8; // to deg Celsius

    case 3: return val * 10 / 8 + CELS_KELV_DIFF;  // to Kelvin

    case 4: return val * 9 / 4 + 32 + FAHR_RANK_DIFF; // to deg Rankine

    case 5:return val;  // to deg Reaumur

    }   

  }

}



function roundDP(n, decplaces) {

  var t = Number('1e' + decplaces);

  return Math.round(n * t) / t;

}



function convert(form, id) {

  var val, fromFactor, i;  

  // start at 1 since 0 is temp element

  val = parseFloat(form[id].value);

  if (isNaN(val) || prevValue == val) return; 

  // highlight the new box for visibility

  if (form[id].style) {

    if (prevBox != null) {

      form[prevBox].style.color = '';

      document.getElementById('temp' + prevBox).style.fontWeight = 'normal';

    }

    form[id].style.color = '#0000ff';

    document.getElementById('temp' + id).style.fontWeight = 'bold';

  }

  prevBox = id;  

  if (val == '' || isNaN(val)) val = 0;

  fromFactor = arrFactors[id];  

  for (i = 1; i < form.length; i++)   

    if (i != id) form[i].value = roundDP(convertTemps(id, i, val), decimalPlaces); 

}



function enterBox(form, id) {

  prevValue = parseFloat(form[id].value);

}

// -->



 // Wind Speed
// clears field of default value
function clear_field(field) {
                if (field.value==field.defaultValue) {
                        field.value=''
                }
        }

function signifdig(num)
// Round string numeric content to 5 significant digits
{var ex=0;
if(num==0) {strin="0"; return strin;}
if(num<0.) {strin="-"; num = Math.abs(num);}
else strin="";
wsto = num;
if(num>=0){ 
while (num>=10) {num/=10; ex+=1;}
{erg = Math.round((wsto*Math.pow(10,4-ex)) / Math.pow(10,4-ex)*100)/100; strin+=eval(erg);}
}
return strin;}
        
function repsigdig(num,dv)
{
    if(num==0) {strin="0"; return strin;}
    strin=eval(Math.round(num*Math.pow(10.,dv))/Math.pow(10.,dv));
    return strin;
}

function calc(form,val,index)
{
if(index==0) v=val;               // m s-1
if(index==1) v=val/3.6;           // km h-1
if(index==2) v=val*(0.51+4/900);  // knots
if(index==3) v=val*0.44704;       // mi h-1
if(index==4) v=val*0.3048;        // ft s-1
if(index==5) v=val/60.;           // m min-1
if(index==6) v=val*0.3048/60.;    // ft min-1

form.ms.value=signifdig(v);                 // m s-1
var kmh=v*3.6;
form.kmh.value=signifdig(v*3.6);            // km h-1
var knot=v/(0.51+4/900);
form.knot.value=signifdig(knot);            // knot
form.mih.value=signifdig(v/0.44704);        // mi h-1
form.fts.value=signifdig(v/0.3048);         // ft s-1
form.mmi.value=signifdig(v*60.);            // m min-1
form.ftm.value=signifdig(v/0.3048*60.);     // ft min-1
beaufort(form,knot);
return;
}
function beaufort(form,knot)
{
if(knot<=1) form.bea.value=signifdig(0);
if(knot>1 && knot<3.5) form.bea.value=signifdig(1);
if(knot>=3.5 && knot<6.5) form.bea.value=signifdig(2);
if(knot>=6.5 && knot<10.5) form.bea.value=signifdig(3);
if(knot>=10.5 && knot<16.5) form.bea.value=signifdig(4);
if(knot>=16.5 && knot<21.5) form.bea.value=signifdig(5);
if(knot>=21.5 && knot<27.5) form.bea.value=signifdig(6);
if(knot>=27.5 && knot<33.5) form.bea.value=signifdig(7);
if(knot>=33.5 && knot<40.5) form.bea.value=signifdig(8);
if(knot>=40.5 && knot<47.5) form.bea.value=signifdig(9);
if(knot>=47.5 && knot<55.5) form.bea.value=signifdig(10);
if(knot>=55.5 && knot<63.5) form.bea.value=signifdig(11);
if(knot>=63.5) form.bea.value=signifdig(12);

return;
}
//-->

<!--  Start Marine Traffic --> 

       width=820;          //the width of the embedded map in pixels or percentage
       height=700;         //the width of the embedded map in pixels or percentage
       border=0;           //the width of border around the map. Zero means no border
       notation=true;     //true or false to display or not the vessel icons and options at the left
       latitude=37.5184;   //the latitude of the center of the map in decimal degrees
       longitude=-123.0469;  //the longitude of the center of the map in decimal degrees
       zoom=8;            //the zoom level of the map. Use values between 2 and 17
       trackvessel=0;      //the MMSI of the vessel to track, if within the range of the system
 //-->                       


<!--  Start Climate Prediction Center -->

   function show_tab(nam)
   {
    document.getElementById("TAB610dayToutlook").style.display= "none";
    document.getElementById("TAB610dayPoutlook").style.display= "none";
    document.getElementById("TAB814dayToutlook").style.display= "none";
    document.getElementById("TAB814dayPoutlook").style.display= "none";
    document.getElementById("TAB30dayToutlook").style.display= "none";
    document.getElementById("TAB30dayPoutlook").style.display= "none";
    document.getElementById("TAB90dayToutlook").style.display= "none";
    document.getElementById("TAB90dayPoutlook").style.display= "none";
    document.getElementById("TABhazardstw").style.display= "none";
    document.getElementById("TABhazardsp").style.display= "none";
    document.getElementById("TABhazardssw").style.display= "none";
    document.getElementById("TABhazardcomp").style.display= "none";
    document.getElementById("TABdroughtmonitor").style.display= "none";
    document.getElementById("TABseasonaldrought").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
  //-->


<!--  Start River Center -->

   function show_tab2(nam)
   {
    document.getElementById("RIVER1").style.display= "none";
    document.getElementById("RIVER2").style.display= "none";
    document.getElementById("RIVER3").style.display= "none";
    document.getElementById("RIVER4").style.display= "none";
    document.getElementById("RIVER5").style.display= "none";
    document.getElementById("RIVER6").style.display= "none";
    document.getElementById("RIVER7").style.display= "none";
    document.getElementById("RIVER8").style.display= "none";
    document.getElementById("RIVER9").style.display= "none";
    document.getElementById("RIVER10").style.display= "none";
    document.getElementById("RIVER11").style.display= "none";
    document.getElementById("RIVER12").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
  //-->

<!--  Start State Center -->

   function show_tab3(nam)
   {
    document.getElementById("STATE1").style.display= "none";
    document.getElementById("STATE2").style.display= "none";
    document.getElementById("STATE3").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
  //-->


<!--  Start Hourly Roundup Center -->

   function show_tab4(nam)
   {
    document.getElementById("HOURLY1").style.display= "none";
    document.getElementById("HOURLY2").style.display= "none";
    document.getElementById("HOURLY3").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
  //-->

<!--  Start Weather Story -->

   function show_tab5(nam)
   {
    document.getElementById("WXstory1").style.display= "none";
    document.getElementById("WXstory2").style.display= "none";
    document.getElementById("WXstory3").style.display= "none";
	document.getElementById("WXstory4").style.display= "none";
    document.getElementById("WXstory5").style.display= "none";
    document.getElementById("WXstory6").style.display= "none";
	document.getElementById("WXstory7").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
  //-->

<!--  Start AQI Center -->
function show_tab_AQI(nam)
   {
    document.getElementById("AQI_MAPs1").style.display= "none";
    document.getElementById("AQI_MAPs2").style.display= "none";
    document.getElementById("AQI_MAPs3").style.display= "none";
    document.getElementById("AQI_MAPs4").style.display= "none";
    document.getElementById("AQI_MAPs5").style.display= "none";
    document.getElementById("AQI_MAPs6").style.display= "none";
    document.getElementById("AQI_MAPs7").style.display= "none";
    document.getElementById("AQI_MAPs8").style.display= "none";
    document.getElementById("AQI_MAPs9").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
//-->
<!--  Start AQI Forecast Center -->
function show_tab_AQI_forecast(nam)
   {
    document.getElementById("AQI_forecast1").style.display= "none";
    document.getElementById("AQI_forecast2").style.display= "none";
    document.getElementById("AQI_forecast3").style.display= "none";
	document.getElementById("AQI_forecast4").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
//-->
<!--  Start AQI Center -->
function show_tab_Discussion(nam)
   {
    document.getElementById("Discussion0").style.display= "none";
    document.getElementById("Discussion1").style.display= "none";
    document.getElementById("Discussion2").style.display= "none";
    document.getElementById("Discussion3").style.display= "none";
    document.getElementById("Discussion4").style.display= "none";
    document.getElementById("Discussion5").style.display= "none";
    document.getElementById("Discussion6").style.display= "none";
    document.getElementById("Discussion7").style.display= "none";
    document.getElementById("Discussion8").style.display= "none";
	document.getElementById("Discussion9").style.display= "none";
    document.getElementById("Discussion10").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
//-->
<!--  Start State Center -->

   function show_tab_wxQ(nam)
   {
    document.getElementById("WXQ1").style.display= "none";
    document.getElementById("WXQ2").style.display= "none";
    document.getElementById("WXQ3").style.display= "none";
	document.getElementById("WXQ4").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
  //-->
<!--  Start State Center -->

   function show_tab_MAPwxQ(nam)
   {
    document.getElementById("mapWXQ1").style.display= "none";
    document.getElementById("mapWXQ2").style.display= "none";
    document.getElementById(nam).style.display = "block";
   }
  //-->

//Jump menu function written by Macromedia
//Used in the selectbox on forecast-detail.asp to toggle between foreacst days
function MM_jumpMenu(targ,selObj,restore)
{ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}
 //-->
 
 