

<?php /*

<!DOCTYPE html>
<html >
  <head>
    <meta charset="UTF-8">
    <title>Oficina Virtual</title>
    <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>

<link href='http://fonts.googleapis.com/css?family=Raleway:300,200' rel='stylesheet' type='text/css'>
    
    <link rel="stylesheet" href="css/reset.css">

    
        <link rel="stylesheet" href="css/style.css">

    
    
    
  </head>

  <body>

  <?php
  session_start();
  if(isset($_SESSION))
  {
    header('Location: menu.html');
  }
  else{

  }
  ?>

    <div class="menu">
  <ul class="mainmenu clearfix">
    <li class="menuitem">Well</li>
    <li class="menuitem">how</li>
    <li class="menuitem">about</li>
    <li class="menuitem">that?</li>
  </ul>
</div>
<div class="form">
  <div class="forceColor"></div>
  <div class="topbar">
    <div class="spanColor"></div>
    <form method="post" action="validar_login.php">
    <input type="text" class="input" id="usuario"  name='rfc' placeholder="RFC"/>
    <input type="password" class="input" id="password" name='passw' placeholder="Contraseña"/>

    <input type="submit" class="submit"  value="Iniciar Sesion" />
    </form>

  </div>

</div>

    <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

        <script src="js/index.js"></script>

    
    
    
  </body>
</html>/*/
?>
<html>

<head>

<title></title>



<script language="JavaScript" src="./scripts/md5.js"></script> 



<script language="JavaScript" src="./scripts/etc.js" type="text/javascript"></script> 







<script language="JavaScript">



function valida(){

  var elem=getObjeto("psw"); 

  var elem2=getObjeto("pswd"); 

  // var valor=hex_md5(elem.value);

  var valor = elem.value;

  elem2.value = valor;

  //elem.value = "";

  //alert(elem2.value);  

}



</script>



</head>

<body>

<center><bR><br><br><img src="rrblogo.png" border="0" width="400"alt=""></center>

<br />

<center> 
<font color="#000066" size="+2"><b>¡Bienvenido Centro de Distribuci&oacute;n!</b></font>
<hr width="25%" color="#2b385d">

<form name="login" id="login" action="./valida3.php" method="post" onSubmit="javascript: return valida();">





<br />



		<table border="1" bgcolor="#c3dfed">

		<tr>

			<td> <b><font color="#2b385d">Usuario:</font></b> </td>

			<td> <input type="text" id="usr" name="usr" size="20" maxlength="20"> </td>

		</tr>



		<tr>

			<td> <b><font color="#2b385d">Contraseña:</font></b> </td>

			 <td>



						<input type="password" name="psw" id="psw" size="20" maxlength="20">



						<input type="hidden" name="pswd" id="pswd" size="35" maxlength="35">					</td>

		</tr>



		<tr>

			<td colspan="2" bgcolor="#FFFFFF">

			  <br><center><input type="submit" value="Iniciar Sesión"></center>					

			</td>



		</tr>

	    </table>		



	



</center>





</form>

<hr width="25%" color="#2b385d">

<br />

</body>



</html>




