function validateSubscribe() {

	var emailValue = document.forms["formNotes"].emailComm.value;
	var nomeValue = document.forms["formNotes"].nameComm.value;
	
	var name=document.forms["formNotes"].nameComm.value.length;
	var email=document.forms["formNotes"].emailComm.value.length;
	var comment=document.forms["formNotes"].comment.value.length;
	var tot=name+email+comment;
	var maluco=document.getElementById('email').value=((tot) % 3)+tot;
	
	if(emailValue == "" || nomeValue == "") {
		alert("Nome e E-Mail obrigatórios.");
		if(nomeValue == ""){
			document.forms["formNotes"].nameComm.focus();
		}
		else{
			document.forms["formNotes"].emailComm.focus();
		}
		return false;
	}
	
	else {
		var expressao=new RegExp("^[a-zA-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$");
		if (expressao.test(emailValue)){
			return true;
		}
		else {
			alert("E-Mail inválido.");
			document.forms["formNotes"].emailComm.focus();
			return false;
		}
	}	
}

function recomment(parent,html)
{
	if ((parent != ""))
	{
		html="<input type=\"hidden\" name=\"parentPid\" value=\""+parent+"\">"+html;
		html+="<BR>" + "<a href=\"#ancora_conteudo\" onClick=\"recomment('','&nbsp;');\">Clique caso queira comentar o conteúdo, e não mais o comentário</a>" + "<BR><BR><BR>";
		//location.hash="#ancora_conteudo";
	}
	document.getElementById("parent").innerHTML=html;
}
