/* 
   Name: pas.js
   Description:
		Javascript code common to all of the
		Public Access System pages.
*/



function changeToBrown(whichOne){
	whichOne.style.backgroundColor='#EDE5D3';	
}

function changeFromBrown(whichOne){
	whichOne.style.backgroundColor='';	
}	

/*
	updateMenuImage will add an <img> tag to the menu
 	this will allow images that are specific to any PAS screen
*/
function updateMenuImage(imgTagSrc, imgTagAlt){ 
	var imgTagString = "<img src=\'" + imgTagSrc + "\' alt=\'" + imgTagAlt + "\' />";
	
	var menuImageElem = document.getElementById('SideNavPhoto');
	menuImageElem.innerHTML=imgTagString;
}

function newPasWindow(link) {

	window.open(link,'','toolbar=yes,width=600,height=400,scrollbars=1,resizable=1,status=no,top=200,left=200'); 
	return false;

}

function setFocus(elem) {
   var focusElem = document.getElementById(elem); 
   focusElem.focus();
}

