
/**
 * Show BibTeX's code or copy it into the clipboard.
 */
function showBibTeX(id) {
  var text = document.getElementById(id);
  if (text.style.display == 'block') text.style.display = 'none';
  else text.style.display = 'block';
}
function getBibTeX(id) {
	document.getElementById(id).select();
	var textRange = document.getElementById(id).createTextRange();
	textRange.execCommand("Copy");
}

/**
 * Show description of call for papers.. same as above...
 */
function showCallDes(id) {
  var text = document.getElementById(id);
  if (text.style.display == 'block') text.style.display = 'none';
  else text.style.display = 'block';
}

/*
 * This is used for CML's index.htm.
 */
function changeimg(group, type) {
  if (type == 1) {
    document[group].src = "images/shareimg/" + group + "_active.jpg";
  } else {
    document[group].src = "images/shareimg/" + group + ".jpg";
  }
}

/*
 * This is used for confirming deletion of records in the database.
 */
function confirmDeletion() {
  return confirm("Are you sure you wish to delete this record?");
}

/*
 * This is used for confirming administrator's commands.
 */
function confirmAdminCmd() {
  return confirm("Are you sure you wish to do this?");
}




