$(document).ready(function() {
  $('#artigo a').filter(function() {
 return this.hostname && this.hostname !== location.hostname;
  }).after(' <img src="/imagens/external.png" alt="Link Externo"/>');
});
function new_captcha()
{
var c_currentTime = new Date();
var c_miliseconds = c_currentTime.getTime();

document.getElementById('captcha').src = '/inc/scripts/image.php?x='+ c_miliseconds;
}
window.onload = function(){
            prettyPrint();
			new_captcha();
        }  
        function validaForm(){
		d = document.cadastro;
		if (d.titulo.value == ""){
			alert("O campo " + d.titulo.name + " deve ser preenchido!");
			d.titulo.focus();
			return false;
		}
		if (d.nome.value == ""){
			alert("O campo " + d.nome.name + " deve ser preenchido!");
			d.nome.focus();
			return false;
		}
		if (d.email.value == ""){
			alert("O campo " + d.email.name + " deve ser preenchido!");
			d.email.focus();
			return false;
		}
		parte1 = d.email.value.indexOf("@");
		parte2 = d.email.value.indexOf(".");
		parte3 = d.email.value.length;
		if (!(parte1 >= 3 && parte2 >= 6 && parte3 >= 9)) {
			alert("Preencha corretamente seu email!");
			d.email.focus();
			return false;
		}
		d = document.cadastro;
		if (d.comentario.value == ""){
			alert("Insira um comentario!");
			d.comentario.focus();
			return false;
		}
		return true;
	}