function checkInFrame() {
	checkInFrameLoc('');
}


function checkInFrameLoc(newLoc) {
	if (window.self != window.top) {
		return;
	}
	if(newLoc == null || newLoc.length == 0) {
		loc = location.toString();
		idx = loc.lastIndexOf(".");
		if(idx==-1) {
			return;
		}
		newLoc = loc.substring(0, idx);
		newLoc += "_frame";
		newLoc += loc.substring(idx);
	}
	location = newLoc
}