  function dateChanged(calendar) {
    // Beware that this function is called even if the end-user only
    // changed the month/year.  In order to determine if a date was
    // clicked you can use the dateClicked property of the calendar:
    if (calendar.dateClicked) {
      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
      var y = calendar.date.getFullYear();
      var m = calendar.date.getMonth();     // integer, 0..11
      var d = calendar.date.getDate();      // integer, 1..31
      // redirect...
      window.location = "/news/" + calendar.params.groupid + "/" + d + "-" + m + "-" + y + ".html";
    }
  };


function popup(url, name, width, height, center, resize, scroll, posleft, postop) {
  if (!scroll) { scroll = 1 }
  if (!resize) { resize = 1 }
  if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
    X = (screen.width  - width ) / 2;
    Y = (screen.height - height) / 2;
  }
  if (scroll != 0) { scroll = 1 }
  var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll);
// +',location=no,directories=no,status=no,menubar=no,toolbar=no'

}







