/** Adds the content with ID 'id' to the list of content managed by 'form'. Finally submits the form.
 * @return false
 */
function addToList(form, id)
{
	form.addId.value = id;
	form.submit();
	return false;
}

/** Removes the content with ID 'id' from the list of content managed by 'form'. Finally submits the form.
 * @return false
 */
function removeFromList(form, id)
{
	form.removeId.value = id;
	form.submit();
	return false;
}

function moveUp(form, idx)
{
	form.moveIndex.value = idx;
	form.moveDirection.value = 'up';
	form.submit();
	return false;
}

function moveDown(form, idx)
{
	form.moveIndex.value = idx;
	form.moveDirection.value = 'down';
	form.submit();
	return false;
}
