// JavaScript Document
function centrar(url,largura,altura) {
	largura = largura + 0
	altura = altura + 50

	posx = (screen.width/2)-(largura/2)
	posy = (screen.height/2)-(altura/2)

// configurações da janela
	features="width=" + largura + " height=" + altura + " top=" + posy + " left=" + posx
	window.open(url,"jan",features)
}

function centrar_jan(url,jan,largura,altura) {
	largura = largura + 0
	altura = altura + 50

	posx = (screen.width/2)-(largura/2)
	posy = (screen.height/2)-(altura/2)

// configurações da janela
	features="help=0,width=" + largura + " height=" + altura + " top=" + posy + " left=" + posx
	window.open(url,jan,features)
}

function centrar_bars(url,largura,altura) {
	largura = largura + 0
	altura = altura + 50

	posx = (screen.width/2)-(largura/2)
	posy = (screen.height/2)-(altura/2)

// configurações da janela
	features="scrollbars=yes, width=" + largura + " height=" + altura + " top=" + posy + " left=" + posx
	window.open(url,"jan",features)
}
function envForms() {
	document.frm.submit();
}
function resForms() {
	document.frm.reset();
}

function excluir(id,url){
	if(confirm('Deseja excluir este registro?')) { 
		//location.href=url+'?action=exc&id='+id;
		centrar(url+'?op=exc&id='+id,350,120);
		return true;
	} else { 
		return false;
	}
}
