	function cfConfirm(msg,url) {
		if (confirm(msg)) {
			location.href = url;
		}
	}
	
	function editContent(contentID) {
		var currentContent = $("#content_" + contentID).html();
		tinyMCE.get('textAreaContent_' + contentID).setContent(currentContent);
		$("#contentBoxMenu_" + contentID).hide();
		$("#content_" + contentID).hide();
		$("#editContent_" + contentID).show();
	}

	function cancelEdit(contentID) {
		$("#contentBoxMenu_" + contentID).hide();
		$("#content_" + contentID).show();
		$("#editContent_" + contentID).hide();
	}

	function saveContent(contentID) {
		var newContent = tinyMCE.get('textAreaContent_' + contentID).getContent();
		$("#content_" + contentID).html(newContent);
		remoteCall = _rootPath + "remote/api.cfm";
		$.post(remoteCall, {content_id: contentID, html: newContent, method: 'saveContent' },
			function(data) {
				cancelEdit(contentID);
			}
		);
	}		
