// mf_popup: Opens a popup window
//
function open_popup(url, title)
{
	var NewWindow = window.open(url,title,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=510,height=400')
	if(navigator.userAgent.indexOf("AOL")==-1)
	{
		// AOL doesn't display pop-ups correctly if they are moved.
		NewWindow.moveTo(94, 124);
	}
	NewWindow.focus();
}

function open_popup2(url, title, x, y, h, w)
{
	// If x is negative we'll allow scrollbars 
	if(x<0)
	{
		x = -x;
		var s = "yes";
		title = title + "x";
	}
	else
	{
		var s = "no";
	}

	// If y is negative we'll close the previous window
	if(y<0)
	{
		y = -y;
		parent.close();
	}
	
	var NewWindow = window.open(url,title,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + s + ',resizable=no,width='+ w +',height='+h)

	if(navigator.userAgent.indexOf("AOL")==-1)
	{
		// AOL doesn't display pop-ups correctly if they are moved.
		NewWindow.moveTo(x, y);
	}
	NewWindow.resizeTo(w,h);
	NewWindow.self.focus();
}

function open_popup3(url, x, y, h, w) {
popupWin=window.open(url,'remote','width='+w+',height='+h+',top='+x+',left='+y)
}

function close_popup()  
{
  parent.close();
}

// close_popup_go: Closes the current popup and navigates the main window 
// to the URL passed on in the parameter.
function close_popup_go(x)  
{
  top.opener.location.href = x;
  parent.close(); 
}

// keep_popup_go: Keeps the current popup and navigates the main window 
// to the URL passed on in the parameter.
function keep_popup_go(x)  
{
  top.opener.location.href = x;
}

// close_popup_reload: Closes the current popup and reloads the parent window 
// to the URL passed on in the parameter.
function close_popup_reload()
{
//  top.opener.location.href = top.opener.location.href;
  top.opener.location.reload();
  parent.close(); 
}

// used for onclick links
function GoThere2(target) 
{ 
	top.window.location.href=target; 
}

// used for onclick links
function GoThere3(target) 
{ 
	var NewWindow = window.open(target,'','');
}

