
/**
	***---------------------------------------------------------***
	*	checkFrameset.js
	***---------------------------------------------------------***
	*	Artware Studios
	*	Send A Blessing
	*	8 September 2006	tb
	*	24 May 2007	tb	(index2.html introduced) 
	*	11 January 2008	tb	(function replaceEntireWindow added) 
	*
	*	This file is included in the <head> portion of all content pages within
	*   the frameset portion of the web site.
	*/

function replaceEntireWindow(theURL)
{//Similar to PHP function replaceWholeWindow() in  lib/LoginManager.php .
	parent.location = theURL;
}//function replaceEntireWindow(theURL)

//NOTE:  The following code MUST be omitted if dispensing with frameset.
//In that event, functions above are also unnecessary.
var pageURL = self.location;
var displayedURL = top.location;
if (pageURL == displayedURL)
{//Place the page in the mainFrame of the frameset by using  index2.html .)
	var mainFrameSRC = encodeURIComponent(pageURL);
	siteURL = '../../index2.html?' + mainFrameSRC;
	top.location.href = siteURL;	//NOTE: Check to make sure  top  works in all browsers.
}//if (pageURL == displayedURL)

