function lastmonth(month)
    {
    if(month == 0 && document.calendarform.y.selectedIndex != 0)
        {
        document.calendarform.m.selectedIndex=11;
        document.calendarform.y.selectedIndex=document.calendarform.y.selectedIndex - 1;
        }
    else if(month != 0)
        {
        document.calendarform.m.selectedIndex=month - 1;
        }
    document.calendarform.submit();
    }

function nextmonth(month)
    {
    if(month == 11 && document.calendarform.y.selectedIndex != 8)
        {
        document.calendarform.m.selectedIndex=0;
        document.calendarform.y.selectedIndex=document.calendarform.y.selectedIndex + 1;
        }
    else if(month != 11)
        {
        document.calendarform.m.selectedIndex=month + 1;
        }
    document.calendarform.submit();
    }




function lastyear(year)
    {
    if(year != 0)
        {
        document.calendarform.y.selectedIndex=year - 1;
        document.calendarform.submit();
        }
    }
function nextyear(year)
    {
    document.calendarform.y.selectedIndex=year + 1;
    document.calendarform.submit();
    }


function showinfo(calid)
    {
    document.getElementById(calid).style.display='block';
    }

function hideinfo(calid)
    {
    document.getElementById(calid).style.display='none';
    }

