function openPhoto(path, alt, w, h, titl) {
	var wo = window.open('', '_photo', 'width=' + w + ', height=' + h + ',scrollbars=0, menubar=0, titlebar=0, status=0, directories=0, resizable=0');

	wo.document.write('<html>');
	wo.document.write('<head>');
	wo.document.write('<title>' + titl + '</title>');
	wo.document.write('</head>');
	wo.document.write('<body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 bgcolor="#FFFFFF">');
	wo.document.write('<img style="cursor:pointer" src="' + path + '" border="0" vspace="0" hspcae="0" alt="' + alt +'" title="' + alt +'" OnClick="window.close();">');
	wo.document.write('</body>');
	wo.document.write('</html>');
	wo.focus();

	return false;
}

function openVideo(path, w, h, titl) {
	var wo = window.open('', '_photo', 'width=' + w + ', height=' + h + ',scrollbars=0, menubar=0, titlebar=0, status=0, directories=0, resizable=0');

	wo.document.write('<html>');
	wo.document.write('<head>');
	wo.document.write('<title>' + titl + '</title>');
	wo.document.write('</head><body style="margin:0; padding:0">');
	wo.document.write('<OBJECT height=340 width=400><PARAM NAME="movie" VALUE="http://78125.ru/uflvplayer.swf"><param name="wmode" VALUE="transparent"><param name=FlashVars value="way=' + path + '&swf=http://78125.ru/uflvplayer.swf&w=400&h=340&pic=http://&autoplay=0&tools=2&skin=blackorange&volume=70&comment="><embed src="http://78125.ru/uflvplayer.swf" type="application/x-shockwave-flash" wmode="transparent" flashvars="way=' + path + '&swf=http://78125.ru/uflvplayer.swf&w=400&h=340&skin=blackblue&pic=http://&autoplay=0&tools=2&volume=70&comment=" width="400" height="340"></embed></OBJECT>');
	wo.document.write('</body>');
	wo.document.write('</html>');
	wo.focus();

	return false;
}


function changeImage(idElement, srcImage) {
	var dom = document.getElementById(idElement);

	dom.style.backgroundImage = srcImage;

	return false;
}

function changeHref(idElement, url) {
	var dom = document.getElementById(idElement);

	dom.href = url;

	return false;
}

function changeValue(idElement, val) {
	var dom = document.getElementById(idElement);

	dom.value = val;

	return false;
}