function popup(mylink, windowname,features)
{
	if(features)
	{
		window.open(mylink,windowname,features);
	}
	else
	{
	
		var winleft = (screen.width - 850) / 2;
		var winUp = (screen.height - 700) / 2;
	
	
	if (! window.focus)
		return true;
		
	var href;
	if(typeof(mylink) == "string")
	href=mylink;
	else
	href=mylink.href;
	window.open(href, windowname, "top="+((screen.height - 700) / 2)+",left=150,location=1,toolbar=1,status=1,resizable=1,Width=850,height=700,scrollbars=1");
	
	// This causes some browsers to go to a page that simply contains "false"
	//return false;
	
	}
}		

/* for IE navigation -- links don't work... */
function goTo(url)
{
	location.href=url;
}
