Shifting focus between the multiple Windows

<SCRIPT>

/*
create two variables & fill them with the window.open command and their respective parameters.  
*/

mapWindow = open('images/barnum.gif', 'mapWin', 'top=0,left=0,width=475,height=425')

directionsWindow = open('dir.htm', 'pageWin', 'top=0,left=0,width=300,height=325')

// the script pulls the directionsWindow to the front of the layers of windows

function directionsToFront() {

directionsWindow.focus()

}

</SCRIPT>

<BODY>

NOTE:  by clicking on the first link the mapWindow is moved to the front of the layers of windows by using the window method focus()

<A HREF="javascript:mapWindow.focus()">Look at the map</A>

NOTE: by clicking on the second link you are calling the function directionsToFront() to bring the appropriate child window the very front

<A HREF="javascript:directionsToFront()">Look at the directions</A>