<!-- content starts -->
			<?php 
        if (isset($_POST['enviado'])) {
            $_POST['nombre'] = trim(strtoupper(reemGuion($_POST['nombre'])));
            $_POST['nit'] = trim(strtoupper(reemGuion($_POST['nit'])));
            $_POST['dpi'] = trim(strtoupper($_POST['dpi']));
            $_POST['genero'] = trim(strtoupper($_POST['genero']));
            $_POST['fnacimiento'] = trim(date_format(date_create($_POST['fnacimiento']), 'Y/m/d'));
            $_POST['email'] = trim(strtoupper($_POST['email']));
            $_POST['tel1'] = trim(strtoupper($_POST['tel1']));
            $_POST['tel2'] = trim(strtoupper($_POST['tel2']));
            $_POST['nomenclatura'] = trim(strtoupper($_POST['nomenclatura']));
            $_POST['zona'] = trim(strtoupper($_POST['zona']));
            $_POST['colonia'] = trim(strtoupper($_POST['colonia']));
            $_POST['municipio'] = trim(strtoupper(reemGuion($_POST['municipio'])));
            $_POST['departamento'] = trim(strtoupper(reemGuion($_POST['departamento'])));
        }
        if (isset($_POST['enviado'])) {
            if ($_POST['enviado'] == 1) {
                if ($_POST['nombre'] == '') {
                    $errNombreCliente = 1;
                    $error = 1;
                }
                if ($_POST['nit'] == '') {
                    $err_fregistro = 1;
                    $error = 1;
                }
                if ($_POST['dpi'] == '') {
                    $err_nombrecomercial = 1;
                    $error = 1;
                }
			<!-- left menu ends -->
			
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			
			<div id="content" class="span10">
			
			<!-- content starts -->
			<?php 
        if (isset($_POST['enviado'])) {
            $_POST['nombre'] = trim(strtoupper(reemGuion($_POST['nombre'])));
            $_POST['nit'] = trim(strtoupper(reemGuion($_POST['nit'])));
            $_POST['dpi'] = trim(strtoupper($_POST['dpi']));
        }
        if (isset($_POST['enviado'])) {
            if ($_POST['enviado'] == 1) {
                if ($_POST['nombre'] == '') {
                    $errNombreCliente = 1;
                    //$error = 1;
                }
                if ($_POST['nit'] == '') {
                    $err_fregistro = 1;
                    //$error = 1;
                }
                if ($_POST['dpi'] == '') {
                    $err_nombrecomercial = 1;
                    //$error = 1;
			</div><!--/span-->
			<!-- left menu ends -->
			
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			
			<div id="content" class="span10">
			
			<!-- content starts -->
			<?php 
        if (isset($_POST['enviado'])) {
            $_POST['nocuenta'] = trim(strtoupper(reemGuion($_POST['nocuenta'])));
        }
        if (isset($_POST['enviado'])) {
            if ($_POST['enviado'] == 1) {
                if ($_POST['nocuenta'] == '') {
                    $errNombreCliente = 1;
                    //$error = 1;
                }
                if ($error == 0) {
                    $query = "select clientes.* from clientes, cuentas where cuentas.idCliente = clientes.idCliente and numeroDeCuenta = '{$_POST['nocuenta']}'";
                    //echo("Q1 = " . $query);
                    $resultado = mysql_query($query);
                    if (mysql_num_rows($resultado) == 0) {
                        $err_msg = "<center>ERROR: La cuenta no existe";
                        $error = 1;
                    } else {