function switchImg(m_sImageName, m_sState)
{
	if (document.images)
	{
		imgSource = document[m_sImageName].src;

		if (m_sState == "on")
		{
			onState = imgSource.replace(/_off/i,"_on");
			document[m_sImageName].src = onState;
		}
		else 
		{
			offState = imgSource.replace(/_on/i,"_off");
			document[m_sImageName].src = offState;
		}
	}
}