function fds() {
	window.status='Witamy na stronie Forum 3D';
	setTimeout("fds();",50);
}

function show_pic(plik,szerokosc,wysokosc) {
	okienko=window.open('','okienko','directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,height='+wysokosc+',width='+szerokosc+'')
	okienko.document.open();
	okienko.document.write('<html><head><title>Forum3D</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><img src="'+plik+'" onclick="window.close()"></body></html>');
	okienko.document.close();
	okienko.focus();
}

function show_pic2(plik,szerokosc,wysokosc) {
	okienko=window.open('','okienko','directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,height='+wysokosc+',width='+szerokosc+'')
	okienko.document.open();
	okienko.document.write('<html><head><title>Forum3D</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><img src="'+plik+'" onclick="window.close()"></body></html>');
	okienko.document.close();
	okienko.focus();
}


function open_win(url,szerokosc,wysokosc) {
	okienko=window.open(url,'okienko','directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,height='+wysokosc+',width='+szerokosc+'')
	okienko.focus();
}

function setPointer(theRow, thePointerColor)
{
    var theCells = null;

    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }
    return true;
}

        function displayWindow(url, width, height) {
        var Win = window.open(url,"preview",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,alwaysRaised,screen-x=0' );
}

        function PictureWindow(url, width, height) {
        var Win = window.open(url,"preview",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,alwaysRaised,screen-x=0' );
}

function multi_potwierdzenie(title)
{
  if (akcja.mode.value == 'mdel' || akcja.mode.value == 'pic_mdel') {
  	if (window.confirm(title)) {
  		akcja.submit();
  	}
  } else {
  	akcja.submit();
  }
}

function potwierdzenie(title, link)
{
  if (window.confirm(title)) {
  	document.location=link;
  }
}
