<!--   Generic functions used across the entire Pentland-Training Site   -->

<!-- Used to perform div switching on welcome screen-->
function ToggOnOff(currMenu) {
		if (document.getElementById) {
			//this method exists therefore modern browser
			thisMenu=document.getElementById(currMenu).style;
			if (thisMenu.display == "block") {
				thisMenu.display = "none";
				document.getElementById("div_0").style.display="block";
				return false;
			} else {
				thisMenu.display = "block";
				document.getElementById("div_0").style.display="none";
				return true;
			}
		}
	return false;
}

<!-- Used to perform div switching on all screens with development cycle graphic-->
function ToggOnOffDev(state, currMenu) {
		if (document.getElementById) {
			//this method exists therefore modern browser
			if (state == "on") {
				document.getElementById(currMenu).style.display="block";
				document.getElementById("div_61").style.display="none";
				return false;
			} else {
				document.getElementById(currMenu).style.display="none";
				document.getElementById("div_61").style.display="block";
				return true;
			}
		}
	return false;
}

<!--   Used to open all pop-ups within the pentland site  -->
function PW (theURL) { //v2.0
  window.open('./popups/' + theURL + '.htm','a',"width=10,height=300");
}
