
//function popup(url) 
//{
// var width  = 300;
// var height = 200;
// var left   = (screen.width  - width)/2;
// var top    = (screen.height - height)/2;
// var params = 'width='+width+', height='+height;
// params += ', top='+top+', left='+left;
// params += ', directories=no';
// params += ', location=no';
// params += ', menubar=no';
// params += ', resizable=no';
// params += ', scrollbars=no';
// params += ', status=no';
// params += ', toolbar=no';
// newwin=window.open(url,'test', params);
// if (window.focus) {newwin.focus()}
// return false;
//}

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=400,height=200,scrollbars=no');
return false;
}

function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}

function rainwater_label()
{
    alert("Rainwater Basin - click for more information");
}

