function insertext(text,nazwaformy,area){
document.forms[nazwaformy].elements[area].focus(); document.forms[nazwaformy].elements[area].value=document.forms[nazwaformy].elements[area].value +" "+ text +" "; document.forms[nazwaformy].elements[area].focus();
}

function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;	window.top.location.href = gourl;
}

function ShowOrHide(d1, d2) 
{
if (d1 != '') DoDiv(d1);
if (d2 != '') DoDiv(d2);
}

function DoDiv(id) 
{
var item = null;
if (document.getElementById) {
item = document.getElementById(id);
} else if (document.all){
item = document.all[id];
} else if (document.layers){
item = document.layers[id];
}
if (!item) {
}
else if (item.style) {
if (item.style.display == "none"){ item.style.display = ""; }
else {item.style.display = "none"; }
}else{ item.visibility = "show"; }
}

function pytKasuj(nazwaformy)
{
  wynik=confirm('Czy na pewno chcesz usun±æ zaznaczone pola')
  if (wynik == true) {document.forms[nazwaformy].submit();}
  else {return false;}
}