///////////////////////////
// в данный момент работает
//////////////////////////

function OpenBigImg(img,width,height,title)
{
	win = window.open('','','scrollbars=auto,resizable=yes,dependent=yes,width='+width+',height='+height);
	win.document.write('<html><head><title>'+title+'</title></head><body onclick="window.close()" style="margin: 0px"><img src="images/'+img+'" width="'+width+'" height="'+height+'"></body></html>');
}

// закрыть/открыть
function zakryt(id){
if (document.getElementById(id).style.display == 'none')// если закрыт
	{document.getElementById(id).style.display = 'block';}// то открыть
else// если открыт
	{
	document.getElementById(id).style.display = 'none';// то закрыть
	}
}

// открыть окно с увеличенной картинкой
function MM_openBrWindow(theURL,width,height,title) {
	win = window.open('','','scrollbars=no,toolbar=no,width='+width+',height='+height);
	win.document.write('<html><head><title>'+title+'</title></head><body onclick="window.close()" style="margin-top: 0px; margin-left: 0px"><img src="'+theURL+'" width="'+width+'"></body></html>');
}

// открыть окно с палитрой
function MM_openBrWindow1(theURL,winname,parametry) {
	window.open(theURL,winname,'resizable=yes,toolbar=no,'+parametry);
}

// проверка заполнения обязательных полей формы (сейчас используется только в форме сотрудничества)
function proverka_formy() {
	if (document.forms[1].company.value == "")
		{alert("Введите название вашей компании");
		document.forms[1].company.focus();
		return false;}
	else if (document.forms[1].person.value == "")
		{alert("Введите имя контактного лица");
		document.forms[1].person.focus()
		return false;}
	else if (document.forms[1].email.value == "")
		{alert("Введите e-mail");
		document.forms[1].email.focus()
		return false;}
	else if (document.forms[1].offer.value == "")
		{alert("Введите ваше предложение");
		document.forms[1].offer.focus()
		return false;}
return true;
}


