function showLayer(id) {
	if (document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "block";
	}
}

function hideLayer(id) {
	if (document.getElementById(id).style.display != "none") {
		document.getElementById(id).style.display = "none";
	}
}

function toggleLayer(id) {
	document.getElementById(id).style.display = (document.getElementById(id).style.display == "none") ? "block" : "none";
}

function popup(url,name,w,h,scroll,status,resize) {
	L = (screen.width - w) / 2;
	T = (screen.height - h) / 2;
	winProps = "width=" + w;
	winProps += ",height=" + h;
	winProps += ",scrollbars=" + scroll;
	winProps += ",status=" + status;
	winProps += ",resizable=" + resize;
	winProps += ",left=" + L;
	winProps += ",top=" + T;
	popupWindow = window.open(url,name,winProps);
}

function changeStyleClass(id,cName) {
	document.getElementById(id).className = cName;
}