
function toggleDisplayBlock(blockID){
	var blockElm = (document.all) ? document.all[blockID] : document.getElementById(blockID);
	if (blockElm.style.display == "none") {
		blockElm.style.display = "block";
	}
	else {
		blockElm.style.display = "none";
	}
}

function toggleDisplayInlile(blockID){
	var blockElm = (document.all) ? document.all[blockID] : document.getElementById(blockID);
	if (blockElm.style.display == "none") {
		blockElm.style.display = "inline";
	}
	else {
		blockElm.style.display = "none";
	}
}

function toggleModeratorBlock(elmID,modBlockID,kodFieldID) {
var placeID = 'place_'+elmID;
var imgID = 'img_'+elmID;
// Place for the block with the information to show/hide
var placeElm = (document.all) ? document.all[placeID] : document.getElementById(placeID);
// Image "plus" or "minus" to click
var imgElm = (document.all) ? document.all[imgID] : document.getElementById(imgID);
// Block with the information to show/hide and move
var modBlockElm = (document.all) ? document.all[modBlockID] : document.getElementById(modBlockID);
// A field of a form to store "kod" number - ID of a database record or any unique number
var kodFieldElm = (document.all) ? document.all[kodFieldID] : document.getElementById(kodFieldID);
if (placeElm.style.display == "none") {
if (placeElm && modBlockElm) {placeElm.appendChild(modBlockElm);}
if (kodFieldElm) {kodFieldElm.value=elmID;}
placeElm.style.display = "block";
imgElm.src = "/p/minus.gif";
}
else {
placeElm.style.display = "none";
imgElm.src = "/p/plus.gif";
}
}

