// JavaScript Document // Variaveis utilizadas para javascripts var conf = new Array(); conf['pasta'] = ""; // Funcao para habilitar/desabilitar a partir de um objeto function habilitar(div, status, subdivs) { var i = 0; for (i = 0; i < div.childNodes.length; i++) { var objeto = div.childNodes[i]; if (div.childNodes[i].hasChildNodes()) { habilitar(objeto, status, subdivs); objeto.disabled = !status; } else { objeto.disabled = !status; if (objeto.tagName == 'IMG') objeto.style.display = (status ? "" : "none"); } } } function nova_entidade() { var nova_ent = document.getElementById('nova_ent'); var modulo = document.getElementById('modulo'); var ret = exec_ajax_sincrono("sis_admin/?op=nova_entidade&nova_ent=" + nova_ent.value + "&modulo=" + modulo.value); //atualiza_frame(); var frame = window.frames[0] ? window.frames[0]:""; if(frame!="") { if (typeof frame.carr_libera == 'function') { frame.carr_libera(); } if (typeof frame.carr_movimentacao == 'function') { frame.carr_movimentacao(); } } } function atualiza_frame() { var divs = window.frames; var no = 0; var resposta = true; var f = ""; var doc = ""; // atualiza frames sem o refresh_tela for (no = 1; no < divs.length; no++) { frame = (divs[no] ? divs[no] : (window.frames[no] ? window.frames[no] : "")); if (typeof frame.refresh_tela == 'function') { frame.refresh_tela(); } else { frame.location.href = frame.location.href; } frame.free; } }