/*
 * Called on story submission.
 * See sharestories.php:sharestories_form() for how this is used.
 */
function sharestoriesStartUpload() {
  var submit = document.getElementById( 'sharestories_submit' );
  submit.disabled = true;
  submit.value = 'Please wait';
  return true;
}
/*
 * Approves a story.
 * See sharestories.php:sharestories_manageform() for how this is used.
 */
function sharestoriesApprove( id ) {
  document.getElementById( 'sharestories_action' ).value = 'approve';
  document.getElementById( 'sharestories_id' ).value = id;
  document.getElementById( 'sharestories_manage_form' ).submit();
}
/*
 * Deletes a story.
 * See sharestories.php:sharestories_manageform() for how this is used.
 */
function sharestoriesDelete( id ) {
  document.getElementById( 'sharestories_action' ).value = 'delete';
  document.getElementById( 'sharestories_id' ).value = id;
  document.getElementById( 'sharestories_manage_form' ).submit();
}

