if(!SERIA_VARS.tmpEscInRow)
	SERIA_VARS.tmpEscInRow = 0;

function seriaCaptureEsc(e)
{
        if(e) event = e;
        if(event.keyCode==27) SERIA_VARS.tmpEscInRow++;
        else SERIA_VARS.tmpEscInRow=0;

        if(SERIA_VARS.tmpEscInRow==2)
        {
                SERIA_VARS.tmpEscInRow = -1;
                top.location.href=SERIA_VARS.HTTP_ROOT + '/seria/platform/pages/login.php?continue='+escape(SERIA_VARS.HTTP_ROOT + "/admin/#" + top.location.href);
        }

}
document.onkeypress=seriaCaptureEsc;
