<!--
//Copyright 2000 RBC & Associates

var videoWindow = null;


function NewWin(pageURL,pagename,winopts) //tutorial window
{
OpenWin (pageURL, "TutorialWin", 500, 750, 1, 0, 0);
}

function CloseWin() {  //close window this window opened 
if (videoWindow)
videoWindow.close();
}

function CloseW() //works in netscape, still has problems in ie
{
var test=true;
var check=true;

if (opener.closed){
 test=confirm("You have closed the window that opened this one. Are you sure you want to close?");
check=false; //if there is no opener, don't focus on it
}
 
if (window.name=="calculatorWin"){
test=confirm ("Are you sure you want to end your session?");
 if (test && !check){ //open new home page window
  videoWindow = window.open("");
  videoWindow.location.href="http://www.rbca.net";
  this.opener=videoWindow;
  check=true;
  }
 }

if (test){
window.close();
 if (check)
 opener.focus();
}
}




function FAQWin (anchor) { //internal FAQ navigation
if (body)
body.location.hash=anchor;
}

function GlossaryWin (anchor){ //open frameset for glossary
       
	var winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,";
	winopts += "height=448,width=616,scrollbars=1,screenX=50,screenY=50,top=50,left=50";

	videoWindow = window.open("","glossarywin",winopts);
if (videoWindow.opener == null) videoWindow.opener = self;
  videoWindow.focus();
if (videoWindow.body)
videoWindow.body.location.hash=anchor;
else{

videoWindow.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'><HTML><HEAD>");
videoWindow.document.write("<TITLE>Glossary</TITLE>");
videoWindow.document.write("<script language='javascript' src='./rbcawin.js'></script></head>");
videoWindow.document.write("<FRAMESET BORDER=0 FRAMESPACING=0 FRAMEBORDER=0 rows='189,*'>");
videoWindow.document.write("<FRAME NAME='header' SRC='./header_temp.asp' SCROLLING=AUTO MARGINWIDTH='2' MARGINHEIGHT='1' FRAMEBORDER=NO BORDER='0' target='_parent'>");
videoWindow.document.write("<FRAME NAME='body' SRC='./body_temp.asp#"+anchor+"'SCROLLING=AUTO MARGINWIDTH=2 MARGINHEIGHT=2 target='_parent'>");
videoWindow.document.write("</FRAMESET></HTML>");
}
}

function HelpWin(pageURL,winname, height, width,x,y)
{
if (height=="")
height=448;
if (width=="")
width=616;
if (x=="")
x=30;
if (y=="")
y=30;
OpenWin (pageURL,winname,height,width,1,x,y);
}



function CalcWin(pageURL,winname)
{
OpenWin (pageURL, winname, 536, 760, 1, 0, 0);	
}
    

function OpenWin(url,winname,height,width,scrollbars,x,y)
{
	var winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,";
	winopts += "height=" + height + ",width=" + width + ",scrollbars=" + scrollbars +",screenX=" + x + ",screenY=" + y + ",top=" + x + ",left=" + y;
	videoWindow = window.open("",winname,winopts);
	videoWindow.location.href=url;
if (videoWindow.opener == null) videoWindow.opener = self;
  videoWindow.focus();

	  
	if( navigator.appVersion.indexOf("MSIE") == -1 )
	  videoWindow.mainWin = this; //what's this do?
	  
}



function popup(url, name, height, width, scrollbars)
{
	var popwin;
	var opts = "toolbar=no,status=no,location=no,menubar=no,resizable=no,";
	opts += "height=" + height + ",width=" + width + ",scrollbars=" + scrollbars;
	
	popwin = window.open("", name, opts);
	
	popwin.focus();
	
	popwin.location = url;
	
}




//--> 


