function confirmDelete(id, msg) {
  var checker = confirm(msg);
  if(checker == true) document.location.href="index.php?id=39&delete="+id;
}