contentFile = 'entire.html';
var expression = /(\?anchor=)(.+)/;
var compare = location.search;
var result = compare.match(expression);

//the following is only a test statement
//document.write(location.search + '<BR>');
//document.write(expression + '<BR>');
//document.write(result[0] + '<BR>');
//document.write(result[1] + '<BR>');
//document.write(result[2] + '<BR>');

if (location.search == ''){
	var place = 'philosophy.html';
}
else {
	switch(location.search){
		case '?anchor=esup': place = contentFile + '#esup'; break;
		case '?anchor=isub': place = contentFile + '#isub'; break;
		case '?anchor=msub': place = contentFile + '#msub'; break;
		case '?anchor=esub': place = contentFile + '#esub'; break;
		case '?anchor=erev': place = contentFile + '#erev'; break;
		case '?anchor=diff': place = contentFile + '#diff'; break;
		default: place = result[2]; break;
		}
}

document.write('<frameset rows="140, *" frameborder="0" framespacing="0" border="0">\n');
document.write('<frame src="etrans_head.html" noresize scrolling="no" frameborder="no" name="header">\n');
document.write('<frameset cols="175, *" frameborder="no" framespacing="0" border="0">\n');
document.write('<frame src="etrans_nav.html" noresize scrolling="auto" frameborder="no" name="nav">\n');
document.write('<frame name="body" frameborder="no" src="' + place + '">\n');
document.write('</frameset>\n');
document.write('</frameset>\n');
//-->
