/*
* The following functions enable to action buttons on the Menu_top.jsp.
* There were issues (of course) with NN4 and IE 5 that needed to be accounted for
*/

// control the back, forward, refresh, stop, and print buttons

function go_back(){
	if(document.layers){
		back();
		return false;
	} else {
		history.go(-1);
		return false;
	}
	
}
function go_forward(){
	if(document.layers){
		forward();
		return false;
	} else {
		history.go(+1);
		return false;
	}
	
}
function go_refresh(){
	if(document.layers){
		parent.bottom.viewWindow.location.reload();
		return false;
	} else {
		document.location.reload();
		return false;
	}

}
function go_stop(){
	if(document.layers){
		parent.viewWindow.location.stop();
		return false;
	} else {
		document.location.stop();
		return false;
	}
	
}
function go_print(){
	if(document.layers){
		parent.viewWindow.print();
		return false;
	} else {
		// OLD IE only prints the frame that has focus.  Thus, we
		// need to change the focus to the viewWindow before 
		// executing print().		
		//parent.viewWindow.focus();
		print();
		return false;
	}

	
}

function go_close(){
  if(confirm("You have chosen to exit this system. Are you sure you wish to do this?\n" +
            "(If you choose to exit you will need to login again to access the system)")) {
    window.close();
  }   
}		