function prev(n) {
	if (n == 1) {
		location.href = "index.php#top";
	} else {
		location.href = "page" + n + ".php#top";
	}
}

function next(n) {
	location.href = "page" + n + ".php#top";
}