Cuando haces esto
action="procesainsertarjea_500_cp.php"
te refieres al mismo formulario cierto no a otro
y esto
<tr>
<td colspan="6" align="center">
<input name="agregar" type="submit" id="agregar" value="Agregar">
</td>
<td width="13%"></td>
</tr>
</table>
<INPUT TYPE="submit" value="Insertar"> por que tienes 2 botones q deberian hacer lo mismo (uno agregar y otro insertar son lo mismo)?