function milo(adr, serv)
{
	if(serv!='') return adr + "@" + serv;
	else return adr;
}

function namilo(adr, serv, sub)
{
	eml="mailto:" + milo(adr, serv);
	if (sub != "") eml += "?subject=" + sub;
	return eml;
}

function tiktak()
{
	var now = new Date();
	month=new Array(" января "," февраля "," марта "," апреля "," мая "," июня "," июля "," августа "," сентября "," октября "," ноября "," декабря ");
	hours = now.getHours();
	if (hours<=9) {hours="0"+hours;}
	minutes = now.getMinutes();
	if (minutes<=9) {minutes="0"+minutes;}
	day = now.getDate();
	mymonth = now.getMonth();
	year = now.getYear();

	date.innerText="сейчас "+day+month[mymonth]+year+" г."
	time.innerText=hours+":"+minutes;

	setTimeout('tiktak()',2000);
}

function popupWindowV(win) {
window.open(win, 'window', 'width=470, height=630,top=150,left=200,menubar=0,toolbar=0,resizable=1,scrollbars=0,copyhistory=no');
}

function popupWindowH(win) {
window.open(win, 'window', 'width=620, height=480,top=150,left=200,menubar=0,toolbar=0,resizable=1,scrollbars=0,copyhistory=no');
}

function popupWindowAct(win) {
window.open(win, 'window', 'width=830, height=562,top=100,left=100,menubar=0,toolbar=0,resizable=1,scrollbars=0,copyhistory=no');
}

function popupWindowH(win) {
window.open(win, 'window', 'width=620, height=480,top=150,left=200,menubar=0,toolbar=0,resizable=1,scrollbars=0,copyhistory=no');
}

function nextForm() {
location.href='../../main_chapter/6.html';
}

function nextForm2() {
location.href='../../index.php';
}

function nextForm3() {
location.href='../../story_send/';
}

function nextForm4() {
location.href='../../main_chapter/24.html';
}

function nextForm5() {
location.href='../../photo_send/';
}

function nextForm6() {
location.href='../../question_reply_send/';
}
