var isIE=false;       var form_rvl=Array();         calendar_reveal.prototype.constructor=new calendar_reveal; calendar_reveal.prototype.show_form=show_form; calendar_reveal.prototype.hide_form=hide_form; calendar_reveal.prototype.timer=calendar_reveal_timer; calendar_reveal.prototype.get_this_ptr=calendar_reveal_get_this_ptr;         function calendar_reveal(form_div, form_frame_div, w, h, reveal_click_id, origin_div )  {   if (!form_div)    return;  var self=this;    this.form_div=form_div;  this.form_frame_div=form_frame_div;  this.w=w;  this.h=h;  this.time_ptr=0;  this.frame_width=0;  this.frame_height=0;  this.reveal_click_id=reveal_click_id;  this.origin_div=gbi(origin_div);  this.step=10;  this.reveal_direction=0;    this.do_click=function()   {    self.show_form();  };  gbi(this.reveal_click_id).onclick=this.do_click;    this.do_click_hide=function()   {    self.hide_form();  };      form_rvl.push(this); }    function calendar_reveal_timer()  {   var outer=gbi(this.form_frame_div);  if (this.reveal_direction == 1)   {    this.frame_width += this.step;   this.frame_height += this.step;       outer.style.width=this.frame_width + "px";   outer.style.height=this.frame_height + "px";     if (this.frame_width >= this.w)    {     gbi(this.form_div).style.left=getElementLeft(this.origin_div)  + "px";    gbi(this.form_div).style.top=getElementTop(this.origin_div)  + "px";      gbi(this.form_div).style.display="block";    gbi(this.form_frame_div).style.display="none";    clearInterval(this.time_ptr);    this.reveal_direction=0;   }   }   else   {    this.frame_width -= this.step;   this.frame_height -= this.step;     if (this.frame_width <= 0)    {     gbi(this.form_frame_div).style.display="none";    clearInterval(this.time_ptr);    this.reveal_direction=0;   }    else    {     outer.style.width=this.frame_width + "px";    outer.style.height=this.frame_height + "px";   }   }  }    function show_form()  {   ShowDisableMask();    var outer=gbi(this.form_frame_div);  var form=gbi(this.form_div);  outer_w=1;  outer_h=1;    outer.style.borderWidth="1px";  outer.style.width=outer_w + "px";  outer.style.height=outer_h + "px";  l=getElementLeft("show_start_fx");  t=getElementTop("show_start_fx");  outer.style.left=getElementLeft(this.origin_div)  + "px";  outer.style.top=getElementTop(this.origin_div) + "px";  outer.style.display="block";  this.reveal_direction=1;    var objptr=this.get_this_ptr();  this.time_ptr=setInterval(function() { objptr.timer();}, 10); }    function hide_form()  {   HideDisableMask();  gbi(this.form_div).style.display="none";  gbi(this.form_frame_div).style.display="block";  this.reveal_direction=-1;  var objptr=this.get_this_ptr();  this.time_ptr=setInterval(function() { objptr.timer();}, 10); }    function calendar_reveal_get_this_ptr()  {   var objptr;  for(var i=0;i <form_rvl.length;i++)   {    if (form_rvl[i].form_div == this.form_div)      {     objptr=form_rvl[i];   }   }   return objptr; }      