	<script type="text/jscript">
function Valtext(e) {
    key = e.keyCode || e.which;
    tecla = String.fromCharCode(key).toLowerCase();
    letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
    especiales = [8, 37, 39, 46];

    tecla_especial = false
    for(var i in especiales) {
        if(key == especiales[i]) {
            tecla_especial = true;
            break;
        }
    }

    if(letras.indexOf(tecla) == -1 && !tecla_especial)
        return false;
}

function ValNumero(e) {
    key = e.keyCode || e.which;
    tecla = String.fromCharCode(key).toLowerCase();
    letras = "0123456789";
    especiales = [8, 37, 39, 46];

    tecla_especial = false
    for(var i in especiales) {
        if(key == especiales[i]) {
            tecla_especial = true;
            break;
        }
    }

    if(letras.indexOf(tecla) == -1 && !tecla_especial)
        return false;
}
	
</script>
	
	
	<?php
		if (isset($con))
		{
	?>
	<!-- Modal -->
	<div class="modal fade" id="despfact" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	  <div class="modal-dialog" role="document">
		<div class="modal-content">
		  <div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title" id="myModalLabel"><i class='glyphicon glyphicon-edit'></i> Cargar datos del despacho</h4>
		  </div>
		  <div class="modal-body">
			<form class="form-horizontal" method="post" id="editar_despacho2" name="editar_despacho2">
            <div id="resultados_ajax11"></div>
            
			
                <div class="form-group">
                <label for="numero_factura" class="col-sm-3 control-label">Nº Factura </label>
				<div class="col-sm-8">
				  <input type="hidden" class="form-control" name="id_factura" id="id_factura" readonly="readonly">
                  <input type="text" class="form-control" id="numero_factura" name="numero_factura" required readonly="readonly"> 
				 
                </div>
			  </div>
			   
               <div class="form-group">
				<label for="mod_nombre" class="col-sm-3 control-label">Nombre</label>
				<div class="col-sm-8">
				  <input class="form-control" id="responsable" name="responsable" placeholder="Reponsable de la Mercnacia" required="required" onKeyPress="return Valtext(event)">
				</div>
			  </div>
              
              <div class="form-group">
				<label for="usuario" class="col-sm-3 control-label">Cedula</label>
				<div class="col-sm-8">
                  <input type="text" name="cedula" id="cedula" class="form-control"  required="required" onKeyPress="return ValNumero(event)" >
                   </div>
			  </div>
               <div class="form-group">
				<label for="usuario" class="col-sm-3 control-label">Marca del Vehiculo</label>
				<div class="col-sm-8">
                  <input type="text" name="marca_vehiculo" id="marca_vehiculo" class="form-control"  required="required" >
                   </div>
			  </div>
               <div class="form-group">
				<label for="usuario" class="col-sm-3 control-label">Tipo de Vehiculo</label>
				<div class="col-sm-8">
                  <input type="text" name="tipo_vehiculo" id="tipo_vehiculo" class="form-control"  required="required" >
                   </div>
			  </div>
               <div class="form-group">
				<label for="usuario" class="col-sm-3 control-label">Placa del Vehiculo</label>
				<div class="col-sm-8">
                  <input type="text" name="placa_vehiculo" id="placa_vehiculo" class="form-control"  required="required" >
                   </div>
			  </div>
               <div class="form-group">
				<label for="usuario" class="col-sm-3 control-label">Destino</label>
				<div class="col-sm-8">
                  <input type="text" name="destino" id="destino" class="form-control"  required="required" >
                   </div>
			  </div>
			  
			  
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
			<button type="submit" class="btn btn-primary" id="actualizar_datos31">Procesar</button>
		  </div>
		  </form>
		</div>
	  </div>
	</div>
	<?php
		}
	?>