function attachLink(td,href) {
   AttachEvent(td,'click',function() {gotoUrl(href)},false);
   AttachEvent(td,'mouseover',function() {document.body.style.cursor='pointer'},false);
   AttachEvent(td,'mouseout',function() {document.body.style.cursor='default'},false);
   }

function walkCal() {
   var cal = document.getElementById('cal');
   var tdList = cal.getElementsByTagName('td');
   var j = tdList.length;
   for (var i=0;i<j;i++) {
      var td = tdList.item(i);
      var divList = td.getElementsByTagName('div');
      if (divList.length > 0) {
         var div = divList.item(0);
         var aList = div.getElementsByTagName('a');
         if (aList.length > 0) {
            var a = aList.item(0);
            if (a.hasAttribute('href')) {
               var href = a.getAttribute('href');
 //              alert(href);
               var p = document.createElement('span');
               var childList = a.childNodes;
               for (var k=0;k<childList.length;k++) {
                  var newNode = childList.item(k).cloneNode(true);
                  p.appendChild(newNode);
                  }
               a.parentNode.replaceChild(p,a);
               attachLink(td,href);
//               AttachEvent(td,'click',function() {gotoUrl(href)},false);
               }
            }
         }
      }
   }
   
function gotoUrl(url) {
   window.location.href = url;
   }
   
womAdd('walkCal()');
womOn();