<HTML><HEAD>
<!--
-----------------
Window Controller
-----------------
-->
<TITLE>FrameControl</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!-- hide from old browsers
/*
THE JAVASCRIPT COOKBOOK by Erica Sadun, webrx@mindspring.com
Copyright (c)1998 by Charles River Media. All Rights Reserved.
This applet can only be re-used or modifed by license holders of the
JavaScript Cookbook CD-ROM. Credit must be given in the source
code and this copyright notice must be maintained. If you do
not hold a license to the JavaScript Cookbook, you may NOT
duplicate or modify this code for your own use.
Use at your own risk. No warranty is given or implied of the suitability
of this applet for any specific application. Neither Erica Sadun nor
Charles River Media will be held responsible for any unwanted effects
due to the use of this applet or any derivative.
*/
<!-- done hiding --></SCRIPT></HEAD>
<BODY bgcolor="000000"><SCRIPT>
if (self.opener == null)
{
if (self.history.length > 1)
{
alert('There is no main window associated with this remote. '+
'The remote control will now back up to the previous window.')
self.history.go(-1)
}
else
{
alert('This remote control has no main window. '+
'This remote will now close.')
self.close()
}
}
// Create the options for the frame selection
function recurseFrames(aFrame, path)
{
var which = aFrame.name
if (which != "")
document.writeln("<OPTION>"+path+'.'+which)
else
document.writeln("<OPTION>[window]")
// recurse the children
for (var i = 0; i < aFrame.frames.length; i++)
recurseFrames(aFrame.frames[i], path+which)
}
// Create the selection list
function createSelect()
{
document.writeln('<FORM><SELECT NAME="frames" SIZE="1">')
recurseFrames(self.opener.top, "")
document.writeln('</SELECT></FORM>')
}
// Go Back function
function doBack()
{
which = document.forms[0].frames.selectedIndex
what = document.forms[0].frames[which].text
if (what == '[window]') what = ""
eval("self.opener"+what+".history.back()")
}
// Reload a Frame function
function doReload()
{
which = document.forms[0].frames.selectedIndex
what = document.forms[0].frames[which].text
if (what == '[window]') what = ""
eval("self.opener"+what+".history.go(0)")
}
// Go Forward function
function doForward()
{
which = document.forms[0].frames.selectedIndex
what = document.forms[0].frames[which].text
if (what == '[window]') what = ""
eval("self.opener"+what+".history.forward()")
}
</SCRIPT><CENTER><IMG SRC="../GRAFX/REMOTE2.GIF" width=136 height=59
usemap="#map" border=0><MAP name="map"
><AREA SHAPE=rect HREF="javascript:doBack()"
COORDS="20,19, 52,41"
><AREA SHAPE=rect HREF="javascript:doReload()"
COORDS="52,19, 84,41"
><AREA SHAPE=rect HREF="javascript:doForward()"
COORDS="84,19, 116,41"></MAP
><SCRIPT>createSelect()</SCRIPT
><!-- Copyright ©1996 by Charles River Media
--></BODY></HTML>