// JavaScript Document
//===== SHOW HIDE =====
//Hide or show elements
function hideElement(getElem){
//Hides the font select area
 var ElemArea = document.getElementById(getElem);
 ElemArea.style.display = "none"
 
}
 
 
 
function showElement(getElem){
//Displays the font select area
 var ElemArea = document.getElementById(getElem); 
 ElemArea.style.display = "inline"
}


function elementClass(getElem, getClass){
//Sets a class for selected element (P, Table etc.)
 var ElemArea = document.getElementById(getElem); 
 ElemArea.className = getClass;
}

//----- end ------



function getRadio(getFldName){
	var fldName = eval(getFldName);
	
	//If there's only one radio button
	if(fldName.length == null){
		return fldName.value;
	}
	
	//If there's more, then find the one that's checked.
	for (var i = 0; i < fldName.length; i++) {
		if (fldName[i].checked == true){
			return fldName[i].value;
		}
	}	//end for loop
}