// Nawigowanie między forami
function go() {
  if (document.nawigator.skocz.selectedIndex == 0) {
    location.href='forum.php';
  } else {
    location.href='forum.php?fid=' + document.nawigator.skocz.options[document.nawigator.skocz.selectedIndex].value;
  }
}

function showpopup(url)
{
  var Win = window.open(url,'showpic','width=100,height=100,top=50,left=200,resizable=0,scrollbars=no,menubar=no,toolbar=no,status=no')
}


function showpopup(url, width, height)
{
  var Win = window.open(url,'showpic','width=' + width + ',height=' + height + ',top=50,left=200,resizable=0,scrollbars=no,menubar=no,toolbar=no,status=no')
}

function popupprint(url, width, height)
{
  LeftPosition=(screen.width)?(screen.width-width)/2:100;
  TopPosition=(screen.height)?(screen.height-height)/2:100;
  var Win = window.open(url,'showpic','width=' + width + ',height=' + height + ',top=50,left=200,resizable=0,scrollbars=yes,menubar=no,toolbar=no,status=no')
}

function showPhoto(url, width, height)
{
  LeftPosition=(screen.width)?(screen.width-width)/2:100;
  TopPosition=(screen.height)?(screen.height-height)/2:100;
  width += 10;
  height += 20;
  var Win = window.open(url,'showpic','width=' + width + ',height=' + height + ',top=' + TopPosition + ',left=' + LeftPosition + ',resizable=0,scrollbars=no,menubar=no,toolbar=no,status=no')
}

function help ( content)
{
	if (content != '') return overlib (content);
}

function doff()
{
	return nd();
}

function check_commentform() {
	if (document.commentform.author.value=="" || document.commentform.email.value=="" ||
	document.commentform.title.value=="" ) {
		alert ('Nie wypełniłeś wszystkich pól oznaczonych *!'); return false;
	}
	else return true;
}

function check_agree() {
	if (document.newaccount.agree.checked!=true) {
		alert ('Aby założyć konto w serwisie, musisz zapoznać się z regulaminem!'); return false;
	}
	else return true;
}
