function moreinfo(index)
{
	eval('var div = document.getElementById(\'picmore' + index + '\');');
	eval('var link = document.getElementById(\'addlink' + index + '\');');
	div.style.display = 'block';
	link.style.display = 'none';
}

function submitted()
{
	var submit = document.getElementById('submit');
	submit.disabled = true;
	submit.value = 'Uploading, please wait...';
	return true;
}

function resizeimg(width, height)
{
	var img = document.getElementById('img');
	var div = document.getElementById('resize');
	if (resized)
	{
		div.innerHTML = 'Click on the picture for full size';
		img.width = initialwidth;
		img.height = initialheight;
	}
	else
	{
		div.innerHTML = 'Click on the picture to make it fit the screen';
		img.width = width;
		img.height = height;
	}
	resized = !resized;
}

function sameFolderForAll(from)
{
	var index = document.getElementById(from).selectedIndex;
	for (i = 1; i <= 10; i++)
	{
		eval('var select = document.getElementById(\'folder' + i + '\');');
		select.selectedIndex = index;
	}
}

