function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+' onclick="self.close()">'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function openFlashWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH='+imageWidth+' HEIGHT='+imageHeight+'>');
	newWindow.document.write('  <PARAM NAME=movie VALUE='+imageName+'>');
	newWindow.document.write('  <PARAM NAME=quality VALUE=high>');
//	newWindow.document.write('  <PARAM NAME=wmode VALUE=transparent>');
	newWindow.document.write('  <PARAM NAME=bgcolor VALUE=#FFFFFF>');
	newWindow.document.write('  <EMBED src='+imageName+' quality=high wmode=transparent bgcolor=#FFFFFF  WIDTH='+imageWidth+' HEIGHT='+imageHeight+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	newWindow.document.write('</OBJECT>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function pop(plik,w,h){
okno = null;
if(window.screen) {
	aw = screen.availWidth;
	ah = screen.availHeight; } else {
	aw=640;
	ah=480; }
dane="width="+w+",height="+h+",left="
+(aw-w)/2+",top="
+(ah-h)/2 
+",toolbar=no,location=no,directories=no,"
+"status=no,menubar=no,"
+"scrollbars=yes,resizable=no";
okno=window.open(plik,'pop',dane);
}

function myprint() {window.print();}


function setCheckboxes(the_form, do_check)
{
    var elts      = document.forms[the_form].elements['intranauci[]'];
    var elts_cnt  = (typeof(elts.length) != 'undefined')
                  ? elts.length
                  : 0;
    if (elts_cnt) {
        for (var i = 0; i < elts_cnt; i++) {
            elts[i].checked = do_check;
        }
    } else {
        elts.checked        = do_check;
    }
    return true;
}