function Calendar(ctl) {

      var windowWidth = '325';
      var windowHeight = '240';
      var int_windowLeft = (screen.width - windowWidth) / 2;
      var int_windowTop = (screen.height - windowHeight) / 2;
      var str_windowProperties = 'height=' + windowHeight + ',width=' + windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=0,resizable=0,menubar=0,toolbar=0,location=0,statusbar=1,fullscreen=0';
      //Development
      //var obj_window = window.open('http://localhost/SiteReview/Calendar.aspx?Ctl=' + ctl, 'Calendar', str_windowProperties)
      
      //Production
      var obj_window = window.open('http://www.nmhsc.com/sitereview/Calendar.aspx?Ctl=' + ctl, 'Calendar', str_windowProperties)
      
        if (parseInt(navigator.appVersion) >= 4) {
          obj_window.window.focus();
        }
}

function CalendarSetDate(dateValue){
    // retrieve from the querystring the value of the Ctl param,
    // that is the name of the input control on the parent form
    // that the user want to set with the clicked date
    //ctl = window.location.search.substr(1).substring(4);
    ctl=window.location.search.substr(1).substring(4);
    // set the value of that control with the passed date
    thisForm = window.opener.document.forms[0].elements[ctl].value = dateValue;
    // close this popup
    self.close();
}