//<script language="JavaScript">

// Adapted by WinWriters & fec from Microsoft Hotmail Help Pane

var h_win
var help_w, help_h, help_l, help_t

function DoHelp()
{
	//name the window, so that topic from Help window can change URL of main app window.
	window.name="fecMain";
	
	//set defaults for Help window size (for browsers that don't access the screen object
	help_w=230;help_h=460;help_l=640-help_w;help_t=0;
	
	//bScreen is set by ASP page.  If using 4+ browser can do screen object stuff
	//sets the window dressing used in open window.open call
	//alert('bScreen: '+bScreen)
	if(bScreen == true)
	{
		if (agent_isMac==true)
		{
			if(agent_isAOL==true)
			{
				WIDTH = 248
			}
			else
			{
				WIDTH = 255
			}
		}
		else
		{
			if(screen.width <= 800)
			{
				WIDTH = 180
				//alert(WIDTH)
			}
			else
			{
				WIDTH = 230
			}
		}
		help_w = WIDTH;
		help_h = screen.availHeight;
		help_l = screen.availWidth - WIDTH;
		w_dressing = "toolbar=0,status=0,menubar=0,width="+help_w+",height="+help_h+",left="+help_l+",top="+help_t+",resizable=1"
	}
	else
	{
		w_dressing = "toolbar=0,status=0,menubar=0,width="+help_w+",height="+help_h+",,,resizable=1"
	}

myURL = "/help/net.oecv"


	//check for bScreen (4+ browser) since IE3 and Nav3 puke on close
	if(bScreen == true & agent_isIE == true & h_win != null & agent_isMac == false)
	{
		h_win.close()
	}	
	//open the help window with URL and dressing and named _help
	h_win=window.open(myURL,"_help", w_dressing);
	
	//resize the main window to make room for docked help pane
	if (bScreen == true)
	{
		if (agent_isMac==true)
		{
			mac_heightoffset = 1.7
			if (agent_isAOL==true)
			{	
				aoltoolbar = 70
			}
			else
			{
				aoltoolbar=0
			}
			startbarH = (screen.height-screen.availHeight)
			startbarW = (screen.width-screen.availWidth)
		}
		else
		{
			mac_heightoffset = 0
			if (agent_isAOL==true)
			{
				aoltoolbar=105
			}
			else
			{
				aoltoolbar=0
			}
			startbarH = 0
			startbarW = 0

		}
		startbarH=startbarH
		startbarW=startbarW
		if(agent_isNS==true)
		{
			top.window.resizeTo(screen.availWidth - WIDTH - (window.outerWidth - window.innerWidth), screen.availHeight - (window.outerHeight-window.innerHeight))
		}
		else
		{
			top.window.resizeTo(screen.availWidth - WIDTH - startbarW*4, screen.availHeight - startbarH-aoltoolbar)
		}
		top.window.moveTo(0,(startbarH * mac_heightoffset)+aoltoolbar)
	}
}

function CloseHelp()
{
	//resize the main window to its maximum size
	if (bScreen == true)
	{
		if (agent_isMac==true)
		{
			mac_heightoffset = 1.7
			if (agent_isAOL==true)
			{	
				aoltoolbar = 70
			}
			else
			{
				aoltoolbar=0
			}
			startbarH = (screen.height-screen.availHeight)
			startbarW = (screen.width-screen.availWidth)
		}
		else
		{
			mac_heightoffset = 0
			if (agent_isAOL==true)
			{
				aoltoolbar=105
			}
			else
			{
				aoltoolbar=0
			}
			startbarH = 0
			startbarW = 0

		}
		startbarH=startbarH
		startbarW=startbarW
		if(agent_isNS==true)
		{
			top.window.resizeTo(screen.availWidth - (window.outerWidth - window.innerWidth), screen.availHeight - (window.outerHeight-window.innerHeight))
		}
		else
		{
			top.window.resizeTo(screen.availWidth - startbarW*4, screen.availHeight - startbarH-aoltoolbar)
		}
		top.window.moveTo(0,(startbarH * mac_heightoffset)+aoltoolbar)
	}
//close the Help pane
h_win.close()

}

