function write_mail(login) {
    window.open('http://news.netpress.ru/writemail/'+login, 'info', 'width=600,height=500,history=yes,resizable=yes,status=yes,scrollbars=yes,toolbar=yes,location=yes,menubar=yes');
}
function toblog_news(id, is_text) {
	if ( is_text ) {
		is_text = "texts/";
	} else {
		is_text = "";
	}
	window.open('http://news.netpress.ru/'+is_text+id+'_toblog', 'toblog', 'width=410,height=200');
}
function photo_news(id, photo, is_text) {
	if ( photo ) {
		photo = "?photo="+photo;
	} else {
		photo = "";
	}
	if ( is_text ) {
		is_text = "texts/";
	} else {
		is_text = "";
	}
	window.open('http://news.netpress.ru/'+is_text+id+'_photo'+photo, 'photo', 'width=616,height=500,resizable=yes,scrollbars=yes');
}
function send_news(id, is_text) {
	if ( is_text ) {
		is_text = "texts/";
	} else {
		is_text = "";
	}
	window.open('http://news.netpress.ru/'+is_text+id+'_send', 'send', 'width=400,height=180');
}

function time_js()
{
	vr=new Date();
	element = document.getElementById("now_time_js");
	var hours = vr.getHours();
	var minutes = vr.getMinutes();
	var seconds = vr.getSeconds();
	if ( hours < 10 ) { hours = '0'+hours }
	if ( minutes < 10 ) { minutes = '0'+minutes }
	if ( seconds < 10 ) { seconds = '0'+seconds }
	element.innerHTML=hours+":"+minutes+":"+seconds;
	setTimeout("time_js()",1000)
}