




/*
     FILE ARCHIVED ON 7:15:39 сен 28, 2007 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 18:25:01 сен 22, 2011.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
function showHidden(id) {
	new Effect.toggle(id, 'blind');
}

function checkMailForm(id, warning) {
	var fromFieldLen = document.getElementById('fromField').value.length;
	var contactsFieldLen = document.getElementById('contactsField').value.length;
	var messageFieldLen = document.getElementById('messageField').value.length;
	var thisForm = document.getElementById(id);
	var thisWarning = document.getElementById(warning);
	
	if (fromFieldLen<1 || contactsFieldLen<1 || messageFieldLen<1) {
		thisWarning.style.display = 'block';
		return;
	} else {
		thisForm.submit();
	}
}
		
nn4 = (document.layers)? true : false;
ie4 = (document.all)? true : false;
nn6 = (document.getElementById && !ie4)? true : false
		
function popupWindow(fileName, windowName, winWidth, winHeight) {
	if (nn4 || ie4 || nn6) {
		posX = Math.round((screen.width - winWidth) / 2);
		posY = Math.round((screen.height - winHeight) / 2);
		posCode = (nn4 || nn6)? "screenX="+posX+",screenY="+posY : "left="+posX+",top="+posY;
	} else { posCode = ""; }

	newWindow = window.open('','','menubar=no,toolbar=no,scrollbars=yes,status=no,width='+winWidth+',height='+winHeight+','+posCode);
	newWindow.document.write("<html>\n");
	newWindow.document.write("<head> <title>"+windowName+"</title> </head>\n");
	newWindow.document.write("<style>BODY {background-color:#F3F3F3; text-align:center; padding-top:15px;}</style>\n");
	newWindow.document.write("<body>\n");
	newWindow.document.write("<img src='"+fileName+"' alt='Полноразмерное изображение иконы "+windowName+"' />\n");
	newWindow.document.write("</body>\n");
	newWindow.document.write("</html>");
	newWindow.focus();
}

