/*
@author     Shofiq Sulaiman
@version    0.2.1
@copyright  2009

Fungsi Global untuk membuat box confirm delete menggunakan JavaScript.
Untuk menggunakannya kita perlu memodifikasi tombol hapus. Terlebih dulu,
hapus nama class yang mengandung xhr, misalnya 'xhr' sendiri, 'xhr_form', dll.
Kemudian, tambahkan attribute:
---------
onClick='return showBoxConfirmDelete(this);'
---------
*/

function getWidth(){
   return document.getElementById('common').clientWidth;
}

function getHeight(){
   return (document.documentElement.scrollHeight > document.body.scrollHeight) ? document.documentElement.scrollHeight : document.body.scrollHeight;
}

function showBoxStatus() {
   var width = getWidth();
   var height = getHeight();
   var box = document.getElementById('bgApplication');
   box.style.height=height+'px';   
   box.style.width=width+'px';   
   anime = new janime();
   
   anime.element = 'bgApplication';
   anime.alpha(50);

   var boxc = document.getElementById('bgApplicationChild');
   boxc.style.height=height+'px';   
   boxc.style.width=width+'px';   

   return true;
}

function hideBoxStatus()
{
   var box = document.getElementById('bgApplication');
   var boxc = document.getElementById('bgApplicationChild');
   box.style.height='0px';   
   box.style.width='0px';   
	
   boxc.style.height='0px';   
   boxc.style.width='0px';   
   return true;
}
