﻿// JScript File
function NextMonth()
{
   try
   {   
        CalendarComponent.ShowNextMonth(ServerSideShowMonth);
   }
   catch(e)
   {
        alert(e.message);
   }
}

function PreviousMonth()
{
   //alert(val1);
   try
   {   
        CalendarComponent.ShowPreviousMonth(ServerSideShowMonth);
   }
   catch(e)
   {
        alert(e.message);
   }
}

function ServerSideShowMonth(response)
{
    if (response.error != null)
    {
        alert(response.error);
        return;
    }
    
    var calParent=document.getElementById(document.getElementById('hdnParentID').value);
    calParent.innerHTML=response.value;
// Staffing_GraphicalRosterView.DrawTimeLines("a", DrawTimeLinesClient);

}


function ToolTip(val1)
{    
    return Tip(val1, BALLOON, true, BALLOONIMGPATH, document.getElementById('hdnImagesPath').value+'/tooltip', OFFSETX, -17, FADEIN, 200, FADEOUT, 200);
}