var flgPush = 0;

function preventTwicePushButtonById() {
	if (flgPush == 0) {
		flgPush = 1;
	} else {
		return false;
	}
	document.form_obj.submit();
	
	return true;
}

function confirm_before_commit(msg) {
	if (confirm(msg)) { 
		window.top.location="/slide/<?php echo $slide_id; ?>";
		self.parent.tb_remove();
	} else {
		return false;
	}
}

function check_empty(id_name) {
  var div_id = document.getElementById(id_name);
  var object_value = jQuery.trim(div_id.value);

  if (object_value != "" && object_value != null) {
    return false;
  } else {
    return true;
  }
}