function imagechange(imagePath,imageID,imageName) 
{
   document.images[imageID].src = imagePath + "buttons/" + imageName + ".gif";
}


function m_on(imagename)
{
	if (document.images)
	{
		document [imagename].src = eval(imagename + "_MO.src");
	}
}

function m_out(imagename)
{
	if (document.images)
	{
		document [imagename].src = eval(imagename + ".src");
	}
}


function popup(file,options,width,height)
{
	if ((width != 0 || width !=null) && (height != 0 || height !=  null))
		{
			options = options+",width="+width+",height="+height;
		}
		var textWindow=window.open(file,"TextWindow",options);
}

function HideShowOver(elem)
{
	elem.style.cursor='hand';
	elem.style.textDecoration='underline';
	elem.style.color='orange';
}

function HideShowOut(elem)
{
	elem.style.textDecoration='none';
	elem.style.color='#C6C3C6';
}

function clickSwitch(linker,switchbox)
{
    box = document.getElementById(switchbox);
    link = document.getElementById(linker);
    //link.innerHTML=box.style.display=='none'?link.innerHTML + ' (Collapse)':link.innerHTML.substr(0,link.innerHTML.length - 11);
    box.style.display=box.style.display=='none'?'':'none';
}

function leaveSite()
{
     return confirm('You are about to leave the EMMC FCU website. Are you sure you want to do this?');
}