// ------- rozne ------------------------------------ function ulubione() { window.external.addFavorite('http://www.finaster.com','FINASTAR Doradcy finansowi'); } /* --- z edytora --- */ function zdjecie_e(zdj) { var obj=window.open("e-cms/zdjecie_e.php?typ=1&zdj="+zdj, 'zdjecie', "width=50,height=50,status=yes,resizable=no,top=50,left=50,scrollbars=yes,dependent=yes,alwaysRaised=yes"); obj.focus(); } function formularzKontaktowy() { var wnd = window.open('http://www.finaster.com/kontakt.php', 'formularz_kontaktowy', 'height=700,width=730,left=0,top=0,status=yes,scrollbars=yes'); wnd.focus(); } // --- wywietla popup z powiekszeniem foty function zdjeciePowiekszenie(typ, id, lng) { var wnd = window.open('index_zdjecie.php?typ='+typ+'&id='+id+'&lng='+lng, 'Zdjecie'+typ+id, 'height=50,width=50,left=50,top=50,status=yes,scrollbars=yes'); wnd.focus(); } // --- drukowanie informacja function drukuj(id, lng) { var wnd = window.open('index_wydruk.php?idi='+id+'&lng='+lng, 'Wydruk'+id, 'width=800,height=600,status=yes,resizable=yes,top=50,left=50,scrollbars=yes'); wnd.focus(); } // ---------------------------- KARTKI ------------------------------------ function eKartkaWyslij(frm) { var blad = false; var pole = null; var txt = null; if (frm.kartka_nadawca.value == '') { blad = true; pole = frm.kartka_nadawca; txt = "nadawca"; } else if (frm.kartka_nadawca_e.value == '') { blad = true; pole = frm.kartka_nadawca_e; txt = "e-mail nadawcy"; } else if (frm.kartka_odbiorca_e.value == '') { blad = true; pole = frm.kartka_odbiorca_e; txt = "e-mail odbiorcy"; } else if (frm.kartka_tresc.value == '') { blad = true; pole = frm.kartka_tresc; txt = "treść"; } if (blad == false) return true; else { if (txt != null) alert("Prosze poprawnie wypełnić pole "+txt+" żeby wysłać kartkę!"); if (pole != null) pole.focus(); return false; } } // --- chowa warstwe z kartka function eKartkaAnuluj() { var w1 = document.getElementById('eCardBg'); var w2 = document.getElementById('eCard'); if (w1 && w2) { w1.style.visibility = 'hidden'; w2.style.visibility = 'hidden'; } } // --- czysci pole wyszukiwania function autoLegendaUstaw(frm, pole) { var a = eval("document."+frm+".auto_legenda.value"); if (a == 1) { var c = null; if (pole.indexOf('[') == -1) c = eval("document."+frm+"."+pole); else c = eval("document."+frm).elements[pole]; eval("document."+frm+".auto_legenda.value = 0"); c.value = ''; } }