// $Header: /bld1/uabld/mcp7-meua-wa/web/ua/RCS/help.js,v 1.8 2005/07/15 00:10:53 uabld Exp $

var hwin = null;
var hwin_sms = null;
var hfile= "/me/mrhelp.html";
var hfile_sms= "/me/help_sms.html";
var hfile_dc= "/me/dchelp.html";

function dohelp_sms(loc)
{
	if(hwin_sms != null)
	{
		if(hwin_sms.closed == 1)
		{
			hwin_sms = window.open(hfile_sms+loc,"SMSHelp",'width=600,height=325,resizable,scrollbars,menubar=yes');
		}
		else
		{
			hwin_sms.focus();
			hwin_sms.location=hfile_sms+loc;
		}
	}
	else
	{
		hwin_sms = window.open(hfile_sms+loc,"SMSHelp",'width=600,height=325,resizable,scrollbars,menubar=yes');
	}
}

function dohelp(loc)
{
	if(hwin != null && !hwin.closed)
	{
		hwin.focus();
		hwin.location=hfile+loc;
	}
	else
	{
		hwin = window.open(hfile+loc,"",'width=600,height=325,resizable,scrollbars,menubar=yes');
	}
}

function dohelp_dc(loc)
{
	if(hwin != null && !hwin.closed)
	{
		hwin.focus();
		hwin.location=hfile_dc+loc;
	}
	else
	{
		hwin = window.open(hfile_dc+loc,"",'width=600,height=325,resizable,scrollbars,menubar=yes');
	}
}

function doopen(loc, name, features)
{
	window.open(loc,name,"width=600,height=325,resizable,status,scrollbars,menubar=yes");
}

function gethelp(loc)
{
	if(typeof(parent.menu) == "undefined")
	{
		path="/me/mrhelp.html" + loc;
		document.location = path;
	}
	else
	{
		parent.menu.dohelp(loc);
	}
}

function setmainwindow(file)
{
	parent.main.location=file;
}

function setmainpage(file)
{
	if(typeof(parent.menu) == "undefined")
		document.location = file;
	else
		parent.menu.setmainwindow(file);
}

