function printer(){
document.getElementById('tr1').style.display='none';
window.print();
document.getElementById('tr1').style.display='';
}


function ucalClose() {
  
   ucal_isclosing=1;
   var mye;
   if ((mye = document.getElementById("ucal_pop")) == null) reutrn ;

   ucal_cpwidth = 270;
   ucal_cpheight = 150;
   ucal_timer = setInterval("ucalAnimateClose()",10);

   ucal_isopen=0;
}
function ucalAnimateClose() {
   ucal_cpwidth -= 20;
   ucal_cpheight -= 10;

   if (ucal_cpwidth <= 0) { clearInterval(ucal_timer); ucal_timer=0; }

   if ((mye = document.getElementById("ucal_pop")) == null) return;
   if (ucal_timer==0) { 
      mye.style.visibility = "hidden";
	  mye.style.display = "none";
      mye.style.width = "auto";
      mye.style.height = "auto";
   } else {
      mye.style.width = ucal_cpwidth+"px";
      mye.style.height = ucal_cpheight+"px";
   }
   ucal_isclosing=0;
}
function ucalOpen(which) {
   var pname = "ucal_crange";
   var mye1,mye2;
   if ((mye1 = document.getElementById("ucal_pop")) == null) return ;
   if ((mye2 = document.getElementById(pname)) == null) return ;

   var startx = 0;
   var starty = 0;

   for(var p = mye2; p && p.tagName!='BODY'; p = p.offsetParent){
      startx += p.offsetLeft;
      starty += p.offsetTop;
   }


   mye1.style.position = "absolute";
   mye1.style.left = "0px";
   mye1.style.top = "0px";

   mye1.style.width = 0;
   mye1.style.height = 0;
   mye1.style.visibility = "";
   mye1.style.display = "";
   ucal_cpwidth = 0;
   ucal_cpheight = 0;
   ucal_timer = setInterval("ucalAnimateOpen()",20);

   
}
function ucalAnimateOpen() {
   ucal_cpwidth += 10;
   ucal_cpheight += 8;

   if (ucal_cpwidth >= 260) { clearInterval(ucal_timer); ucal_timer=0; }

   if ((mye = document.getElementById("ucal_pop")) == null) return;
   if (ucal_timer!=0){
      mye.style.width = ucal_cpwidth+"px";
      mye.style.height = ucal_cpheight+"px";
   }
}
