<!--



var id=0;

function ShowCalendar(launchButton,id){

 this.id=id;



var calDocumentAll=document.all.CalFrame;
 //var calDocumentAll=document.getElementById.CalFrame ;
 var oCalFrame = window.frames.CalFrame; 



 var intCalLeft = 0;

 var intCalTop = 0;

 for(var p = launchButton; p && p.tagName!='BODY'; p = p.offsetParent){

   intCalLeft += p.offsetLeft;

   intCalTop += p.offsetTop;

 }



  

   



 var intLaunchButtonHeight = launchButton.offsetHeight;

 var intDocHeight = calDocumentAll.style.pixelHeight;

 var intScrollTop = document.body.scrollTop;

 calDocumentAll.style.left = intCalLeft;

   if( (intCalTop - intDocHeight >= intScrollTop) && (intCalTop + intLaunchButtonHeight + intDocHeight > document.body.clientHeight + intScrollTop) )

     calDocumentAll.style.top = intCalTop - intDocHeight;

   else

     calDocumentAll.style.top = intCalTop+intLaunchButtonHeight;

   if(calDocumentAll.style.display == "none"){

	calDocumentAll.style.display = "block";

   }		 

}









//-->



 





