
function calendar_open(ctlName, shT)
{
	var	top=0;
	var	left=0;
	var height=225,width=255;
    if(screen.height - (event.screenY +50) < height){
	  top = screen.height -  (height + 50) ;
    }else{
	  top = event.screenY ;
	}
    if(screen.width - (event.screenX + 20)  < width){
	  left = screen.width -  width - 20;
    }else{
	  left = event.screenX ;
	}

	var newWindow;
	var urlstring = '/js/calendar/calendar.htm?ctl='+ctlName+'&btm='+shT;
	newWindow = window.open(urlstring,'CALENDAR','left='+left+
		',top='+top+
		',height='+height+',width='+width+','+
		'toolbar=no,minimize=no,status=0,memubar=no,'+
		'location=no,scrollbars=no')
}
