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

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