    function loadDate(pFieldID)
    {
      try
      {
        if(window.XMLHttpRequest)
        {
          reqsend = new XMLHttpRequest();
        }
        else
        {
          reqsend = new ActiveXObject("Microsoft.XMLHTTP");
        }
      }
      catch(e)
      {
        alert('Your browser does not support XMLHTTP.');
      }

      try
      {
        reqsend.open("POST",'http://www.supergol.com.ar/js/calendar.php');
        reqsend.setRequestHeader("Content-Type","application/x-www-form-urlencoded");

        post = "mode=PHP&id=" + pFieldID;

        //'arguments' is a JS construct that represents
        //all the arguments sent to a function
        if(arguments[1])
        {
          post = post + '&curr_stamp=' + arguments[1];
                 
                  if (arguments[2]) {
                        post = post + '&direction=' + arguments[2];
                  }
        }
        reqsend.setRequestHeader("Content-Length",post.length);
        reqsend.send(post);
        reqsend.onreadystatechange = function()
        {
          if(reqsend.readyState == 4 && reqsend.status == 200)
          {
            var responseText = reqsend.responseText;

            //create the new div
            //it's not inserted into the document yet
            calendarDiv = document.createElement('div');
            calendarDiv.setAttribute('id','calendar');

            //remove the div if it exists
            //this avoids duplication of the calendar in the document
            if(document.getElementById('calendar'))
            {
              calendarDiv = document.getElementById('calendar');
              calendarDiv.parentNode.removeChild(calendarDiv);
            }
 
            //insert the new div into the document
            pField = document.getElementById(pFieldID);
            pField.parentNode.appendChild(calendarDiv);

            //hide the text field it's replacing
            //document.getElementById(pFieldID).style.display = 'none';

            //fill the new div
            document.getElementById('calendar').innerHTML = responseText;
          }
        };
      }
      catch(e)
      {
        alert(e);
      }
    }