function Mostrar(objeto) 
{
	var id = objeto.id;
	id = id.replace('_m','');
	var indice = document.getElementById( id + '_e' );
	var menu = document.getElementById( 'menu_' + id );
	menu.style.display = 'block';
	objeto.style.display = 'none';
	indice.style.display = 'block';
}
function Esconder(objeto)
{
	var id = objeto.id;
	id = id.replace('_e','');
	var indice = document.getElementById( id + '_m' );
	var menu = document.getElementById( 'menu_' + id );
	menu.style.display = 'none';
	objeto.style.display = 'none';
	indice.style.display = 'block';
}

function validate(form) {
	
	if (form.nome.value.length < 1){
	alert("Por favor, digite o Nome!");
	form.nome.focus();
	return false;
	}
	
	if (form.email.value.length < 3){
	alert("Entre com o e-mail do Cliente!");
	form.email.focus();
	return false;
	 }
	if (form.email.value.indexOf('@', 0) == -1 || form.email.value.indexOf('.', 0) == -1){
	alert("Entre com um E-mail valido!");
	form.email.focus();
	return false 
	}
	
	if (form.produto.value.length < 1){
	alert("Por favor, Escolha um Produto!");
	form.produto.focus();
	return false;
	}
	
	if (form.quantidade.value.length < 1){
	alert("Por favor, Escolha a Quantidade!");
	form.quantidade.focus();
	return false;
	}
}