
function calendarPopup(sw, element) {
  document.getElementById(element).style.visibility = sw;

  var w = 400; //document.body.clientWidth - 40;
  var h = 450; //document.body.clientHeight - 40;
  document.getElementById(element).style.height = h + "px";
  document.getElementById(element).style.top = (50) + "px";
  document.getElementById(element).style.width = w + "px";
  document.getElementById(element).style.left = ((document.body.clientWidth - w) / 2) + "px";
} 

function calendarShowInfo(sw, element) {
  evx = 0;
  evy = 0;

  if ((document.all || document.layers) && event) {
    evx = event.x;	
    evy = event.y; 
  }

  document.getElementById(element).style.visibility = sw;
  document.layer[element].style.top = evy;
  document.layer[element].style.left = evx;
} 

function calendarRowOverEffect(object) {
  if (object.className == 'dataTableRow') object.className = 'dataTableRowOver';
}

function calendarRowOutEffect(object) {
  if (object.className == 'dataTableRowOver') object.className = 'dataTableRow';
}

function calendarShowEditor(sw, element) {
  popup(sw, element);
}


function calendarSubmitform(action, month) {
  document.myform['month'].value = month;
  document.myform.submit();
}
