// Check if page is inside framest or not
// loc = 'index.html?' + loc.slice(loc.lastIndexOf('/') + 1);

function checkFrames(loc) {
	if ((top.name != 'long_range_frameset') && confirm("This page is missing its navigation menu.\nWould you like to load it now?")) {
		loc = 'index.html?' + loc;
		location.replace(loc);
	}
}

function getPageRef(loc) {
	if (loc.indexOf('?') == -1) {
		loc = "";
	}
	return loc;
}
