function popup(link, windowname, width, height, left, top) {
	if (! window.focus)return true;
	var href;
	if (!width) width=400;
	if (!height) height=300;
	if (!left) left=25;
	if (!top) top=25;
	if (typeof(link) == 'string')
	   href=link;
	else
	   href=link.href;
	   window.open(href, 'windowname', 'width='+width+',height='+height+',dependent=no,left='+left+',top='+top+',scrollbars=yes,resizable=yes');
  return false;
}

function MM_showHideLayers() {
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
