<!--

var w = -1;
w = screen.width;
var h = -1;
h = screen.height;
var newWindow = null;

function pop(url, arg_winWidth)
{
	if (newWindow != null)
	{
		newWindow.close();
	}
	var winWidth = (arg_winWidth == null) ? 550 : arg_winWidth;
	if (w == -1)
	{
		newWindow = window.open(url,'name','height=600, width=' + winWidth + ', scrollbars=yes, resizable=yes');
	}
	else
	{
	//	winWidth = Math.min(w, winWidth + 8);
		fromLeft = w - winWidth - 8;
	//	fromLeft = w - winWidth;
		winHeight = h - 120;
		newWindow = window.open(url,'name','height=' + winHeight + ', width=' + winWidth + ', top=0, left = ' + fromLeft + ', scrollbars=yes, status=yes, resizable=yes');
	}
/*	switch (w)
	{
		case 640:
			newwindow = window.open(url,'name','height=380, width=450, top=0, left = 190, scrollbars=yes, status=yes, resizable=yes');
		case 800:
			newwindow = window.open(url,'name','height=500, width=450, top=0, left = 350, scrollbars=yes, status=yes, resizable=yes');
		case 1024:
			newwindow = window.open(url,'name','height=668, width=450, top=0, left = 574, scrollbars=yes, status=yes, resizable=yes');
		case 1280:
			newwindow = window.open(url,'name','height=700, width=450, top=0, left = 820, scrollbars=yes, status=yes, resizable=yes');
		default:
			newwindow = window.open(url,'name','height=600, width=450, scrollbars=yes, resizable=yes');
	}
*/
	// fully functional window:
	// , location=yes, menubar=yes, scrollbars=yes, status=yes, toolbar=yes, resizable=yes'
	if (window.focus)
	{
		newWindow.focus();
	}
	return false;		//prevent browser from following link
}

-->
