var date_called_from;
function get_date_source_control(){
//alert(date_called_from);
return date_called_from;
}
function date_open(ctlid)
{
date_called_from=document.getElementById(ctlid);
var newWindow;
var urlstring = 'calendar.htm';
var posLeft = (screen.width/2) - (127);
var posTop = (screen.height/2) - 90;
newWindow = window.open(urlstring,'','left='+posLeft+',top='+posTop+',height=210,width=260,toolbar=no,minimize=no,status=no,memubar=no,location=no,scrollbars=no')
}
function zoomForDate(url,name,width,height,passedObjectID){
var Nav4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
 if (Nav4) {
         // Center on the main window.
         dleft = window.screenX + ((window.outerWidth - width) / 2)
         dtop = window.screenY + ((window.outerHeight - height) / 2)
         var attr = "screenX=" + dleft + ",screenY=" + dtop + ",resizable=no,width=" + width + ",height=" + height+ ",modal=yes";
      } else {
         // The best we can do is center in screen.
         dleft = (screen.width - width) / 2
         dtop = (screen.height - height) / 2
         var attr = "left=" + dleft + ",top=" + dtop + ",resizable=no,width=" + width + ",height=" + height;
      }
	attr=attr + "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0";
mewin=window.open(url,name,attr);
//mewin=window.open(url,name)
mewin.passedObjectID=passedObjectID;
mewin.focus();
}
