function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}

function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
windowHeight = window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
else {
if (document.body && document.body.clientHeight) {
windowHeight = document.body.clientHeight;
}
}
}
return windowHeight;
}

function getDocHeight(){
docHeight = document.getElementById("marker").offsetTop;
return docHeight;
} 

function setHeight() {
if (document.getElementById) {
var windowHeight = getWindowHeight();
var docHeight = getDocHeight();
if (windowHeight > 0 && windowHeight > docHeight) {
var cellHeightElement = document.getElementById('cellheight');
cellHeightElement.style.position = 'absolute';
cellHeightElement.style.height = (windowHeight) + 'px';
}
}
}
window.onload = function() {
setHeight();
}
window.onresize = function() {
setHeight();
}

function opengroup(groupid)  {
	if (document.getElementById('group' + groupid).style.display == 'none')
	{
		document.getElementById('group' + groupid).style.display = 'block';
	}
	else
	{
		document.getElementById('group' + groupid).style.display = 'none';
	}
}
