function openWindow(url) 
{
	tallWin = window.open(url, 'ASMF', 'width=750,height=630,toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=0,resizable=1,fullscreen=no');
}

function openThumb(url,spawnWidth,spawnHeight) 
{
	var spawnWidthwin = spawnWidth + 20;
	var spawnHeightwin = spawnHeight + 20;
    thumbWin = window.open(url,'AMSF','toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=0,resizable=1,width='+spawnWidthwin+',height='+spawnHeightwin+',fullscreen=no');
    if (navigator.appName == 'Netscape') {
	    thumbWin.focus();
    };
	thumbWin.document.open();
	thumbWin.document.write('<html><head><title>Lowell Cain</title></head><body background="images/body_bg.jpg"><a href="javascript:self.close();"><img src="');
	thumbWin.document.write(url);
	thumbWin.document.write('" alt="" border="0" /></a></body></html>');
	thumbWin.document.close();
};

function popup(mylink, windowname)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
	return false;
};

function calc_popup(mylink, widthp, heightp)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, 'calcwindow', 'width='+widthp+',height='+heightp+',status=no,scrollbars=no,resizable=yes');
	return false;
};

function fm_popup(mylink)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, 'fmwindow');
	return false;
};

function onboard_popup(mylink)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, 'onboardwindow', 'width=400,height=200,status=no,scrollbars=no,resizable=yes');
	return false;
};

function targetopener(mylink, closeme, closeonly)
{
	if (! (window.focus && window.opener))return true;
	window.opener.focus();
	if (! closeonly)window.opener.location.href=mylink.href;
	if (closeme)window.close();
	return false;
}

