﻿function showTickets(sEventID)
{
    window.location = '/viewtickets.aspx?&eventID=' + sEventID
}
function vieweventsIni()
{
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);
}
function endRequest(sender, e)
{
    if(e.get_error())
    {
       //if there was an error during the ajaxpost back reset the page
      window.location = window.location;
    }
    else {
       //move the page to the top of the results
       var sLocation = new String(window.location)
       if (sLocation.indexOf("#results") == -1)
           window.location = window.location + "#results"
       else
           window.location = window.location
    }
}
