function test() { alert('test'); } function OpenOrdrPrsnttn(url) { return WindowOpen(url,'OrderingPresentation',700,520); } function WindowOpen(url) { var windowname = arguments[1] ? arguments[1] : '_blank'; var opt = ''; var p=''; if (arguments[2]) { opt += p+'width='+arguments[2]; p=','; } if (arguments[3]) { opt += p+'height='+arguments[3]; p=','; } opt += p+'toolbar='+(arguments[4] ? arguments[1] : 'no'); p=','; opt += ',location='+(arguments[5] ? arguments[5] : 'no'); opt += ',directories='+(arguments[6] ? arguments[6] : 'no'); opt += ',status='+(arguments[7] ? arguments[7] : 'no'); opt += ',menubar='+(arguments[8] ? arguments[8] : 'no'); opt += ',scrollbars='+arguments[9] ? arguments[9] : 'yes'; opt += ',resizable='+arguments[10] ? arguments[10] : 'yes'; opt += ',copyhistory'+arguments[11] ? arguments[11] : 'no'; // opt += arguments[] ? arguments[] : 'no'; // opt += arguments[] ? arguments[] : 'no'; return window.open(url,windowname,opt); } function mouse_ctrl(nullz,nully) { return; } // ------------------------------------------------------------------------------- // Anchor Position // Umo�liwia ustalenie x,y po�o�enia objektu na stronie // �r�d�o: http://www.mattkruse.com/javascript/anchorposition/source.html // ------------------------------------------------------------------------------- function getAnchorPosition(anchorname) { // This function will return an Object with x and y properties var useWindow=false; var coordinates=new Object(); var x=0,y=0; // Browser capability sniffing var use_gebi=false, use_css=false, use_layers=false; if (document.getElementById) { use_gebi=true; } else if (document.all) { use_css=true; } else if (document.layers) { use_layers=true; } // Logic to find position if (use_gebi && document.all) { x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]); y=AnchorPosition_getPageOffsetTop(document.all[anchorname]); } else if (use_gebi) { var o=document.getElementById(anchorname); x=AnchorPosition_getPageOffsetLeft(o); y=AnchorPosition_getPageOffsetTop(o); } else if (use_css) { x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]); y=AnchorPosition_getPageOffsetTop(document.all[anchorname]); } else if (use_layers) { var found=0; for (var i=0; i "); //var ZoomWindowObj = document.getElementById('ZoomWindow'); var ZoomWindowObj = GetObject('ZoomWindow'); //alert( ZoomWindowObj ); function ZoomWindow ( x, y, width, height, title, source, source_type ) { // hide - jesli x == -1; if ( x == -1 ) { ZoomWindowObj.style.display = 'none'; return; } // window - tworz tabelke res = ""; res += ""; res += ""; res += ""; res += ""; // content - wstaw zawartosc okna res += ""; res += ""; res += ""; // window - zamknij tabelke res += "
"; // title - wstaw tytaul do okna, jesli zostal zdefiniowany if ( title ) { res += "
 "+title+"
"; } // window close - wstaw kod zamykania okna m_out = "this.className='ZoomWindowClose0'"; m_over = "this.className='ZoomWindowClose1'"; m_click = "ZoomWindowObj.style.display='none'"; res += "
"; res += "
"; res += "X"; res += "
"; if ( source_type == "image" ) { res += "
"; } res += "
"; // ZoomWindow - show ZoomWindowObj.style.left = x; ZoomWindowObj.style.top = y; ZoomWindowObj.style.width = width+2; ZoomWindowObj.style.height = height+2; ZoomWindowObj.style.display = "block"; ZoomWindowObj.innerHTML = res; return; } //ZoomWindow ( 10, 10, 300, 300, "Test Window Title", "obrazek.jpg", "image" );