<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../Site.xsl"?>
<?xml-stylesheet type="text/css" href="../RenderFail.css"?>


<RDWAPage
        helpurl="http://go.microsoft.com/fwlink/?LinkId=141038"
        workspacename="Alten&#32;Romania"
        baseurl="https://changemypassword.altenromania.ro/RDWeb/Pages/en-US/"
>
    <RenderFailureMessage>
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=unicode"/>
            <title>Error: Unable to display RD Web Access</title>
        </head>
        <body>
        <h1>Error: Unable to display RD Web Access</h1>
        <p>An unexpected error has occurred that is preventing this page from being displayed correctly.</p>
        <p>Viewing this page in Internet Explorer with the Enhanced Security Configuration enabled can cause such an error.</p>
        <p>Please try loading this page without the Enhanced Security Configuration enabled. If this error continues to be displayed, please contact your administrator.</p>
        </body>
        </html>
    </RenderFailureMessage>

    <HTMLMainContent>
    <script language="javascript">

        function validateInputUserNameAndRedirect() {

            var domainNameControl = document.getElementById("DomainName");
            var domainUserNameControl = document.getElementById("DomainUserName");

            if (domainNameControl!==null){
            if (domainNameControl.value !==""){
            if (domainUserNameControl!==null){
                domainUserNameControl.value = "";

                var domainName = domainNameControl.value;
                var inputUserNameControl = document.getElementById("DomainUserNameFilled");

                if (inputUserNameControl==null || inputUserNameControl.value ==""){
                  alert("Va rugam sa completati numele utilizatorului.");
                  return false;
                }

                var inputUserName = inputUserNameControl.value;

                                
                if (inputUserName.indexOf("\\") == -1) {
                  domainUserNameControl.value = domainName + '\\' + inputUserName;
                } else {
                  domainUserNameControl.value = inputUserName;
                }

                if (!domainUserNameControl.value){
                    alert("A aparut o eroare! Va rugam sa contactati administratorul.");
                }
               
                document.getElementById("FrmLogin").submit();

            }
            }
            }
        }
</script>
        <p style="margin-left: 140px"><b> Schimbare parola domeniu KRO</b></p>
        <p style="margin-left: 180px"> Reguli complexitate parola: </p>
        <p style="margin-left: 220px"> - Lungime minima de 12 caractere </p>
        <p style="margin-left: 220px"> - Sa contina minim 3 din cele 4 categorii de caractere (litere mari, litere mici, numere, caractere speciale)</p>
        <p style="margin-left: 220px"> - Sa nu contina numele sau prenumele vostru </p>
        <p style="margin-left: 220px"> - Sa fie diferita de ultimele 6 parole setate de voi </p>


        <form id="FrmLogin" name="FrmLogin" action="password.aspx" method="post">

            <table width="350" border="0" align="center" cellpadding="0" cellspacing="0">

                <tr>
                    <td height="20">&#160;</td>
                </tr>

        <tr>
          <td>
            <table width="350" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="180" align="right">User name (ion.popescu):</td>
                <td width="7"></td>
                <td align="right">
                  <input id="DomainUserNameFilled" name="DomainUserNameFilled" type="text" class="textInputField" size="25" autocomplete="off" />
                  <input name="DomainUserName" type="hidden" id="DomainUserName" class="textInputField" size="25" autocomplete="off" />
                  <input id="DomainName" name="DomainName" type="hidden" class="textInputField" size="10" autocomplete="off" value="KRO" text="KRO"/>
                </td>
              </tr>
            </table>
          </td>
        </tr>

                <tr>
                    <td height="7"></td>
                </tr>

                <tr>
                    <td>
                        <table width="350" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="180" align="right">Current password:</td>
                                <td width="7"></td>
                                <td align="right">
                                    <input name="UserPass" type="password" id="UserPass" class="textInputField" size="25" autocomplete="off" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td height="7"></td>
                </tr>

                <tr>
                    <td>
                        <table width="350" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="180" align="right">New password:</td>
                                <td width="7"></td>
                                <td align="right">
                                    <input name="NewUserPass" type="password" id="NewUserPass" class="textInputField" size="25" autocomplete="off" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td height="7"></td>
                </tr>

                <tr>
                    <td>
                        <table width="350" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="180" align="right">Confirm new password:</td>
                                <td width="7"></td>
                                <td align="right">
                                    <input name="ConfirmNewUserPass" type="password" id="ConfirmNewUserPass" class="textInputField" size="25" autocomplete="off" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                
                <tr id="tr4" style="display:none" >
                <td>
                    <table>
                        <tr>
                            <td height="20">&#160;</td>
                        </tr>
                        <tr>
                            <td><span class="wrng">Your password cannot be changed. Please contact your administrator for assistance.</span></td>
                        </tr>
                    </table>
                </td>
                </tr>

                
                <tr id="tr2" style="display:none" >
                <td>
                    <table>
                        <tr>
                            <td height="20">&#160;</td>
                        </tr>
                        <tr>
                            <td><span class="wrng">Please enter a new password.</span></td>
                        </tr>
                    </table>
                </td>
                </tr>

                
                <tr id="tr5" style="display:none" >
                <td>
                    <table>
                        <tr>
                            <td height="20">&#160;</td>
                        </tr>
                        <tr>
                            <td><span class="wrng">Your new password does not meet the length, complexity, or history requirements of your domain. Try choosing a different new password.</span></td>
                        </tr>
                    </table>
                </td>
                </tr>

                
                <tr id="tr3" style="display:none" >
                <td>
                    <table>
                        <tr>
                            <td height="20">&#160;</td>
                        </tr>
                        <tr>
                            <td><span class="wrng">The entered passwords do not match.</span></td>
                        </tr>
                    </table>
                </td>
                </tr>

                
                <tr id="tr1" style="display:none" >
                <td>
                    <table align = "center">
                        <tr>
                            <td height="20">&#160;</td>
                        </tr>
                        <tr>
                            <td><span class="wrng">Your password has been successfully changed.</span></td>
                        </tr>
                        <tr>
                            <td height="10">&#160;</td>
                        </tr>
                        <tr>
                            <td align = "center"><input type="button" class="formButton" id="OK" value="OK" onClick="window.location='login.aspx'"/></td>
                        </tr>

                    </table>
                </td>
                </tr>

                
                <tr id="trErrorIncorrectCredentials" style="display:none" >
                <td>
                    <table>
                        <tr>
                            <td height="20">&#160;</td>
                        </tr>
                        <tr>
                            <td><span class="wrng">The user name or password that you entered is not valid. Try typing it again.</span></td>
                        </tr>
                    </table>
                </td>
                </tr>

                
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr id="trButtons" style="display:" >
                <td align="right"><label><input type="button" class="formButton" id="btnSignIn" value="Submit" onClick="validateInputUserNameAndRedirect();"/></label><label><input type="button" class="formButton" id="Cancel" value="Cancel" onClick="window.location='login.aspx'"/></label>
                </td>
                </tr>


                <tr>
                    <td height="30">&#160;</td>
                </tr>

            </table>

        </form>

        <p style="text-align:center"><a href="login.aspx">Testare user si parola</a></p>
    </HTMLMainContent>
</RDWAPage>
