
function toggleLayer(warstwa) {
	if (document.getElementById) {
		var style2 = document.getElementById(warstwa).style;
		style2.display = style2.display? "":"block";
	} else if (document.all) {
		var style2 = document.all[warstwa].style;
		style2.display = style2.display? "":"block";
	} else if (document.layers) {
		var style2 = document.layers[warstwa].style;
		style2.display = style2.display? "":"block";
	}
}

function toggleParams() {
	warstwa = 'rightsea';
	warstwa2 = 'leftsea';
	warstwa3 = 'rightsea2';
	if (document.getElementById) {
		var style2 = document.getElementById(warstwa).style;
		var style3 = document.getElementById(warstwa2).style;
		var style4 = document.getElementById(warstwa3).style;
	} else if (document.all) {
		var style2 = document.all[warstwa].style;
		var style3 = document.all[warstwa2].style;
		var style4 = document.all[warstwa3].style;
	} else if (document.layers) {
		var style2 = document.layers[warstwa].style;
		var style3 = document.layers[warstwa2].style;
		var style4 = document.layers[warstwa3].style;
	}
	style2.display = style2.display? "":"none";
	style3.width = style3.width? "":"754px";
	style4.display = style4.display? "":"block";

}

function toggleLayers(warstwa) {
	if (document.getElementById) {
		var style2 = document.getElementById(warstwa).style;
		style2.display = style2.display? "":"inline";
		var style3 = document.getElementById(warstwa+"b").style;
		style3.fontWeight = style3.fontWeight ? "bold":"normal";
	} else if (document.all) {
		var style2 = document.all[warstwa].style;
		style2.display = style2.display? "":"inline";
		var style3 = document.all[warstwa+"b"].style;
		style3.fontWeight  = style3.fontWeight? "bold":"normal";
	} else if (document.layers) {
		var style2 = document.layers[warstwa].style;
		style2.display = style2.display? "":"inline";
		var style3 = document.layers[warstwa+"b"].style;
		style3.fontWeight = style3.fontWeight? "bold":"normal";
	}
}

function paste(textarea, text) {
	if (document.getElementById) {
		document.getElementById(textarea).value += text + ', ';
	} else if (document.all) {
		document.all[textarea].value += text;
	} else if (document.layers) {
		var style2 = document.layers[textarea].value += text + ', ';
	}
}

function popup(file) {
	window.open("./" + file,null,"menubar=no, toolbar=no, location=no, height=280, width=550, scrollbars=no, resizable=no, status=no");
}

function del()
{
	var conf = confirm("Czy na pewno chcesz wykonać tę operację?");
	if(conf)
	{
		this.href;
	}
	return conf;
}