function vamnebovpodarok()
	{
	var em, em2;
	em = 'vam';
	em += '@nebo-v-podarok'; 
	em2 = '<a href=\"mailto:' + em  +'.ru\">' + em + '.ru</a>';
	document.write(em2);
	};
	
function showComment(btn, commentId)
{
	if(btn.innerHTML == '...читать дальше') 	{
		btn.innerHTML = "<br>^^^^^";
		document.getElementById(commentId).className = 'opinion';
	} else {
		btn.innerHTML = "...читать дальше";
		document.getElementById(commentId).className = 'hidden';
	}
}

function validateEmail(email)
{
    var splitted = email.match("^(.+)@(.+)$");
    if(splitted == null) return false;
    if(splitted[1] != null )
    {
      var regexp_user=/^\"?[\w-_\.]*\"?$/;
      if(splitted[1].match(regexp_user) == null) return false;
    }
    if(splitted[2] != null)
    {
      var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
      if(splitted[2].match(regexp_domain) == null) 
      {
	    var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
	    if(splitted[2].match(regexp_ip) == null) return false;
      }// if
      return true;
    }
return false;
}

function showInfoMsg(content) 
{
	var msg_block = document.getElementById("info_msg");
	msg_block.innerHTML = content;
}