<?php
ini_set("session.cookie_lifetime",60*60*10);
ini_set("session.gc_maxlifetime", 60*60*10);
	session_start();
	include("cls_conexion.php");$CNN=new ClsMySQL();include("conexion23.php");
	if(strlen($_SESSION['SYS_USER_ID'])==0){JsDir("login.php");	return;}
	//
	if(vbval($_SESSION['SYS_USER_GI'])!=USU_GET_GI($_SESSION['SYS_USER_ID'])){
		JsDir("cerrar.php");	
		return;
	}
	//
	$USER_ID=$_SESSION['SYS_USER_ID'];
	$USER_TI=$_SESSION['SYS_USER_TI'];
	$USER_SI=$_SESSION['SYS_USER_SI'];
	//-------------------------	
	$StrGT="";	
	$LStrMsg="";
	$LStrFoc="";
	$LStrMM="S";	
	$LStrPag=V($_POST['TxtPag']);	
	include("cambiarpas_fun.php");	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cambiar password</title>
<script type="text/javascript" src="fe/funciones.js"></script>
<script type="text/javascript" src="fe/cambiarpas.js"></script>
<style type="text/css">
<!--
body {
	background-color: #CCC;
}
#Layer1 {
	position:absolute;
	left:345px;
	top:115px;
	width:123px;
	height:35px;
	z-index:1;
}
.centrarFrm{
     width:700px;
     height:600px;
     position:absolute;
     left:50%;
     top:50%;
	 background-color:#006699;
	 margin:-300px 0 0 -350px;

}
#Layer2 {
	position:absolute;
	left:409px;
	top:205px;
	width:82px;
	height:24px;
	z-index:1;
}
.Estilo1 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FFFFFF;
}
.f2 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; font-size: 12px; }
.Estilo3 {color: #FFFFFF; font-size: 12px; font-family: Arial, Helvetica, sans-serif;}
.Estilo4 {color: #000099}
.Estilo5 {color: #000000}
#Frm center #DivFRM #layer .Estilo1 strong {
	color: #900;
}

-->
</style>

</head>
<body  <?php echo $LStrMsg;?>>
<form id="Frm" name="Frm" method="post" action="cambiarpas.php">
<center> 

<div Id="DivFRM"  class="centrarFrm" >
<div id="LblTit" style="position:absolute; left: 52px; top: 15px; width: 64px; z-index: 100;">
<div align="left" class="Estilo1"><img src="img/marcas.gif" width="48" height="48" /></div>
</div>
<div id="layer8" style="position:absolute; left: 0px; top: 0px; width: 700px; height: 79px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; z-index: 0;">
<div align="left" class="Estilo1">        
</div>
</div>

<div id="layer" style="position:absolute; left: 116px; top: 21px; width: 412px; height: 45px; z-index: 100;">
<div align="left" class="Estilo1">
        <input name="TxtId" type="hidden" id="TxtId" value="<?php echo $StrId;?>"/>
		<input name="TxtAc" type="hidden" id="TxtAc" value="" />
		<input name="TxtPag" type="hidden" id="TxtPag" value="<?php echo $LStrPag; ?>" />
<strong>CAMBIAR PASSWORD</strong></div>
</div>
<!----------------BOTONES----------------> 
<div id="layer4" style="position:absolute; left: 60px; top: 85px; width: 442px; height: 26px;">
<div align="left" class="f2">
        <input name="CmdB" type="button" id="CmdG" value="Cambiar password"
		onclick="fGuardar();" style="width:160px" tabindex="4"/>
        <input name="CmdB" type="button" id="CmdZ" 
         value="Menu" onclick="fBuscar('menu.php');"  tabindex="5"/>
</div>
</div>

<div id="layer3" style="position:absolute; left: 60px; top: 133px; width: 340px;">
<div align="left" class="f2">INGRESE LOS DATOS CORRESPONDIENTES</div></div>

<!----------------TEXTOS----------------> 
<div id="layer5" style="position:absolute; left: 60px; top: 157px; width: 139px;">
<div align="left" class="f2">PASSWORD ACTUAL</div></div>
<input name="TxtPa" type="password" id="TxtPa" 
style="position:absolute; left: 60px; top: 177px; width: 141px;" 
onKeyDown="return SoloTextoEx(event,'TxtP1');" 
value="<?php echo $StrPa;?>" maxlength="10"
tabindex="1" /> 

<div id="layer6" style="position:absolute; left: 223px; top: 157px; width: 139px;">
<div align="left" class="f2">NUEVO PASSWORD</div></div>
<input name="TxtP1" type="password" id="TxtP1" 
style="position:absolute; left: 223px; top: 177px; width: 141px;" 
onkeydown="return SoloTextoEx(event,'TxtP2');" 
value="<?php echo $StrP1;?>" maxlength="10"
tabindex="2" />

<div id="layer10" style="position:absolute; left: 388px; top: 157px; width: 199px;">
<div align="left" class="f2">REPITA NUEVO PASSWORD</div></div>   
<input name="TxtP2" type="password" id="TxtP2" 
style="position:absolute; left: 386px; top: 177px; width: 141px" 
onkeydown="return SoloTextoEx(event,'CmdG');" 
value="<?php echo $StrP2;?>" maxlength="10"
tabindex="3" />

 

  </div>
</center>
</form>
</body>
</html>
