/*
General functions used in webpage loading/manipulation
*/

function break_frames () {
	//Break out of any frames
	if (parent.frames.length > 0) 
	{
	    parent.location.href = self.document.location
	}
}

function loadURLInTargetFrame(u, t) {
	var w = eval("self." + t);
	if (!w && myOpener) {w = eval("myOpener." + t);}
	if (!w && ("_top,_parent,_self".indexOf(t) >= 0)) {
		w = eval("getWindow()." + t.substring(1));}
	if (w) {w.location.href = u;} else {window.open(u, t);}
}
