function setFooter() {
	if (document.getElementById) {
		if (self.innerHeight)
		{
			frameHeight = self.innerHeight;
		}
		// IE with DOCTYPE
		else if (document.documentElement && document.documentElement.clientHeight)
		{
			frameHeight = document.documentElement.clientHeight;
		}
		// IE without DOCTYPE
		else if (document.body)
		{
			frameHeight = document.body.clientHeight;
		}
		else return;
		
		if (frameHeight>0) {
			// the div that contains the content is called menu.  We add 100px to
			// this because there's a 100px high header div above menu.
			var bgcontent = document.getElementById('rightcontent');
			var bgcontentHeight=bgcontent.offsetHeight;
			var contentHeight = bgcontentHeight + 222;
			// If the content is too high to fit in the window, set the footer position
			// to relative to put it after the content.  If the content does not fill up
			// the window, position the footer at the bottom of the browser frame.
			
			if (frameHeight>contentHeight) {
				bgcontent.style.height = bgcontentHeight + (frameHeight - contentHeight) + "px";
			};
		}
	}
}
function popitup(url)
{
	newwindow=window.open(url,'name','height=400,width=400');
	if (window.focus) {newwindow.focus()}
	return false;
}