<?
ini_set('error_reporting',1);
session_start();
if ($_SESSION['estado'] != "ON")
		{
		?>
		<script>
			parent.location.href = 'index.php';
		</script>
		<? 
		exit();
		}
?>
<?
include("../conex.php");
$get_cod_nombres = $_GET["cp"];
$sql_sucursal = '';

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Nuevo Nombre</title>
<style type="text/css">
<!--
body {
	background-color: #CCCCCC;
	margin-left: 0px;
	margin-top: 3px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.Estilo7 {
	font-size: small;
	color: #000099;
}
.Estilo11 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; color: #000099; }
.Estilo13 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	color: #000099;
	text-decoration: underline;
}
.Estilo14 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	color: #000099;
}
.titulos2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #003366;
	background-color: #CCCCCC;
	font-style: normal;
	font-weight: bold;
}
.botones {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	height:26px;
}
-->
</style>

</head>

<body vlink="#2293ff" alink="#2293ff" link="#2293ff">
<form name="form1" method="post" action="gnueva_sucursal.php">
<div align="left" class="titulos2" style="font-size:12px">
<input name="txtcodigo" type="text" id="txtcodigo" value="<?=$get_cod_nombres?>" readonly="1" style="visibility:hidden" size="40">
  <table width="90%" border="1" align="center">
    <tr>
      <td>Nombre Sucursal</td>
      <td>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
           <td><input name="txtsucursal" type="text" id="txtsucursal" value="<?=$sql_sucursal?>" size="40"></td>
           <td>&nbsp;</td>
          </tr>
        </table></td>
    </tr>
  </table>
    <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td>&nbsp;</td>
      <td><div align="center">
        <label>
        <input type="button" name="Submit" value="Crear" onClick="enviar();">
        </label>
      </div></td>
      <td>&nbsp;</td>
    </tr>
  </table>
  </div>
</form>

<script type="text/javascript" src="../css/validarut.js"></script>
<script language="javascript"> 
function enviar()
	{
	if (document.form1.txtsucursal.value=='')
		{
		alert('Ingrese nombre de nueva sucursal');
		document.form1.txtsucursal.focus();
		return false;
		}
	document.form1.submit();
	}
</script>