//Pop up the good standing description.
//Coded by: Jared Ewald
//------------------------------------------

var frameState = 0;      //Frame Initialized to Off (0)

//======================================================================================================
//Function: popUpGoodStandingFrame
//
//This function displays an inline frame called "goodStandingFrame".
//Prerequisites:  goodStanding.php must be in the same directory and an inline frame must be created
//called goodStandingFrame.  In addition, the closeWindowBar picture must exist in the img directory
//and must be set up in the html document.
//======================================================================================================

function popUpGoodStandingFrame(){
	document.getElementById("goodStandingFrame").style.display="inline";
	document.getElementById("closeWindowBar").style.display="inline";
	frameState = 1;
}

//======================================================================================================
//Function: removeGoodStandingFrame
//
//This function removes the frame brought up by the popUpGoodStanding() function.
//======================================================================================================

function removeGoodStandingFrame(){
	document.getElementById("goodStandingFrame").style.display="none";
	document.getElementById("closeWindowBar").style.display="none";
	frameState = 0;
}

//======================================================================================================
//Function: switchFrameState
//
//This function either opens or closes the frame based on the previous frame state.
//======================================================================================================

function switchFrameState(){
	if (frameState == 0){
		popUpGoodStandingFrame();
	}
	else{
		removeGoodStandingFrame();
	}
}