// Detect widt of the image
function switchheight() {
//document.getElementById("satu").clientHeight = 50 + "px";
document.getElementById("scroll").style.height = document.getElementById("satu").clientHeight-8;
}

// Show hide area, by godote of godote.com
function mrongos(id){
if (document.getElementById(id).style.display == "") show = "none";
else show = "";
document.getElementById(id).style.display = show;
}
function b(id){
if (document.getElementById(id).style.display == "") show = "none";
else show = "";
document.getElementById(id).style.display = show;
}

function tutup(id){
if (document.getElementById(id).style.display == "") show = "none";
if (document.getElementById(id).style.display == "none") show = "none";
document.getElementById(id).style.display = show;
}

function buka(id){
if (document.getElementById(id).style.display == "none") show = "";
if (document.getElementById(id).style.display == "") show = "";
document.getElementById(id).style.display = show;
}

//hapus input
function hapus(id) {
      document.getElementById(id).value = ""
}

//Clear input text
function calc(val) {
   var CLEAR = 'C'
   var DELETE = 'DEL'
   var PI = 'Pi'

   if (val == CLEAR) {
      document.sendform.img_name.value = ""
   }
}
//-->
