function limpaCampo(fld, msg, ac) {
	if ($(fld).value == msg && ac == 1)
		$(fld).value = "";
	if ($(fld).value == "" && ac == 0)
		$(fld).value = msg;
}

function marcaEventoConfInscr(el, id_evento) {
	var filhos = $('eventosConf').childNodes;
	for (var i=0; i < filhos.length; i++ ) {
		if (filhos[i].tagName) {
			var filhoTagName = filhos[i].tagName;
			if (filhoTagName.search(/li/i) != -1) {
				filhos[i].firstChild.className = "";
			}
		}
	}
	el.className = "ativo";
	$('conf_evento_id').value = id_evento;
}

function createExternalLinks() {
    if(document.getElementsByTagName) {
        var anchors = document.getElementsByTagName('a');
        for(var i=0; i < anchors.length; i++) {
            var anchor = anchors[i];
            if(anchor.getAttribute("href") && anchor.getAttribute('rel')=='externo') { // <-- É necessário inserir rel="externo" no link
                anchor.target = '_blank';
               	//var title = anchor.title + ' (Este link abre uma nova janela)'; // <-- Insere este texto no final do Title do link
                //anchor.title = title;
            }
        }
    }
}
window.onload = function() { createExternalLinks(); }