﻿// Performs CampaignMonitor login for any traditional ASP.NET server form.
function OnLogin(sUrl)
{
    window.document.aspnetForm.action = sUrl;
    window.document.aspnetForm.method = "post";
    window.document.aspnetForm.__VIEWSTATE.value = "";
    window.document.aspnetForm.__VIEWSTATE.name = "nopostback";
    window.document.aspnetForm.submit();
}
