function ExibirCombo(tipo)
{
	if(tipo == 1)
		document.getElementById("divConteudoCombo").style.display = "inline";
	else
	{
		if(document.getElementById("divConteudoCombo").style.display == "inline")
			document.getElementById("divConteudoCombo").style.display = "none";
		else
			document.getElementById("divConteudoCombo").style.display = "inline";
	}
}

function EsconderCombo()
{
	document.getElementById("divConteudoCombo").style.display = "none";
}

function AtualizaValorCombo(valor, texto, tipo) 
{
	if(tipo == 1)
	{
		//document.getElementById("selCatFaleConosco").value = valor;
		document.getElementById("campo_combo").value = texto;
	}
	else
		window.location.href=texto;
}

function EnviarParaAmigo(urlBase,url)
{
	var w = 0;
	var h = 0;
	
	if(navigator.appName == 'Microsoft Internet Explorer')
	{
		w = screen.width;
		h = screen.height;
	}
	else
	{
		w = window.innerWidth;
		h = window.innerHeight;
	}
	w = (w-400)/2;
	h = (h-304)/2;
	
	window.open(urlBase + 'int_cda_indique_amigo.asp?url='+ url, 'BlogIndiqueAmigo', 'width=400,height=304,left='+ w +',top='+ h)
}

function EnviarComentario()
{
	if(document.getElementById("txtNome").value == "")
    {
        alert('Favor informar seu nome.');
        document.getElementById("txtNome").focus();
    }
    else
	if(document.getElementById("txtEmail").value == "")
    {
        alert('Favor informar seu e-mail.');
        document.getElementById("txtEmail").focus();
    }
    else
    if(!IsEmail(document.getElementById("txtEmail").value))
	{
		alert('Favor informar um e-mail v' + unescape('%E1') +'lido.');
		document.getElementById("txtEmail").focus();
	}
	else
    if (document.getElementById("txtComentario").value == "")
    {
        alert('Favor informar o coment' + unescape('%E1') +'rio.');
        document.getElementById("txtComentario").focus();
    }
    else
		document.getElementById("form_coments").submit();
}