function abreConteudo(div,pag) {
	$("#load").fadeIn("slow");
	$.get(pag,{qazc:'1'}, 
		  function(retorno){
			  	$("#load").fadeOut("slow");
		  		$("#"+div).html(retorno); 
		  		$('#conteudo_dialog').dialog('open');
		  });
}

$(function(){
$('#conteudo_dialog').dialog({
		autoOpen: false,
		modal: false,
		position: 'center',
		width: 900,
		height: 500,
		buttons : {
			"Fechar": function(){
				$(this).dialog("close");
				}
			},
			close: function() {
				location.reload();
				}
	});
});

function popWin(URL,NAME,WIDTH,HEIGHT,RESIZE,SCROLL)  // by yudi Kondo
{
winId = window.open(URL,NAME,'width='+WIDTH+',height='+HEIGHT+',resizable='+RESIZE+',scrollbars='+SCROLL+',menubar=no,toolbar=no,location=no,directories=no,status=no');
		var clientWidth = screen.availWidth;
		var clientHeight = screen.availHeight;
		var xPos = (clientWidth - WIDTH)/2;
		var yPos = (clientHeight - HEIGHT)/2;
		winId.moveTo(xPos,yPos);
}

