<?php

include '../ReglasNegocio/bodega.php';
include '../ReglasNegocio/unidad.php';
include "../ReglasNegocio/asociado.php";
$asociado = new asociado();
$folio = $asociado->GetMayor() + 1;
$unidad = new unidad();
$bodega = new bodega();
$boton = "verifica()";
$boton2 = "verifica2()";
?>
<script LANGUAGE="JavaScript">

function verifica()
{
	if (document.miform.NInventario.value.length==0)
   {
		alert("Debe ingresar un Numero de Inventario");
		document.miform.MInventario.focus();
      	return 0;
	}
	if(document.miform.NombreI.value.length==0){
		alert("Debe ingresar un Nombre de Inventario");
		document.miform.NombreI.focus();
      	return 0;
	}
	if(document.miform.periodo.value.length==0){
		alert("Debe ingresar un Periodo, si es indefinido ingrese '-1'");
		document.miform.periodo.focus();
      	return 0;