function frameload(urlstr) {
	if (urlstr != '') {
		loadfrset(urlstr, parent.parent);
	} else {
		urlstr = self.location.href;
		while (urlstr.indexOf("&") != -1) {
			urlstr = urlstr.replace(/&/,"___");
		}
		loadit(urlstr, parent);
        }
}

function loadit(gotourl, frame) {
	if (!frame.Navigation) {
		top.location.replace("/index.php?url=" + gotourl);
	}
}

function loadfrset(navurl, frame) {
    if (!frame.Navigation) {
        urlstr = self.location.href;
        while (urlstr.indexOf("&") != -1) {
	    urlstr = urlstr.replace(/&/,"___");
	}
	top.location.replace("/index.php?navi="+navurl+"&content="+urlstr);
    }
}