var newWindow = null; function BSelect(pSrc, pAr, pDest, idDestSel) { var vyber = pSrc.selectedIndex var hodnota = pSrc.options[vyber].value var j=0 pDest.options[j++] = new Option("---", "") for (var i=0; i= a[0] && b[0] <= aw && b[1] >= a[1] && b[1] <= ah) return 1; if(bw >= a[0] && bw <= aw && bh >= a[1] && bh <= ah) return 1; if(bw >= a[0] && bw <= aw && b[1] >= a[1] && b[1] <= ah) return 1; if(b[0] >= a[0] && b[0] <= aw && bh >= a[1] && bh <= ah) return 1; if(b[0] + (b[2] / 2) >= a[0] && b[0] + (b[2] / 2) <= aw && b[1] + (b[3] / 2) >= a[1] && b[1] + (b[3]/2) <= ah) return 1; return 0; } function MenuOutTimer() { timehnd = setTimeout("hideMenu();", 700); } function MenuOverTimer() { if(timehnd) { clearTimeout(timehnd); timehnd = 0; } } function findPos(obj) { var curleft = curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft curtop = obj.offsetTop while (obj = obj.offsetParent) { curleft += obj.offsetLeft curtop += obj.offsetTop } } return [curleft,curtop]; } function closeWin(){ if (newWindow != null){ if(!newWindow.closed) newWindow.close(); } } function popUpWin(url, type, strWidth, strHeight){ closeWin(); if (type == "fullScreen"){ strWidth = screen.availWidth - 10; strHeight = screen.availHeight - 160; } leftVal = (screen.width - strWidth ) / 2; topVal = (screen.height - strHeight) / 2; var tools=""; if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0"; if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left="+leftVal+",top="+topVal+""; if (type == "scroll") tools = "resizable,toolbar=no,location=no,scrollbars=yes,width="+strWidth+",height="+strHeight+",left="+leftVal+",top="+topVal+""; newWindow = window.open(url, 'newWin', tools); newWindow.focus(); }