function adjustSpace(iddest,idref) {
	var h = document.getElementById(idref).offsetHeight;
	var base = 330;
	if (h > base) document.getElementById(iddest).style.height = (h-base)+'px';
	else document.getElementById(iddest).style.height = '0px';
}
function getURL() {
	var location = new String(window.location);
	var anchorpos = location.lastIndexOf('#');
	if ((anchorpos > 0) == false) anchorpos = location.length;
	var urlname = location.substring(location.lastIndexOf('/')+1,anchorpos);
	
	return urlname;
}

function hideLayer(id) {
	if (document.getElementById(id)) {
		document.getElementById(id).style.display = 'none';
	}
}

function showLayer(id) {
	if (document.getElementById(id)) {
		document.getElementById(id).style.display = 'block';
	}
}
