// JavaScript Document

// called by the framed pages
function checkFrame(section) {
	if (top.location == location) {
		top.location.href = '../index.html#' + section;//document.location.href ;
	}
}

//called by main index
function checkFrameHash() {
	var hashRegex = new RegExp("^#[a-zA-Z]+$");
	if (hashRegex.test(window.location.hash)) { // see if hash is valid
		var newLoc = window.location.hash.substring(1);
		frames['mainFrame'].location.href = newLoc;
	}
}