Event.observe(window,'load',formhandler);
Event.observe(window,'load',submithandler);

function formhandler()
{
	$$("input.touhyou1").each(function(tag)
	{
		$(tag).onmouseover = function()
		{
			$(tag).src= 'images/touhyou_on.jpg';
		}
		$(tag).onmouseout = function()
		{
			$(tag).src = 'images/touhyou_off.jpg';
		}
	});
}

function submithandler()
{
	$$("form.vote").each(function(tag)
	{
		$(tag).onsubmit = function()
		{
			return confirm('投票処理を行います。よろしいですか？（投票は一度のみです）')
		}
	}
	);
}