<div align="right" id="formulario" style="display:none;"></div>
<div align="right">
<a style="text-decoration:underline;cursor:pointer;" onClick="pedirDatos()"/><img src="logos/WER.gif" align="center"/></a>
</div>
<div align="center">
  <form name="form1" method="post" action="">
    <table  align="center" bordercolor="#FFCC00" bordercolordark="#FFCC00">
      
	  <tr>
        <th colspan="2">CATALOGO DE MARCAS</th>
      </tr>
      
      <tr>
        <th>BUSQUEDA        </th>
      </tr>
    
      <tr>
        <td colspan="2"><input type="submit" name="Submit" value="Buscar" class="bot_WsW"/>
		<img src="magnifier.png" alt="Buscar" onClick="alert('Buscar')" />
        <input name="tbus" type="text" onBlur="may(this)" size="30"/></td>
      </tr>
      <tr>
        <th colspan="2">CATALOGO DE MARCAS</th>
      </tr>
      <tr>
        <td colspan="2"><div align="center">
          <input name="tbus2" type="text" id="tbus" onBlur="may(this)" size="50"
		<?php

			if(isset($_POST['tbus'])){ 
				echo 'value="' . $_POST['tbus'] .  '"';
			}
		?>
		/>
        </div></td>
      </tr>   
    </table>
  </form>
</div>
<form name="frm1" method="post" action="" >
<body>
<div align="center">
<?php
 
	$sql = mysqli_query($con ,"SELECT * FROM comar ORDER BY np_desc1");
	include("DE10000.php");
	?>
<table width="532" border='1' bordercolor="#FFCC00" bordercolordark="#FFCC00">
      <tr>
        <td colspan="4"> 
          <div align="center">
			<input type="Submit" name="bot3" value="Consultar"  onClick="openpage('CO20500_CO.php','_self')" class="original"/>
			<input type="button" name="bot2" value="Modificar" onClick="openpage('CO20500_MO.php','_self')" class="bot_WsW" />
            <input type="button" name="bot4" value="Imprimir " onClick="openpage('CO20500_IM.php','_self')" class="original"/>
             <input type="button" name="bot1" value="Eliminar" onClick="openpage('CO20500_EL.php','_self')" class="bot_RjR"/>
			<!--input type="button" name="bot42" value="Exporta Exel" onClick="openpage('CO20500_IME.php','_self')"class="original"/-->
			
          </div >
   		</td></tr>
<tr>
      <th width="57"  nowrap><div align="center">SEL</div></th>
        <th width="76"  nowrap><div align="center">CODIGO</div></th>
		<th width="244"  nowrap><div align="center">DESCRIPCION</div>		  
	  <div align="center"></div></th>
	    <th width="415"  nowrap>STATUS</th>
    </tr>
	  <?php

	echo '<input name="txt_bus" type="hidden" value="'.$_POST['tbus'].'">';
	if($_POST['r1']=="")
	{
		echo '<input name="tip_bus" type="hidden" value="nombre">';
		@$sql = mysqli_query($con ,"SELECT * FROM comar WHERE np_desc1 like '%".$_POST['tbus']."%'");
	}
	while($reg = mysqli_fetch_array($sql))
	{
	  	echo "<tr>";
		echo '<td> <div align="center"><input name="bot" type="radio" value="'. $reg["nparte1"].'"></div></td>';
		echo "<td> <div align='center' style=' '><strong>" . $reg["nparte1"] . "&nbsp;</strong></div></td>";
		echo "<td> <div align='center' style=' '><strong>" . $reg["np_desc1"] . "&nbsp;</strong></div></td>";
		echo "<td> <div align='center' style=' '><strong>" . $reg["descripcion"] . "&nbsp;</strong></div></td>";
		echo "</tr>";
	}
	mysqli_close($con);
	?>
  </table>
</div>
</body>
</form>