function showdiv(id, num)
 {
  document.getElementById(id).style.display = num ? "block" : "none";
 }