/*
The code to include this script in your web page is: 
<script language="JavaScript" src="BreakFrames.js"></script> 
It should be placed within the <head> section of your web page. 

The function FrameBreakout() checks to see if the URL of the topmost window is the same as the URL of
the current window.  If it is not the same, it sets it to be that of the current window, effectively 
loading the URL into the top window and removing the enclosing frames. 

To use the function automatically, you will have to call the script in the "body" tag: 
<body onload="FrameBreakout()">
... (the rest of the document) ...
</body>

Or if you're already using frames in your document and wish to breakout of enclosing frames, call the 
script in the "frameset" tag:
<frameset cols="XX,YY" onload="FrameBreakout();">
... (frame definitions) ...
</frameset>
*/ 

function FrameBreakout() {
//	alert ("top.location="+ top.location + "    document.location=" + document.location);
	if (top.location.href != document.location.href) {
		top.location.href = document.location.href;
	}
}

