//****************************************************************************** //****************************************************************************** var shPopupTabIdx=null; var shPopupTabOutCor="#fdfdfd"; var shPopupTabOverCor="#eeeeee"; var shPopupTabClickCor="#ffff00"; //****************************************************************************** //****************************************************************************** function shPopupOut(Vobj) { //alert(shPopupTabIdx); if(shPopupTabIdx && (shPopupTabIdx.id == Vobj.id)) Vobj.style.background=shPopupTabClickCor; else Vobj.style.background=shPopupTabOutCor; } //****************************************************************************** //****************************************************************************** function shPopupClick(Vobj, Vid, Vname, Vfile, Vdate0, Vdate1, Vlink) { if(shPopupTabIdx) shPopupTabIdx.style.background=shPopupTabOutCor; //alert(Vobj.parentNode.nodeName); Vobj.parentNode.parentNode.parentNode.style.background=shPopupTabClickCor; shPopupTabIdx=Vobj.parentNode.parentNode.parentNode; document.shPopupForm.shFid.value=Vid; document.shPopupForm.shFname.value=Vname; document.shPopupForm.shFfile.value=Vfile; document.shPopupForm.shFdate0.value=Vdate0; document.shPopupForm.shFdate1.value=Vdate1; document.shPopupForm.shFlink.value=Vlink; } //****************************************************************************** //****************************************************************************** function shPopupDel(Vform, Vid) { var Lobj=document.getElementById("shTblRow0" + Vid); var Lname=""; if((navigator.appName.indexOf("Microsoft"))>=0) { if(Lobj.childNodes[1].childNodes[0]) Lname=Lobj.childNodes[1].childNodes[0].childNodes[0].innerHTML; } else { Lname=Lobj.childNodes[3].childNodes[0].childNodes[0].innerHTML; } // alert(Ltd.className ); //nextSibling nodeName className // return; Lres = confirm("ATENÇÃO:\nvocê realmente, sinceramente, quer remover para sempre o banner '" + Lname + "' ?\nmas tem realmente certeza do que está fazendo ?"); if(!Lres) return; document.shPopupForm.shFid.value=Vid; shPopupPost("del"); } //****************************************************************************** //****************************************************************************** function shPopupPost(Vop) { // document.shWebFormCont.action="http://www.fundacine.org.br/intranet/fi_cont.php"; document.shPopupForm.action=document.location.href; document.shPopupForm.shPopupForm.value=Vop; document.shPopupForm.submit(); } //****************************************************************************** //****************************************************************************** function shPopupCallExt(Vname, Vfile, Vlink) { Lres=Array(3); Lres[0]=Vname; Lres[1]=Vfile; Lres[2]=Vlink; if(0>=Lres[0].length) return; Lwid=0; if(window.screenX)Lleft=window.screenX; else { Lwid=-5; Lleft=window.screenLeft; } if(window.screenY) Ltop=window.screenY+120; else { Lhei=-4; Ltop=window.screenTop+40; } Lleft+=80; Lwid=Lwid+600; Lhei=Lhei+110; Lwhnd=window.open(null, "shPopup", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,left="+Lleft+",top="+Ltop+",width="+Lwid+",height="+Lhei); Lwhnd.self.location="http://www.fundacine.org.br/include/sh/shPopup.php?Vname="+Lres[0]+"&Vfile="+Lres[1]+"&Vlink="+Lres[2]; Lwhnd.self.focus(); // } //****************************************************************************** // FUNCTION: // ARGUMENT: // RETURNS : //****************************************************************************** function shPopupCall(Vop) { if(Vop) gbl_firstPage=Vop; Ltmp="'', '', ''"; if((!Ltmp.length) || (1!=gbl_firstPage)) return; eval("var Lres=Array("+Ltmp+");"); if(0>=Lres[0].length) return; shPopupCallExt(Lres[0], Lres[1], Lres[2]); }