function view_big(pictures)
{
	var bg_color="#ffffff";				// ЦВЕТ ОКНА
	var pictures_folder="images/";	// ПУТЬ К КАРТИНКАМ
	var w_screen=700;				// ШИРИНА ОКНА
	var h_screen=700;				// ВЫСОТА ОКНА
	
	large_pictures = new Image(); 
	large_pictures.src=pictures_folder+pictures;
	
	generation_window=open("","displayWindow","width="+w_screen+",height="+h_screen+",status=yes,toolbar=no,menubar=no");
	generation_window.document.open();
	generation_window.document.write("<html><head><title>Просмотр увеличенного изображения!</title></head>");
	generation_window.document.write("<body bgcolor='"+bg_color+"'>");
	generation_window.document.write("<div id='' style='position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:1'>");
	generation_window.document.write("<table width='100%' height='100%'  border='0' cellpadding='0' cellspacing='0'>");
	generation_window.document.write("<tr>");
	generation_window.document.write("<td valign='middle'><div align='center'><img scr='' name='masha' id='masha'></div></td>");
	generation_window.document.write("</tr>");
	generation_window.document.write("</table>");
	generation_window.document.write("</div>");
	generation_window.document.write("</body>");
	generation_window.document.write("</html>");
	generation_window.document.masha.src=eval("large_pictures.src");
	generation_window.document.focus();
	generation_window.document.close();  
}

function turn_off(ImageName) {
	if (document.images != null) {
		document[ImageName].src = eval(ImageName + "_off.src");
	}
}

function turn_over(ImageName) {
	if (document.images != null) {
		document[ImageName].src = eval(ImageName + "_over.src");
	}
}

function view_large_pictures(pictures)
{
	var bg_color="#ffffff";				// ЦВЕТ ОКНА
	var pictures_folder="images/katalog" + "/";	// ПУТЬ К КАРТИНКАМ
	var w_screen=700;				// ШИРИНА ОКНА
	var h_screen=700;				// ВЫСОТА ОКНА
	
	large_pictures = new Image(); 
	large_pictures.src=pictures_folder+pictures;
	
	generation_window=open("","displayWindow","width="+w_screen+",height="+h_screen+",status=yes,toolbar=no,menubar=no");
	generation_window.document.open();
	generation_window.document.write("<html><head><title>Просмотр увеличенного изображения!</title></head>");
	generation_window.document.write("<body bgcolor='"+bg_color+"'>");
	generation_window.document.write("<div id='' style='position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:1'>");
	generation_window.document.write("<table width='100%' height='100%'  border='0' cellpadding='0' cellspacing='0'>");
	generation_window.document.write("<tr>");
	generation_window.document.write("<td valign='middle'><div align='center'><img scr='' name='masha' id='masha'></div></td>");
	generation_window.document.write("</tr>");
	generation_window.document.write("</table>");
	generation_window.document.write("</div>");
	generation_window.document.write("</body>");
	generation_window.document.write("</html>");
	generation_window.document.masha.src=eval("large_pictures.src");
	generation_window.document.focus();
	generation_window.document.close();  
}

function GetMonth(intMonth)
{
	var MonthArray = new Array("января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря");
	return MonthArray[intMonth];
}


function getDateStr()
{
		var today = new Date();
		
		var month = today.getMonth();
		var year = today.getYear();
		var day = today.getDate()
		
		if(day<10) day = "0" + day;
		if(year<1000) year+=1900;

		todayStr = day + " " + GetMonth(month) + " " + year + " г.";
		return todayStr;
}