    function changeMsg(msgName){
	if(document.getElementById('msg0').id == msgName){
	document.getElementById('msg0').style.display='block';
	document.getElementById('msg1').style.display='none';
	document.getElementById('msg2').style.display='none';
	document.getElementById('msg3').style.display='none';
	}
	if(document.getElementById('msg1').id == msgName){
	document.getElementById('msg0').style.display='none';
	document.getElementById('msg1').style.display='block';
	document.getElementById('msg2').style.display='none';
	document.getElementById('msg3').style.display='none';
	}
	if(document.getElementById('msg2').id == msgName){
	document.getElementById('msg0').style.display='none';
	document.getElementById('msg1').style.display='none';
	document.getElementById('msg2').style.display='block';
	document.getElementById('msg3').style.display='none';
	}
	if(document.getElementById('msg3').id == msgName){
	document.getElementById('msg0').style.display='none';
	document.getElementById('msg1').style.display='none';
	document.getElementById('msg2').style.display='none';
	document.getElementById('msg3').style.display='block';
	}
     }

     function rowUpdateBg(row, box1, box2) {

      if (box1) {

        row.style.backgroundColor = (row == rowWithMouse) ? '#DDE4F2' : '#FFFFFF';

        box1.style.backgroundColor = (row == rowWithMouse) ? '#76a8d5' : '#FFFFFF';

        box1.style.fontColor = (row == rowWithMouse) ? '#76a8d5' : '#FFFFFF';

        box2.style.backgroundColor = (row == rowWithMouse) ? '#76a8d5' : '#FFFFFF';

      } else {

        row.style.backgroundColor = (row == rowWithMouse) ? '#FFFF00' : '#FFFFFF';
        row.style.border = (row == rowWithMouse) ? '1px solid #FF0000' : '1px solid #FFFFFF';
        row.style.color = (row == rowWithMouse) ? '#000066' : '#808080';

      }

    }

     function rowRollover(myId, isInRow) {

      var row = document.getElementById('tr_' + myId);

      var box1 = document.getElementById('box1_' + myId);

      var box2 = document.getElementById('box2_' + myId);

      rowWithMouse = (isInRow) ? row : null;

      rowUpdateBg(row, box1, box2);

    }


function openCalendar(showDate,e) {

   w = screen.width-310
   h = screen.height-170
   x = e.screenX
   y = e.screenY
      if(x > w){
         x = x-310
         }
      if(y > h){
         y = y-170
         }
          

	var calendarUrl = "/selectDate.html?txtDay="+showDate;
	calWindow=window.open(calendarUrl,'Calendar','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=no,width=310,height=170,top='+y+',left='+x);
	calWindow.focus();
}

function setDate(day, month, year) {
	document.calForm.LPD.value=day;
	document.calForm.LPM.value=month;
	document.calForm.LPY.value=year;

}