function sendFormAction(formname, action){
	document.forms[formname].k_a.value = action;
	document.forms[formname].submit();
}

function sendForm(formname){
	document.forms[formname].submit();
}

function linkAsk(pytanie, link){
	if(confirm(pytanie)){
		location.href = link;
	}
}

function linkTo(link){
	location.href = link;
}

function checkAll(nazwa)
  {
  for (var i=0;i<document.list.elements.length;i++)
    {
    var e = document.list.elements[i];
    var re = new RegExp(nazwa);
    if ((e.name != nazwa) && (re.test(e.name))){
      e.checked = document.list.lidall.checked;
      }
    }
  }

function newWindow(strona,_width,_height,_positionX,_positionY){
	var width=450;
	var height=350;
	if (_width!=0 && _height!=0) {
		if (_width<0) {
			width=-0.01*screen.width*_width;
		}else {width=_width;}
		if (_width<0) {
			{height=-0.01*screen.height*_height;}
		}else 	 {height=_height;}
	}
	if (_positionX!=0 && _positionY!=0){
		var top=(screen.height)*0.01*_positionY;
		var left=(screen.width)*0.01*_positionX;
		}
	okienko=window.open(strona,'','left='+left+',top='+top+',toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,personalbar=no,directories=no,status=no,width='+width+',height='+height);
	okienko.focus();
}	

function newWindow2(strona){
	okienko=window.open(strona,'');
	okienko.focus();
}	

