
//------------------------------------------------
function input_clear(name) //input form torlese
	{
	//document.login.email.value="";
  document.getElementById(name).value="";
	}
//------------------------------------------------

function changeImage()
{
	var list = document.getElementById('optionlist');
	document.mainimage.src = list.options[list.selectedIndex].value;
}

function prevImage()
{
	var list = document.getElementById('optionlist');
	if(list.selectedIndex == 0)
	{
		list.selectedIndex = list.options.length-1;
	}
	else
	{
		list.selectedIndex--;
	}
	changeImage();
}

function nextImage()
{
	var list = document.getElementById('optionlist');
	if(list.selectedIndex == list.options.length-1)
	{
		list.selectedIndex = 0;
	}
	else
	{
		list.selectedIndex++;
	}
	changeImage();
}

function roll(img_name, img_src)
   {
   document[img_name].src = img_src;
   }
   
 function changeSpot(image, url)
{
	document.getElementById("mainimage").src = image;
	document.getElementById("mainurl").href = url;	
}

