function doResize() {
	y = document.body.clientHeight;
	newHeight = y-85;
	document.getElementById("content").style.height=newHeight.toString()+'px';
}

function setActive(section) {
        var elm = document.getElementById(section);
        elm.style.background = '#CBDBB6';
	doResize();
}
function hideother(cur,lim) {
	var nav = 'nav';
	for (n=0; n<lim; n++) {
		if ((n!=cur)) {
			var elm = document.getElementById(nav.concat(n));
			if (elm) elm.style.display='none'
		} 
		if (n==cur) {
			var elm = document.getElementById(nav.concat(n));
			if (elm) elm.style.display='inline'
		}
	} 
}
function toggledisp(sid) {
	var elm = document.getElementById(sid);
	elm.style.display=elm.style.display=='inline'?'none':'inline';
}
function popup(URL,x,y,features) {
 if (features != '') {
  features = ","+features
 }
  window.open(URL,"popup","dependent,height=" + y + ",width=" + x + "," + features)
}
