

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

function showtable(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = '';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = '';
		}
		else { // IE 4
			document.all.id.style.display = '';
		}
	}
}

function zmenform(id) {
	
		  
	if (id == 1 || id == 3) {
		showtable('f3'); showtable('f4'); showtable('f8');showtable('f9');showtable('f10'); showtable('f11'); showtable('f12'); showtable('f13'); showtable('f14');
	}
	else if (id == 5 || id == 7) {
		showtable('f3'); hidediv('f4'); showtable('f8');showtable('f9');showtable('f10'); showtable('f11'); showtable('f12'); showtable('f13'); showtable('f14');
		}
		else { 
			hidediv('f3'); hidediv('f4'); hidediv('f8');hidediv('f9');hidediv('f10'); hidediv('f11'); hidediv('f12'); hidediv('f13'); hidediv('f14');
		}
	
}