function imgOnOff(img, action) {
	
	var s;
	
	if (action == 'on')	{
		s = img.src.replace(/inactive/g, "active");
	} else {
		s = img.src.replace(/active/g, "inactive");
	}
	
	img.src	= s;
	
}