document.getElementsByClassName = function (needle) { var my_array = document.getElementsByTagName("*"); var retvalue = new Array(); var i; var j; for (i = 0, j = 0; i < my_array.length; i++) { var c = " " + my_array[i].className + " "; if (c.indexOf(" " + needle + " ") != -1) retvalue[j++] = my_array[i]; } return retvalue; } function addEvent(obj, evType, fn) { if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; } else if (obj.attachEvent) { var r = obj.attachEvent("on"+evType, fn); return r; } else { return false; } } function printPageOld() { u=window.location.href; //alert(u); width=500; height=600; Win = window.open(u,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' ); Win.hideForPrint(); //el1=document.getElementById('MainDiv'); //alert(el1); return; } function printPage() { window.print(); } function Togglediv(divName) { alert(document.getElementById(divName).style.display); if (document.getElementById(divName).style.display == "none") { Showdiv(divName) ; } else { Hidediv(divName) ; } } function Showdiv(divName) { with (document.getElementById(divName).style) { display = "block"; } } function Hidediv(divName) { with (document.getElementById(divName).style) { display = "none"; } } function onLoadFunctions(){ } function hideAllOferta(){ //hide all for(i=0;i
Kliknij, aby zamkn±c
"; nazwa= window.open('',nazwaOkna,parametry); top.nazwa.document.writeln(tresc); } pretty_window = null; function openWindow(){ pretty_window = window.open('','admSend_window','width=400,height=147'); return true; }