function Change(index, pic)
{
document.images[index].src=pic
}


function onPic(file_name)
{
window.open(file_name,"a","toolbar=no,location=no,statusbar=no,menubar=no,sizable=no, scrollbars=no")
}


// ПОЯВЛЕНИЕ БОЛЬШОЙ КАРТИНКИ ИЗ МАЛЕНЬКОЙ

function newWindow(s, w, h)
{
win=window.open(s, "win", "width="+w+",height="+h+",scrollbars=no")
}
// ГАЛЕРЕЯ В ФАЙЛАХ С ИМЕНАМИ l,s,...,g.js

function shol_TrySend(f)
{	
	var b=true;
	for (var i=0; i < necessarily_inputs.length; i++ )
	{
		if (document.forms[f].elements[necessarily_inputs[i]])		
			if (document.forms[f].elements[necessarily_inputs[i]].value == '') {b=false;}
	}	
	if (b) {	
		//if (document.forms[f].elements["TEXTCONTENT"]) document.forms[f].elements["TEXTCONTENT"]).value = "test";//as
		//alert(">" + document.forms[f].elements["TEXTCONTENT"]).value + "<");
		
		document.forms[f].submit();
	} 	
	else {alert("Внимание! Заполнены не все обязательные поля. Попробуйте еще раз.");}
}