var dotmagwindow;
this.window.name = "main"

function customPopup(width,height,scrollbars,resizeable,url)
	{
	help=window.open(url, "Detail", "width=" + width + ",height="+ height +",top=50,left=50,scrollbars="+ scrollbars +",resizable="+ resizeable +"");
	if (help.opener == null) help.opener = window;
	help.focus();
	}

function popup(url)
	{
	help=window.open(url, "Detail", "width=500,height=400,scrollbars=yes,resizable=yes");
	if (help.opener == null) help.opener = window;
	help.focus();
	}
	function popup2(url)
	{
	help=window.open(url, "Detail", "width=400,height=470,scrollbars=yes,resizable=yes");
	if (help.opener == null) help.opener = window;
	help.focus();
	}
	
	function flashpop(url)
	{
	help=window.open(url, "Detail", "width=711,height=500,top=50,left=50,scrollbars=no,resizable=no");
	}
	
	function navpop(url)
	{
	nav=window.open(url, "Navigator", "width=640,height=510,scrollbars=yes,resizable=yes");
	if (nav.opener == null) nav.opener = window;
	nav.focus();
	}

function fullscreenpopup(url) {

	if (typeof(dotmagwindow) != "undefined" && !dotmagwindow.closed) {
		dotmagwindow.location=url;
		dotmagwindow.focus();
	}

  var w = screen.availWidth-10;
  var h = screen.availHeight-20;
  var features = "width="+w+",height="+h+",";
  features += "left=0,top=0,screenX=0,screenY=0";

  dotmagwindow=window.open(url, "", features);
}