/*                                                               */
/* javascript functions used by support pages                    */
/* Last updated by: Timothy Adams                                */
/* Last updated on: 2006/07/27                                   */
/*                                                               */

var supportFuncs = {

	showAccess: function ()
	{
		var id='accessPopUp';
		document.getElementById(id).style.display = 'block';
	},

	hideAccess: function ()
	{
		var id='accessPopUp';
		document.getElementById(id).style.display = 'none';
	},

	OpenWindow: function (url,winname)
	{
		var winwidth = screen.width - 5;
		var winheight = screen.height - 85;
		var featurelist = "location=0,directories=0,toolbar=0,status=1,"
		featurelist = featurelist + "hotkeys=0,resizable=0,menubar=0,"
		featurelist = featurelist + "scrollbars=1,top=0,left=0,"
		featurelist = featurelist + "screenX=0,screenY=0,"
		featurelist = featurelist + "width=" + winwidth + ",height=" + winheight
		window.open(url, winname, featurelist)
	},
	
	ctOpenWindow: function (url,param,winname)
	{
		var cturl = url + '?' + param;
		var winwidth = screen.width - 5;
		var winheight = screen.height - 85;
		var featurelist = "location=0,directories=0,toolbar=0,status=1,"
		featurelist = featurelist + "hotkeys=0,resizable=0,menubar=0,"
		featurelist = featurelist + "scrollbars=1,top=0,left=0,"
		featurelist = featurelist + "screenX=0,screenY=0,"
		featurelist = featurelist + "width=" + winwidth + ",height=" + winheight
		window.open(cturl, winname, featurelist)
	},

	devOpenWindow: function (url,winname)
	{
		var winwidth = screen.width - 5;
		var winheight = screen.height - 85;
		var featurelist = "location=0,directories=0,toolbar=0,status=1,"
		featurelist = featurelist + "hotkeys=0,resizable=1,menubar=0,"
		featurelist = featurelist + "scrollbars=1,top=0,left=0,"
		featurelist = featurelist + "screenX=0,screenY=0,"
		featurelist = featurelist + "width=" + winwidth + ",height=" + winheight
		window.open(url, winname, featurelist)
	}
};