function OnRadEditorClientLoad(editor, args) {
	Telerik.Web.UI.Editor.CommandList["InsertPageBreak"] = function(commandName, editor, args) {
		editor.pasteHtml("<hr class='page-break-placeholder' />");
	};
}

function showPage(prefix, pageNum, pageCount) {
	for (idx = 1; idx <= pageCount; idx++) {
		$("#LinkTo" + prefix + idx).removeClass("selected");
		$("#" + prefix + idx).hide();
	}
	$("#LinkTo" + prefix + pageNum).addClass("selected");
	$("#" + prefix + pageNum).show();
}
