//This insures the frames are inside the main Window and not direct linked
//Add this to the frame piece <body onLoad="topWin(url)">
//like this example -- topWin('http://www.yale.edu')
//Where url is the location of the main frameset

function topWin(url){
	if (window == top) top.location.href = url;
}


// Spawned windows need this added to the body tag
// <body onBlur="self.focus()">
// This keeps the window on top
// url must be inside 'url' in the function call

// Opens Spawned Window with to toolbar/location bar
function openWin(url) {
        spawn=window.open(url,"spawn","toolbar=no,width=600,height=475,scrollbars=yes,resizable=yes,menubar=no");
	;
}

//Opens Spawned Window with full location/toolbar

function openWinfull(url) {
        spawn=window.open(url,"spawn4","toolbar=yes,width=640,height=475,status=yes,scrollbars=yes,location=yes,resizable=yes,menubar=no");
	;
}

//Opens Video Window

function openVideo(url) {
        spawn=window.open(url,"video","toolbar=no,width=258,height=396,status=yes,scrollbars=no,resizable=no,menubar=no");
	;
}
