// --- check if frames are valid  --- 
function checkFrames(){
	var host = "http://" + window.location.host;
	var url = document.URL.substring(host.length + 1, document.URL.length);
	url = escape(url);
	url = url.replace(/%23/,"#");
	if (arguments.length > 0) url = (arguments[0] != '') ? arguments[0] : url;
	if (top.frames.length < 2) {
		location.replace('index.asp?mfID=' + url);
	}
}