/**
 * @file
 * @brief Common JavaScript functions.
 */
 
/**
 * @fn showElement(id)
 * @brief Show element.
 * @param[in] id ID of the element.
 */
function showElement(id) {
	var element = document.getElementById(id);

	if (element) {
		element.style.visibility = 'visible';
	}
}

/**
 * @fn hideElement(id)
 * @brief Hide element.
 * @param[in] id ID of the element.
 */
function hideElement(id) {
	var element = document.getElementById(id);

	if (element) {
		element.style.visibility = 'hidden';
	}
}

/**
 * @fn isIE()
 * @brief Checks whether the browser is IE.
 * @return True when IE is detected, otherwise returns false.
 */
function isIE() {
	if (navigator.appName.indexOf("Explorer") == -1) {
		return false;
	}
	else {
		return true;
	}
}
