function popscreen(url,wwidth,wheight)
{
	if (wwidth>screen.availWidth) {
		popwidth=screen.availWidth;
	} else {
		popwidth=wwidth;
	}
	if (wheight>screen.availHeight) {
		popheight=screen.availHeight;
	} else {
		popheight=wheight;
	}
	newwindow=window.open(url,'name','height='+popheight+',width='+popwidth+'');
	if (window.focus) {newwindow.focus()}
}

function show_hide(the_layer)
{
  if(document.getElementById(the_layer))
  {
    if(document.getElementById(the_layer).style.display == 'none')
    {
      document.getElementById(the_layer).style.display = 'inline';
    }
    else
    {
      document.getElementById(the_layer).style.display = 'none';
    }
  }
}

function updateslist(command)
{
  if(command == 'expand')
  {
    document.getElementById('siteupdates').style.display = 'inline';
		document.getElementById('expandlink').style.display = 'none';
  }
  else
  {
    document.getElementById('siteupdates').style.display = 'none';
		document.getElementById('expandlink').style.display = 'inline';
  }
}
