// JavaScript Document
function SwapClass( objId, cls1, cls2 ) {
	if (document.getElementById(objId).className == cls1) {
		document.getElementById(objId).className = cls2 } else {
		document.getElementById(objId).className = cls1 }
}

function ShowImage( img ) {
	
}

function KalkChange() {
	var bar, width, height, format;
	if (document.getElementById("barva2").checked) { bar = ""; } else { bar = "bw"; }
	if (document.getElementById("strany2").checked) { bar = "2page" + bar; } else { bar = "1page" + bar; }
	document.getElementById("kalklayout").className = "kalk" + bar;
	if (document.getElementById("format").value=="A3") { format = "A3"; height = "420"; width = "297 mm";	}
	if (document.getElementById("format").value=="A4") { format = "A4"; height = "297"; width = "210 mm";	}
	document.getElementById("pformat").innerHTML = format;
	document.getElementById("pheight").innerHTML = height;
	document.getElementById("pwidth").innerHTML = width;
}