\n'); } // roda na inicialização do form function init() { CarregaEvento("i", "onload", iframe_load); timmer_confirm_pres = setInterval("confirma_presenca()", 1); } // de tempos em tempos para confirmar presença // importante, pois conexões não confirmadas em até 3minutos, serão excluídas function confirma_presenca() { if (params != "") { AtribFrameLocation("i","registr.aspx?" + params); } } // iframe load para diagnóstico de submissão function iframe_load() { // ideal seria evitar carga, mas será feita por enquanto var container; if (frames["i"].document) { container = frames["i"].document; } else { container = $("i").contentDocument; } var obj = $("connseq", container); if (obj != undefined) { if (obj.value == "0") { palestra_reconecta(); } } } // atribui url a location de frame function AtribFrameLocation(Frame, URL) { if (frames[Frame]) { frames[Frame].location.href = URL; } else { $(Frame).src = URL; } } //--> function posicionaDiv(){ if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { x = window.innerWidth; y = window.innerHeight; document.getElementById("iframediv").style.left = (x - document.getElementById("iframediv").style.width.substring(0,document.getElementById("iframediv").style.width.length - 2)) / 2 - 10 + "px"; document.getElementById("iframediv").style.top = (y - document.getElementById("iframediv").style.height.substring(0,document.getElementById("iframediv").style.height.length - 2)) / 2 - 13 + "px"; } if (navigator.appName.indexOf("Microsoft")!=-1) { x = document.body.offsetWidth; y = document.body.offsetHeight; document.getElementById("iframediv").style.left = (x - document.getElementById("iframediv").style.width.substring(0,document.getElementById("iframediv").style.width.length - 2)) / 2 - 10 + "px"; document.getElementById("iframediv").style.top = (y - document.getElementById("iframediv").style.height.substring(0,document.getElementById("iframediv").style.height.length - 2)) / 2 - 9 + "px"; } } } function carregaBoleto(url_iframe){ document.getElementById('iframediv').style.visibility = 'visible'; document.getElementById('iframediv').style.display = 'inline'; AtribFrameLocation("Iframe1",url_iframe); } window.onload = function(){ posicionaDiv(); }