function MM_openBrWindow(theURL,winName,features) { //v2.2
	var l, hide=false, win;
	if ((l=features.lastIndexOf("hidebehind")) != -1) {
		hide=true;
	  features=features.substring(0,l-1);
  }
  if (parseInt(navigator.appVersion) < 4) {  // strip top and left settings from features
    if ((l=features.lastIndexOf("left")) != -1) features = features.substring(0,l-1);
    if ((l=features.lastIndexOf("top")) != -1) features = features.substring(0,l-1);
  }
  win=window.open(theURL,winName,features);
	if(hide) win.blur();
}
function openCalendarWindow() {
	var width, height,docRoot='document.body';
	var cIe4=(document.all) ? true : false;
	var cOp=(navigator.userAgent.toLowerCase().indexOf('opera') > -1 && document.createTextNode);
	if(document.compatMode && document.compatMode=='CSS1Compat') docRoot= ((cIe4&&!cOp) ? 'document.documentElement' : docRoot);
	if (window.innerWidth) width=window.innerWidth;
	else if (eval('window.'+docRoot)&&eval("typeof window."+docRoot+".clientWidth=='number'")&&eval('window.'+docRoot+'.clientWidth')) 
		width=eval('window.'+docRoot+'.clientWidth');
	if (window.innerHeight) height=window.innerHeight;
	else if (eval('window.'+docRoot)&&eval("typeof window."+docRoot+".clientHeight=='number'")&&eval('window.'+docRoot+'.clientHeight')) 
		height=eval('window.'+docRoot+'.clientHeight');
	MM_openBrWindow('http://www.stmark-elca.org/calendar/month.php?small=1','calWin','menubar=yes,scrollbars=yes,resizable=yes,width='+width +',height='+height+',top=100,left=100');
}