// JavaScript Document
function checa(nome)
{
	var agree=confirm("Você deseja realmente apagar?");
	if (agree)
		return true ;
	else
		return false ;
}

function form()
{
	var valor = document.getElementById("nome").value; 
	if (valor)
		return true ;
	else
		alert("O campo MARCA é obrigatorio")
		return false ;
}

function formCat()
{
	var valor = document.getElementById("nome").value; 
	if (valor)
		return true ;
	else
		alert("O campo CATEGORIA é obrigatorio")
		return false ;
}