function BGNew(obj, new_style, message) { 
obj.className = new_style; 
window.status = message; 
} 

function popup(url,height,width,xscroll)
{

// sniff screen resolution.  Make popup window a specific size at different screen resolutions. 
var screenH = screen.height;
var orig_height = height;

  if (document.layers || document.all || document.getElementsByTagName) 
	{
		if (screenH == "600")
		{
			height="435";
			width="740";
		}
		if (screenH < "769" && screenH > "600")
		{
			height="435";
			width="740";
		}
		if (screenH > "1023")
		{
			height="435";
			width="740";
		}
		
		if (orig_height < height)
		{
			height=orig_height;
		}		
		
		windowOpener = window.open(url,"win","toolbar=0,location=0,directories=0,statusbar=0,resizable=0,menubar=0,width="+width+",height="+height+",scrollbars="+xscroll);
    windowOpener.focus();
    return false;
	} 
  else 
	{
    return true;
  }
}


