
/**
 * These functions are tentatively obsoleted. Suggest to use NewWindow() instead, as defined in common.js.
 *
 * Additional functions should NOT be added to this file.
 */


if(typeof sizedWindow === 'undefined')
{
	function sizedWindow(url, width, height)
	{
		newwin = window.open(url, "CrutchfieldPopup",
			"scrollbars=yes,resizable=yes,width=" + width +",height="
			+ height + ",left=200,top=100,screenX=200,screenY=100");
		if(typeof(window.focus) == 'function') {
			//delay a bit here because IE4 errors when trying to focus a recently opened window
			setTimeout('newwin.focus();',250);
		}
	}
}

if(typeof fixedSizedWindow === 'undefined')
{
	function fixedSizedWindow(url, width, height)
	{
		newwin = window.open(url, "CrutchfieldPopup",
			"scrollbars=yes,resizable=no,width=" + width +",height="
			+ height + ",left=200,top=100,screenX=200,screenY=100");
		if(typeof(window.focus) == 'function') {
			//delay a bit here because IE4 errors when trying to focus a recently opened window
			setTimeout('newwin.focus();',250);
		}
	}
}

if(typeof dictWindow === 'undefined')
{
	function dictWindow(term, group)
	{
		newwin = window.open("http://" + window.location.hostname + "/cgi-bin/glossary.asp?term=" + term + "&group=" + group,
			"dictionary",
			"scrollbars=yes,resizable=yes,width=400,height=250,left=300,top=100,screenX=300,screenY=100");
		if(typeof(window.focus) == 'function') {
			//delay a bit here because IE4 errors when trying to focus a recently opened window
			setTimeout('newwin.focus();',250);
		}
	}
}

/*========================================================*
 * Additional functions should NOT be added to this file! *
 *========================================================*/