<!-- hide JavaScript from old browsers

/*************************************
 *                                   *
 *    Pass HAMweather Script Data    *
 *                                   *
 *************************************/
 

function passData() {

 	hwconfig = window.document.getforecast.config.value;
 	hwforecast = window.document.getforecast.forecast.value;
 	hwpands = window.document.getforecast.pands.value;
	
 	if (hwpands == "") {
 		alert('Please enter your US zip code, "City, State" or ICAO code.');
 		return;
 	}
	
	if ((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1))
	{
		// IE7 Browser
		popToolbar='no';
		popLocation='yes';
	}
	else
	{
		// All non-IE7 Browsers
		popToolbar='yes';
		popLocation='no';
	}
	
	
	// Open blank popup with Loading... message first.
	weatherWin=window.open('blank','popup','top=10,left=10,width=720,height=510,toolbar='+popToolbar+',location='+popLocation+',directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no');
	
	weatherWin.document.open();
    weatherWin.document.write('<html><head>');
    weatherWin.document.write('<title>BestDeckSite Weather</title>')
    weatherWin.document.write('<link rel="stylesheet" href="http://www.bestdecksite.com/style_sheets/font_styles3.css">');
    weatherWin.document.write('</head>')
    weatherWin.document.write('<body>');
	weatherWin.document.write('<br><br>');
	weatherWin.document.write('<p align="center">Loading weather...</p>');
    weatherWin.document.write('</body></html>');
    weatherWin.document.close();
	
	
	// Fill Loading window with weather.
	weatherWin=window.open('http://www.bestdecksite.com/cgi-bin/hamweather/hw3.cgi?config=' + hwconfig + '&forecast=' + hwforecast + '&pands=' + hwpands,'popup','top=10,left=10,width=720,height=510,toolbar='+popToolbar+',location='+popLocation+',directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no');
	
	// Important to keep focus statement separate.
	if( weatherWin.focus ) { weatherWin.focus(); }
	
}

// end hiding JavaScript -->
