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 Checkall(form){ 
  for (var i = 1; i < form.elements.length; i++){    
    eval("form.elements[" + i + "].checked = form.elements[0].checked");  
  } 
} 

function skasowanie()
{
	var conf = confirm("Czy jesteś pewien?");
	if(conf)
	{
		this.href;
	}
	return conf;
}

function PoliczRate( koszyk ){
  window.open(
    'https://www.zagiel.com.pl/kalkulator/index_smart.php?action=getklientdet_si_rata&shopNo=24419641&goodsValue='+koszyk, 
    'Policz_rate','width=630,height=500,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'
  );
}

