<!--
function fncAbrePopup(vURL, vNomeJanela, vParametros)
	{ window.open( vURL, vNomeJanela, vParametros ) }

function fncFecha(){document.all.divbanner.style.visibility = 'hidden';}

function fechar(){document.all.divbanner.style.visibility = 'hidden';}

//-->
<!--

function fncPerfilPop(idamigo){
window.open('/scripts/perfil/perfil_pop.asp?idamigo=' + idamigo,'popusuario','width=480,height=260,top=10,left=10,scrollbars=0');
}

function fncSaudacao(idamigo){
window.open('/scripts/minhavoz/audioblog/audioblog_ouvir.asp?idamigo=' + idamigo,'popusuario','width=480,height=235,top=10,left=10,scrollbars=0');
}

function fncCartaoSonoro(idamigo){
window.open('/scripts/cartaosonoro/cartaosonoro_enviar.asp?idamigo=' + idamigo,'popusuario','width=480,height=235,top=10,left=10,scrollbars=0');
}

function fncResponder(idAmigo){
	window.open('/scripts/mensagem/mensagem_pop.asp?idamigo=' + idAmigo,'popusuario','width=480,height=260,top=10,left=10,scrollbars=0');
}

function fncContador(obCampo, obCampoCaracter, nmLimite)
{
	if (obCampo.innerHTML.length >= eval(nmLimite))
	{
	    obCampo.innerHTML = obCampo.innerHTML.substring(0,nmLimite);
	}
	obCampoCaracter.innerHTML = eval(obCampo.value.length) + ' de ' + nmLimite;
}

function ContaCaracter(objCampo, objSaida, nmLimite)
{
	var objSaida = document.getElementById(objSaida);

	if (objCampo.value.length >= eval(nmLimite))
	{
	    objCampo.value = objCampo.value.substring(0,nmLimite);
	}
	objSaida.innerHTML = eval(objCampo.value.length) + ' de ' + nmLimite;
}

function fncAbrePopCentro(html, nome, width, height, scroll){
		var wArea = screen.width;
		var hArea = screen.height;
		tPop = Math.ceil((wArea - (eval(width) + 8)) / 2);
		lPop = Math.ceil((hArea - (eval(height) + 30)) / 2) + (screen.height == 600 ? 45 : 0);
		pop = open(html, nome, "top="+lPop+",left="+tPop+",width="+width+",height="+height+",scrollbars="+scroll);
}

function fnclinkfavorito(idtipo, idamigo)
{
    fncAbrePopCentro('/scripts/amigo/usuario_favorito.asp?idtipo='+ idtipo +'&idamigo=' + idamigo, 'favorito', 450, 200, 'yes');
}

function fncesquecisenha()
{
    fncAbrePopCentro('/scripts/login/esquecisenha.asp','esquecisenha', 420, 255, 'no');
}


function replace(objCampo, del, add){
	var strTexto   = objCampo.value;
	var intPosicao = strTexto.indexOf(del);

	if(intPosicao != -1)
	{
		while(intPosicao != -1)
		{
			strTexto   = strTexto.substring(0,intPosicao) + add + strTexto.substring((intPosicao + del.length), strTexto.length)
			intPosicao = strTexto.indexOf(del);
		}
		objCampo.value = strTexto;
	}
}

function fncLimpaTexto(obCampo) {
	replace(obCampo, '|', '');
	replace(obCampo, '>', '');
	replace(obCampo, '<', '');
}
//-->  