//document.oncontextmenu=new Function( "return false" ); function callALBUM(){OpenWindow('http://www.torreforte.com.br/utilitario/albumphoto/?rnd=201031048', 'PHOTOS', 750, 500, 1);} function callBIBLIA(p){OpenWindow(p, 'biblia', 750, 500, 1);} function callCHAT(p){OpenWindow(p, 'batepapo',750,500, 1);} function callFALECONOSCO(p){OpenWindow(p, 'faleconosco', 750, 500,1 );} function callLIVRODEVISITA(p){OpenWindow(p, 'livrodevisita', 750, 500,1 );} function callINTERCESSAO(p){OpenWindow(p, 'intercessao', 750, 500,1);} function callEVENTOS(p){OpenWindow(p, 'Eventos', 750, 500,1);} function callLOGIN(){TelaAcesso();} var TAB_ATUAL function setTabFocus(obj,docto) { for( i=0; i < oTABS.length; i++ ){ oTABS[i].className="TAB_INATIVA"; if ( obj.Tabname == oTABS[i].Tabname ){ TAB_ATUAL = obj.Tabname; oTABS[i].className = "TAB_ATIVA"; oTABS[i].oldClassName = "TAB_ATIVA"; } } getHTML(docto); obj.blur() } function addFAVORITE(p1){ if (document.all){ window.external.AddFavorite(p1,"Biblia World Net - O Maior Portal de Conteúdo Evangélico em Língua Portuguesa!") } } function OnLoad(p){ var oERRP = document.getElementById("errPORTAL") document.title=" Biblia World Net | "+ p + " | O Maior Portal de Conteúdo Evangélico em Língua Portuguesa!"; try { dspNews(); } catch(e) { oERRP.innerText += "news bar failed"; } try { clockStatus(); } catch(e) { oERRP.innerText += "clock failed"; } try { startAbout() } catch(e) { oERRP.innerText += "about failed"; } try { doBanner(); } catch(e) { oERRP.innerText += "banner bar failed"; } } function OnLoadII(p){ var oERRP = document.getElementById("errPORTAL") document.title=" Biblia World Net | "+ p + " | O Maior Portal de Conteúdo Evangélico em Língua Portuguesa!"; alert('estou homologando....'); try { dspNews(); } catch(e) { oERRP.innerText += "news bar failed"; } try { clockStatus(); } catch(e) { oERRP.innerText += "clock failed"; } try { startAbout() } catch(e) { oERRP.innerText += "about failed"; } try { doBanner(); } catch(e) { oERRP.innerText += "banner bar failed"; } } function startAbout(){ if ( window.navigator.mimeTypes.length <= 0 ){ document.oncontextmenu=callPOPUP } else { document.oncontextmenu=new Function( "return false" ); } } function callPOPUP(){ var oP = document.getElementById('popupMenu'); oP.style.left = document.body.scrollLeft + event.clientX; oP.style.top = document.body.scrollTop + event.clientY; oP.style.visibility = "visible"; document.body.onclick=hidePopMenu; return false; } function hidePopMenu(){ var o = document.getElementById("popupMenu") o.style.visibility = "hidden" } function MenuOnOff(o){ var obj = document.getElementById(o); if ( obj.style.display == '' ){ obj.style.display='none'; } else { obj.style.display=''; } } function rollOver(o){ var obj = o.getElementsByTagName('img').item(0); var x = new String(); var s = new String(); x = obj.src; s = x.substr( 0, x.lastIndexOf('/',10000)+1 ); x = x.substr( x.lastIndexOf('/',10000)+1 ); if ( x == obj.imgOpen ) { obj.src = s+obj.imgClose; } else { obj.src = s+obj.imgOpen; } } var BAUP = '/docto/image/portal/seta_volta.jpg'; var BADN = '/docto/image/portal/seta_vai.jpg'; var BIUP = '/docto/image/portal/seta_volta_luz.jpg'; var BIDN = '/docto/image/portal/seta_vai_luz.jpg'; var aHistory = new Array() var nHistory = 0 function initHistory(){ aHistory = new Array() } function addHistory(p){ var btnB = document.getElementById("btnBACK") var btnF = document.getElementById("btnFORWARD") if ( nHistory < (aHistory.length-1) ){ nHistory++ aHistory[nHistory] = p } else { aHistory[aHistory.length?aHistory.length:0] = p nHistory = aHistory.length-1 } btnB.firstChild.src=BIUP btnF.firstChild.src=BIDN if (aHistory.length < 2 ){ btnB.disabled = true btnF.disabled = true } else { if ( nHistory < (aHistory.length-1) ){ btnB.disabled = false btnF.disabled = false btnB.firstChild.src=BAUP btnF.firstChild.src=BADN } else { btnB.disabled = false btnF.disabled = true btnB.firstChild.src=BAUP } } } function executeContent(p){ document.frmControl.cod_HTML.value=p executeRequest( "action=content,canal_default=2,cod_html="+p+",callme=false" ) } function backContent(){ var btnB = document.getElementById("btnBACK") var btnF = document.getElementById("btnFORWARD") if (nHistory > 0){ nHistory-- executeContent(aHistory[nHistory]) } btnB.firstChild.src=BAUP btnF.firstChild.src=BADN if ( nHistory == 0 && aHistory.length >= 2){ btnB.disabled = true btnB.firstChild.src=BIUP btnF.disabled = false } else { btnB.disabled = false btnF.disabled = false } } function forwardContent(){ var btnB = document.getElementById("btnBACK") var btnF = document.getElementById("btnFORWARD") if (nHistory < (aHistory.length-1)){ nHistory++ executeContent(aHistory[nHistory]) } btnB.firstChild.src=BAUP btnF.firstChild.src=BADN if ( nHistory == (aHistory.length-1) ){ btnB.disabled = false btnF.disabled = true btnF.firstChild.src=BIDN } else { btnB.disabled = false btnF.disabled = false } } function updateContent(){ if (aHistory.length > 0){ executeContent(aHistory[nHistory]) } } var aNEWS = new Array(); var nIndice = 0; var nTimer = 0; var nPos = 1; var sTEXT = ""; var nwsTEXT = 0; var nwsTARGET = 2; var nwsHREF = 1; var nwsTIMER = 3; var obj2 = ""; var wsi = ""; var wst = ""; function addNews( pTEXT, pTARGET, pHREF, pTIMER ){ aNEWS[ aNEWS.length ? aNEWS.length : 0 ] = [ pTEXT, pTARGET, pHREF, pTIMER ]; } function setNext(){ nIndice++; if (nIndice > (aNEWS.length-1)){ nIndice = 0; } setNews(); } function setPrevious(){ nIndice--; if (nIndice < 0){ nIndice = (aNEWS.length-1) ; } setNews(); } function setNews(){ nPos = 0; obj2.innerHTML = ""; obj2.onclick = new Function(aNEWS[nIndice][nwsHREF]); sTEXT = aNEWS[nIndice][nwsTEXT]; nTimer = aNEWS[nIndice][nwsTIMER]; } function showNews(){ nPos+=2; if (nPos > (sTEXT.length+2) ){ if (wsi){ window.clearInterval(wsi) } wst=window.setTimeout("setNext();startNews()", (nTimer*1000) ); return 0; } else { obj2.innerHTML = getMSG(); } } function getMSG(){ var x = new String() x = sTEXT; x = x.substr(0,nPos) if ( x.length > 80 ){ x = x.substr( x.length-80, 80 ); } return x + "_"; } function startNews(){ wsi=window.setInterval( "showNews()", 250 ); } function dspNews(){ obj2 = document.getElementById('noticias'); startMSG() setNews() startNews() } function startMSG(){ var data = new Date() with (Math){ var nmax = (aNEWS.length-1) var nrnd = round((random()*data.getMilliseconds()) % nmax ) } nIndice = nrnd if (nIndice>(aNEWS.length-1)){ nIndice = 0; } // nIndice = 0; para nao gera aleatorio } function setIMAGE(pSrc){ alert(pSrc) return pSrc; } var vVal = 0; var vAux = vVal; var SERVER_CONTROLLER = "/escslibrary/escs.control.asp"; function getHTML(cod_html) { try{ document.getElementById("newsPLAYER").innerHTML = "
Aguarde Processando ...
"; var params = "action=dinamicscript,cod_html="+cod_html+"," var head = document.getElementsByTagName('head').item(0); var old = document.getElementById('LoadedCmds'); if (old) head.removeChild(old); script = document.createElement('script'); parameters = new String(params).split(','); var scriptUrl = SERVER_CONTROLLER + '?rnd=' + Math.random(); for (var i = 0; i < parameters.length; i++) { scriptUrl += "&" + parameters[i]; } script.src = scriptUrl; script.type = 'text/javascript'; script.defer = false; script.id = 'LoadedCmds'; void(head.appendChild(script)); } catch(e) { window.status = "error found:" + e.description ; } return true; } function executeRequest(params) { try{ //document.getElementById("rstCentral").innerHTML + "
Aguarde Processando ...
"; var head = document.getElementsByTagName('head').item(0); var old = document.getElementById('lastLoadedCmds'); if (old) head.removeChild(old); script = document.createElement('script'); parameters = new String(params).split(','); var scriptUrl = SERVER_CONTROLLER + '?rnd=' + Math.random(); for (var i = 0; i < parameters.length; i++) { scriptUrl += "&" + parameters[i]; } if (parameters[2].toUpperCase().indexOf('COD_HTML') > -1 ) { if ( parameters[3].toUpperCase().indexOf('CALLME=1') > -1 ) { addHistory( parameters[2].substr( parameters[2].indexOf("=")+1 ) ) } } script.src = scriptUrl; script.type = 'text/javascript'; script.defer = false; script.id = 'lastLoadedCmds'; void(head.appendChild(script)); } catch(e) { window.status = "error found:" + e.description ; } return true; } function update(frame, id, html) { var doc = eval(frame + '.document.getElementById("'+id+'")' ); if (doc) { doc.innerHTML = html try{startSlide()}catch(e){} } } function updateCenter(id, html) { update('window', id, html); } function makeArray() { this[0] = makeArray.arguments.length; for (i = 0; i < makeArray.arguments.length; i = i + 1){ this[i+1] = makeArray.arguments[i]; } } function checkEnter(e){ var characterCode if(e && e.which){ e = e characterCode = e.which } else { e = event characterCode = e.keyCode } if(characterCode == 13){ return true } else { return false } } function OnEmail(){ var obj = document.getElementById("sendmail") obj.href = "mailto:?body=Este Documento foi Extraido Do Site »» " + window.location.href ; obj.click() } function ESCSStop(){ try{ document.removeChild( document.getElementById("MPIIESCS2") ); } catch(e){ null; } } function ESCSPlay( file_url ){ alert( file_url ); var param1 = document.createElement("param"); param1.setAttribute("name", "fileName"); param1.setAttribute("value", file_url); var param2 = document.createElement("param"); param2.setAttribute("name", "animationatStart"); param2.setAttribute("value", "true"); var param3 = document.createElement("param"); param3.setAttribute("name", "transparentatStart"); param3.setAttribute("value", "true"); var param4 = document.createElement("param"); param4.setAttribute("name", "autoStart"); param4.setAttribute("value", "true"); var param5 = document.createElement("param"); param5.setAttribute("name", "showControls"); param5.setAttribute("value", "false"); var param6 = document.createElement("param"); param6.setAttribute("name", "loop"); param6.setAttribute("value", "false"); var param7 = document.createElement("param"); param7.setAttribute("name", "controller"); param7.setAttribute("value", "false"); var object = document.createElement("object"); object.appendChild(param1); object.appendChild(param2); object.appendChild(param3); object.appendChild(param4); object.appendChild(param5); object.appendChild(param6); object.appendChild(param7); var embed = embed = document.createElement("embed"); embed.setAttribute("src", file_url); embed.setAttribute("loop", "false"); embed.setAttribute("autostart", true); embed.setAttribute("showcontrols", "false"); embed.setAttribute("controller", "false"); var div = document.createElement("mytag"); div.setAttribute("id", "MPIIESCS2"); try { object.appendChild(embed); div.appendChild(object); } catch(e) { div.appendChild(embed); } document.appendChild( div ) } function ChangeSystem(p){ document.frmControl.cod_sistema.value=p document.frmControl.cod_HTML.value="" document.frmControl.submit(); } function CallSystemContent(pS,pC){ document.frmControl.cod_sistema.value=pS if(pC){ document.frmControl.cod_HTML.value=pC } document.frmControl.submit(); } function CallConteudoHtml(p){ document.frmControl.cod_HTML.value=p executeRequest( "action=content,canal_default=2,cod_html="+p+",callme=1" ) } function OpenWindow( url, nm, nW, nH, nS, nSRL ){ var scrW = nW var scrH = nH var sFeature sFeature += "fullscreen=0," sFeature += "titlebar=0," sFeature += "alwaysRaised=0," sFeature += "alwaysLowered=0," sFeature += "toolbar=0," sFeature += "scrollbars=1" sFeature += "location=0," sFeature += "directories=0," sFeature += "hotkeys=0," sFeature += "personalbar=0," sFeature += "resizable=1," sFeature += "menubar=0," sFeature += "status="+ (nS,"0",nS) + "," sFeature += "width="+scrW+"px," sFeature += "height="+scrH+"px," sFeature += "top=25px," sFeature += "left=12px" winpop=window.open( url, nm, sFeature ) winpop.focus(); } function CallLink( url ){ var dt = new Date() var nm = "win"+dt.getFullYear()+""+dt.getMonth()+""+dt.getDay()+""+dt.getHours()+""+dt.getMinutes()+""+dt.getSeconds(); var wl = window.open( url, nm ) wl.focus(); } function CallImage( url ){ var scrW = window.screen.availWidth - 50 var scrH = window.screen.availHeight - 100 var sFeature sFeature += "fullscreen=0," sFeature += "titlebar=0," sFeature += "alwaysRaised=0," sFeature += "alwaysLowered=0," sFeature += "toolbar=0," sFeature += "scrollbars=1," sFeature += "location=0," sFeature += "directories=0," sFeature += "hotkeys=0," sFeature += "personalbar=0," sFeature += "resizable=1," sFeature += "menubar=0," sFeature += "status=1," sFeature += "width="+scrW+"px," sFeature += "height="+scrH+"px," sFeature += "top=25px," sFeature += "left=12px" winpop=window.open( '/ESCSImage.asp?img='+url, 'ESCSImage', sFeature ) winpop.focus(); } function CallProgram( url, nm ){ var scrW = window.screen.availWidth - 50 var scrH = window.screen.availHeight - 100 var sFeature sFeature += "fullscreen=0," sFeature += "titlebar=0," sFeature += "alwaysRaised=0," sFeature += "alwaysLowered=0," sFeature += "toolbar=0," sFeature += "scrollbars=1," sFeature += "location=0," sFeature += "directories=0," sFeature += "hotkeys=0," sFeature += "personalbar=0," sFeature += "resizable=1," sFeature += "menubar=0," sFeature += "status=1," sFeature += "width="+scrW+"px," sFeature += "height="+scrH+"px," sFeature += "top=25px," sFeature += "left=12px" winpop=window.open( url, nm, sFeature ) winpop.focus(); } function CallURL(url){ location.href=url } function CallMe(p){ var v = new String() if ( p == 1 ){ var bChoice = window.confirm("Deseja Realmente Excluir Este Registro ?"); if (!bChoice){ return false; } } v=document.formulario.oper.value document.formulario.oper.value=v.charAt(0) document.formulario.oper.value+=p document.formulario.submit() } var nOnOffSEARCH = 1; function onoffSEARCH(o){ var oPainel = document.getElementById("RPainel") if (nOnOffSEARCH == 1){ oPainel.style.width = 700; oPainel.style.top = 20 oPainel.style.height = 33; nOnOffSEARCH = 0 o.innerHTML = "clique aqui para expandir »» " o.style.width='205' } else { oPainel.style.width = 700; oPainel.style.top = 20 oPainel.style.height = (document.body.offsetHeight - 40); nOnOffSEARCH = 1 o.innerHTML = "" o.style.width='18' } } function search_Content(){ var nOnOffSEARCH = 1; var oRep = document.getElementById("idReport") oRep.style.height = document.body.scrollHeight oRep.style.display = "" var oBrowser = top.frames[0] var oPainel = document.getElementById("RPainel") oPainel.style.width = 700; oPainel.style.top = 20 oPainel.style.height = (document.body.offsetHeight - 40); var oDocto = document.getElementById("rstCentral") oBrowser.document.open() oBrowser.document.writeln("") oBrowser.document.writeln("definição para pesquisa") oBrowser.document.writeln("") oBrowser.document.writeln("