function site_subscribe_form() {
	var the_string = '<'+'form class="subscribe-form" action="/subscribe-action.php" method="post" onsubmit="return checkEmail(this)"'+'>';
		the_string += '<'+'div style="color: #DBCCB7; margin-bottom: 5px;"'+'>Подписка на новости:<'+'/div'+'>';
		the_string += '<'+'input onfocus="if(this.value==\'ваш@email\') this.value=\'\'" type="text" name="email" value="ваш@email" size="15" maxlength="50"'+'>&nbsp;<'+'input type="submit" value="&gt;&gt;"/'+'>';
		the_string += '<'+'/form'+'>';
	return the_string;
}

function iPopup(source, x, y, title) {
	WinFeatures = 'width='+1+',height='+1+',resizable=no,left=50,top=50,scrollbars=no,status=no,toolbar=no,menubar=no,directories=no';
	html = '<html><head><title>'+title+'</title></head><body style="background: black; overflow: hidden; padding: 5px; margin: 0;"><table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"><tr valign="middle"><td align="center" height="100%"><a href="#" onclick="window.close(); return false;"><img alt="Закрыть окно" src="'+source+'" width="'+x+'" height="'+y+'" border="0"></a></td></tr></table></body></html>'
	iWin = window.open('', 'iWindow', WinFeatures);
	iWin.document.write(html);
	iWin.document.close();
	iWin.resizeTo(x+80, y+100)
	iWin.focus();
	return false;
}

function checkEmail(forma) {
	var theRe = /^[^\'\"\s@]+@[^\'\"\s@]+$/i;
	if( !theRe.test(forma.email.value) ) {
		alert('Проверьте правильность адреса!');
		forma.email.focus();
		return false;
	}
}

function email_render( ml_1, ml_2, ml_3, the_text ) {
	if ( the_text )
		document.write( "<a href=\"#\" onclick=\"return email_send('"+ml_1+"', '"+ml_2+"', '"+ml_3+"')\">" + the_text + "</a>" );
	else
		document.write( "<a href=\"#\" onclick=\"return email_send('"+ml_1+"', '"+ml_2+"', '"+ml_3+"')\">email</a>" );
}
function email_send(ml_1, ml_2, ml_3) {
	location.href = 'mailto:'+ml_3+'@'+ml_2+'.'+ml_1;
	return false;
}


			
				
				
			