
function HEADERon(menuitem, menutype) {
  	document.getElementById('HEADERmenu' + menuitem).style.backgroundImage = 
		"url(../images/menus/HEADER" + menutype + "topOn.gif)";
	document.getElementById('HEADERmenubox' + menuitem).style.backgroundImage = 
		"url(../images/menus/HEADER" + menutype + "bottomOn.gif)";
	document.getElementById('HEADERlink' + menuitem).style.color = "#FFFFFF";
}

function HEADERoff(menuitem, menutype) {
	if (menuitem != page) {
   		document.getElementById('HEADERmenu'+menuitem).style.backgroundImage = 
			"url(../images/menus/HEADER" + menutype + "top.gif)";
		document.getElementById('HEADERmenubox'+menuitem).style.backgroundImage = 
			"url(../images/menus/HEADER" + menutype + "bottom.gif)";
		document.getElementById('HEADERlink'+menuitem).style.color = "#492F92";
	}
}

function SFRon(menuitem, menutype) {
  	document.getElementById('SFRmenu' + menuitem).style.backgroundImage = 
		"url(../images/menus/SFR" + menutype + "topOn.gif)";
	document.getElementById('SFRmenubox' + menuitem).style.backgroundImage = 
		"url(../images/menus/SFR" + menutype + "bottomOn.gif)";
	document.getElementById('SFRlink' + menuitem).style.color = "#FFFFFF";
}

function SFRoff(menuitem, menutype) {
	if (menuitem != page) {
   		document.getElementById('SFRmenu'+menuitem).style.backgroundImage = 
			"url(../images/menus/SFR" + menutype + "top.gif)";
		document.getElementById('SFRmenubox'+menuitem).style.backgroundImage = 
			"url(../images/menus/SFR" + menutype + "bottom.gif)";
		document.getElementById('SFRlink'+menuitem).style.color = "#F38428";
	}
}

function ICORon(menuitem, menutype) {
  	document.getElementById('ICORmenu'+menuitem).style.backgroundImage = 
		"url(../images/menus/ICOR" + menutype + "topOn.gif)";
	document.getElementById('ICORmenubox'+menuitem).style.backgroundImage = 
		"url(../images/menus/ICOR" + menutype + "bottomOn.gif)";
	document.getElementById('ICORlink'+menuitem).style.color = "#FFFFFF";
}

function ICORoff(menuitem, menutype) {
	if (menuitem != page) {
    		document.getElementById('ICORmenu'+menuitem).style.backgroundImage = 
			"url(../images/menus/ICOR" + menutype + "top.gif)";
		document.getElementById('ICORmenubox'+menuitem).style.backgroundImage = 
			"url(../images/menus/ICOR" + menutype + "bottom.gif)";
		document.getElementById('ICORlink'+menuitem).style.color = "#008081";
	}
}

function PUBSon(menuitem) {
  	document.getElementById('PUBSmenu'+menuitem).style.backgroundImage = 
		"url(../images/menus/PUBStopOn.gif)";
	document.getElementById('PUBSmenubox'+menuitem).style.backgroundImage = 
		"url(../images/menus/PUBSbottomOn.gif)";
	document.getElementById('PUBSlink'+menuitem).style.color = "#FFFFFF";
}

function PUBSoff(menuitem) {
	if (menuitem != page) {
    		document.getElementById('PUBSmenu'+menuitem).style.backgroundImage = 
			"url(../images/menus/PUBStop.gif)";
		document.getElementById('PUBSmenubox'+menuitem).style.backgroundImage = 
			"url(../images/menus/PUBSbottom.gif)";
		document.getElementById('PUBSlink'+menuitem).style.color = "#1E4EE0";
	}
}

function showSub(whichmenu) {
	if (document.getElementById(whichmenu).style.display=="none") {
		document.getElementById(whichmenu).style.display="block"; }
	else { document.getElementById(whichmenu).style.display="none"; }
}

function clearTextBox(el) {
	if (el.defaultValue==el.value) el.value = "";
}

function fillTextBox(el,contentToFill) {
	el.value = contentToFill;
}

