function doLink(link)
{
    var url = "showEvent.aspx?id=" + link;
    window.opener.location.href = url;
    window.close();
}

function showCal()
{
    var x = window.open("popupCal.aspx", "DatePicker", "width=200px,height=180px,menubar=no,toolbar=no,location=no,status=no");
}

function showAdminCal(sInput)
{   
    var x = window.open("cal1.aspx?formname=" + sInput, "cal", "width=260,height=260,toolbar=no,history=no,address=no");
}

function doLogOff()
{
    var x = confirm("Are you sure you want to log off?");
    if(x)
    {
	    document.location.href = "CalendarLogon.aspx?lo=t"
    }
} 

function doDelete(nID)
{
    var x = confirm("Are you sure you want to delete this event?");
    if(x)
    {
	    document.location.href = "Admin.aspx?id=" + nID;
    }
}