
function getPage(newPage) {
	var url = "browse.html?newPage=" + newPage;

	if($("#theatreId").length > 0 && $("#theatreId").val() != "") {
		url += "&theatreId=" + $("#theatreId").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "titleList") {
		url += "&type=titles";
	}
	else if($("#type").val() != "" && $("#type").val() == "subjectList") {
		url += "&type=subjects";
	}
	else if($("#type").val() != "" && $("#type").val() == "subjectRecordList") {
		url += "&type=subjects&name=" + $("#name").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "theatreRecordList") {
		url += "&type=theatre&id=" + $("#id").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "categoryRecordList") {
		url += "&type=category&id=" + $("#id").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "materialRecordList") {
		url += "&type=material&id=" + $("#id").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "decadeRecordList") {
		url += "&type=decade&decade=" + $("#decade").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "titleRecordList") {
		url += "&type=titles&id=" + $("#id").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "topicRecordList") {
		url += "&type=topic&id=" + $("#id").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "personRecordList") {
		url += "&type=person&id=" + $("#id").val();
	}
	else if($("#type").val() != "" && $("#type").val() == "formRecordList") {
		url += "&type=form&id=" + $("#id").val();
	}

	window.location = url;
}

