//------------------------------------------------------------------------------------
function check_comment()
{
	var form = document.getElementById('comment_form');
	if (form.name.value == '')
		{
			alert('Не указано имя\r\nName not specified');
			return false;
		}
	if (form.content.value == '')
		{
			alert('Нет текста\r\nNo text');
			return false;
		}
	return true;
}
//------------------------------------------------------------------------------------
function show_img_large(src, width, height)
{
	var newlink = '/image.php?src=' + src + '&h=' + height + '&w=' + width;
	height += 40; width += 40;
	var newWin = window.open(newlink,'name_' + height + '_' + width,'dependent=yes,fullscreen=no,height=' + height + ',width=' + width + ',location=no,menubar=no,resizable=yes,scrollbars=1,status=no,titlebar=no,title=no,toolbar=no');
//	return newWin;
//	return true;
}
//------------------------------------------------------------------------------------
function new_freecap()
{
	// loads new freeCap image
	if(document.getElementById)
	{
		// extract image name from image source (i.e. cut off ?randomness)
		thesrc = document.getElementById("freecap").src;
		thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
		// add ?(random) to prevent browser/isp caching
		document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
	} else {
		alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
	}
}
//------------------------------------------------------------------------------------
