function maillist(){
	var largura = 356;
	var altura = 218;
	var nome = document.maillist.nome.value;
	var email = document.maillist.email.value;
	window.open("sucesso.php?nome="+nome+"&email="+email,"popup","top=" + parseInt((screen.availHeight/2) - (altura/2))+ " , left=" + parseInt((screen.availWidth/2) - (largura/2)) + " directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=yes, toolbar=no, width=" + largura + ", height=" + altura, false);
}

function ampliar(cod_produto) {
	var largura = 500;
	var altura = 300;
	var end = 'foto.php?cod_produto='+cod_produto;
	window.open(end,"imagem","top=" + parseInt((screen.availHeight/2) - (altura/2))+ " , left=" + parseInt((screen.availWidth/2) - (largura/2)) + " directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=yes, toolbar=no, width=" + largura + ", height=" + altura, false);
}

function mapa() {
	var largura = 490;
	var altura = 420;
	var end = 'mapa.php';
	window.open(end,"imagem","top=" + parseInt((screen.availHeight/2) - (altura/2))+ " , left=" + parseInt((screen.availWidth/2) - (largura/2)) + " directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=yes, toolbar=no, width=" + largura + ", height=" + altura, false);
}

function inserir(cod_pro,cod_cat,de) {
	document.location.href = 'orcamento.php?acao=inserir&cod_pro='+cod_pro+'&cod_cat='+cod_cat+'&de='+de;
}

function excluir_orc(cod_pro){
	if(confirm("Tem certeza que gostaria de remover este item de seu orçamento?")) {
		document.location.href = 'orcamento.php?acao=excluir&cod_pro=' + cod_pro;
	}
}