function mds_GetCurrentDate() {
d = '' + (new Date()).getDate();
m = '' + ((new Date()).getMonth() + 1);
if (d.length < 2)
   d = '0' + d;
if (m.length < 2)
   m = '0' + m;
return d + '&nbsp;|&nbsp;' + m + '&nbsp;|&nbsp;' + (new Date()).getYear();
}

// ==================================================================================
function mds_OnMouseOver() {
  this.className = this.className + '_hover';
  l_CellArray = this.parentNode.parentNode.cells;
  if (l_CellArray) {
    for (x = 0; x < l_CellArray.length; x++) {
      if ((l_CellArray[x] != null) && (l_CellArray[x].className == 'circle'))
         l_CellArray[x].className = 'circle_hover';
    }
  }
}

// ==================================================================================
function mds_OnMouseClick() {
 var l_ChildList = this.childNodes
 for (i = 0; i < l_ChildList.length; i++) { 
   if (l_ChildList[i].tagName == "A") {
     l_ChildList[i].click();
   }
 }

}

// ==================================================================================
function mds_OnMouseOut() {
 var l_ClassName = this.className;
 l_ClassName = l_ClassName.replace("_hover", "");
 this.className = l_ClassName;

 l_CellArray = this.parentNode.parentNode.cells;
 if (l_CellArray) {
   for (x = 0; x < l_CellArray.length; x++) {
     if ((l_CellArray[x] != null) && (l_CellArray[x].className == 'circle_hover'))
        l_CellArray[x].className = 'circle';
   }
 }

}

// ==================================================================================
function mds_FillInCells()
{
  var l_DivList = document.getElementsByTagName("div");

  for (i = 0; i < l_DivList.length; i++) {
        l_CellArray = l_DivList[i];

        if (l_CellArray.className != "divitem")
           continue;

        l_CellArray.onmouseover = mds_OnMouseOver;
        l_CellArray.onmouseout = mds_OnMouseOut;
        l_CellArray.onclick = mds_OnMouseClick;
  }
}


