﻿
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.visibility = "hidden";
document.getElementById(d).style.height = "0px";

}
function ShowContent(d) {
if(d.length < 1) { return; }

HideContent('biodiv1');
HideContent('biodiv2');
HideContent('biodiv3');
HideContent('biodiv4');
HideContent('biodiv5');
HideContent('biodiv6');
HideContent('biodiv7');
document.getElementById(d).style.visibility = "visible";
document.getElementById(d).style.height = "100%";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}


function openWindow(URL, windowName) {

	
	var w = screen.availWidth;
	var leftPos = (w-543)/2;
	popupWindow1 = window.open(URL, windowName, "width=543, height=366, toolbar=0, fullscreen=0, location=0, status=0, menubar=0, scrollbars = 0, screenX=0, screenY=0, top=200, left=" + leftPos);
	
}


function openWindowlarge(URL, windowName) {	
	var w = screen.availWidth;
	var leftPos = (w-740)/2;
	popupWindow1 = window.open(URL, windowName, "width=740, height=640, toolbar=0, fullscreen=0, location=0, status=0, menubar=0, scrollbars = 0, screenX=0, screenY=0, top=100, left=" + leftPos);
	
}
