var popupArgs	= 'resizable=yes,scrollbars=yes,location=yes';

var ourWindow;

function ecologylabPopup(href, width, height)
{
   if (!width)
	width	= Math.min(screen.availWidth, 860);
   if (!height)	
   	height	= Math.min(screen.availHeight, 680);
   ourWindow = popup10(href, 'ecologylab_content', width, height, popupArgs, true);
}

function ecologylabGetWin()
{
   var width	= Math.min(screen.availWidth, 860);
   var height	= Math.min(screen.availHeight, 680);
   ourWindow = getWin('ecologylab_content', width, height, popupArgs, true);
   return ourWindow;
}
function ecologylabSetTarget(that)
{
   var thatWin = ecologylabGetWin();

   var aElements = document.getElementsByTagName("a");
   for (x in aElements)
	  x.target	= thatWin;
}

function siiPopup(href)
{
   ecologylabPopup(href);
}

function popupListSignup(site)
{
  var href = "http://www.csdl.tamu.edu/mailman/listinfo/" + site + "/";
  siiPopup(href);
}

function popupListArchives(site)
{
//  var href = "http://www.csdl.tamu.edu/pipermail/" + site + "/";
  var href = "http://www.csdl.tamu.edu/mailman/private/" + site + "/";
  siiPopup(href);
}

function marginHack(ref)
{
    var moz = (typeof document.implementation != 'undefined') && (typeof
     document.implementation.createDocument != 'undefined');
    var ie = (typeof window.ActiveXObject != 'undefined');
        
	if (moz)
	{
	   ref.style.setAttribute("margin", "0px 0px 50px 35px");
	}
	else if (ie)
	{
	}
}
