function switch_img(name)
{

	img = document.images[name];
	if (img)
	{
		path = img.src;
		path = path.split("/");
		
		file = path[path.length-1];
		file = file.split(".");
		
		c = file[0].substring(file[0].length-1);
		
		if (c == "b")
		{
			// selektierter Zustand
			file[0] = file[0].substring(0,(file[0].length-1))
		}
		else
		{
			// nicht selektierter Zustand
			file[0] += "b";
		}
	
		file = file.join(".");
		path[path.length-1] = file;
		path = path.join("/");
		
		img.src = path;
	
	}
}