function launch_wbm() {
	var width  = 500;
	var height = 200;
	var modWidth = screen.width * 0.9 ;
	var modHeight = screen.height * 0.9;
	
	var url = 'http://interface.waterbalance.ca/main.html?date=' + Date() + '&loc=PE';
	var left = (screen.width  - width) / 2;
	var top  = (screen.height - height)/ 2;
	
	
	var params = 'width='+modWidth+', height='+modHeight;
	params += ', top='+top+', left='+left;
	params += ', directories=no';
	params += ', location=no';
	params += ', menubar=no';
	params += ', resizable=yes';
	params += ', scrollbars=no';
	params += ', status=no';
	params += ', toolbar=no';
	
	// alert('Note: The Water Balance Model is in final testing.\n\nWhat you are about to use is the public Beta Trial version.\n\nThe final version will include some upgrades for functionality and consistency.\n\nThis Beta Trial version of the Water Balance Model should be used only for\nfamiliarization purposes until such time as it is replaced by the final version.');
	
	newwin=window.open(url,'wbm_container', params);
	if(window.focus) {
		newwin.focus();
	}
	
	return false;
}

function closeWBMFrame() {
	document.getElementById('wbm_container').className = 'unloaded';
	document.getElementById('wbm_iframe').src = '';
}