function pisca(quem){
	var quem = document.getElementById(quem);
	var old_border = quem.style.border;
	quem.style.border = '1px solid red';
	setTimeout(function(){quem.style.border = old_border},700);
}/*
function addconcursos(){
	var sbi = document.getElementById('sbi')
	if(sbi){
		sbi.form.onsubmit = function(){
			if(sbi.value.indexOf('concurso')<0 || sbi.value.indexOf('prova')<0 || sbi.value.indexOf('apostila')<0){
				sbi.value = 'concurso ' + sbi.value;
				setTimeout(function(){ sbi.value = sbi.value.replace(/concurso /gi,'')},400);
			}
			return true;
		}
		var sbi2 = document.getElementById('sbi2')
		sbi2.form.onsubmit = function(){
			if(sbi2.value.indexOf('concurso')<0 || sbi2.value.indexOf('prova')<0 || sbi2.value.indexOf('apostila')<0){
				sbi2.value = 'concurso ' + sbi2.value;
				setTimeout(function(){ sbi2.value = sbi2.value.replace(/concurso /gi,'')},400);
			}
			return true;
		}
	}
	//window.status = document.readyState + ' ' + document.body.innerHTML
	
}*/
	
function links_new(){
	var as = document.getElementsByTagName('a')
	for(var i=0; i<as.length ; i++){
		if(as[i].href.indexOf('concursosevagas')<0 &&
			as[i].href.indexOf('search/label')<0 &&
			as[i].href.indexOf('/2008')<0 &&
			as[i].href.indexOf('/pagead')<0){
				as[i].target = '_blank';
		}
	}
}
function addFavHome(){
    var url      = "http://concursosevagas.blogspot.com/";
    var title    = "Concursos e vagas blog";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}
	
function bodyOnReady(func){
	//call the function 'func' when DOM loaded
	//by Micox - www.elmicox.com - elmicox.blogspot.com - webly.com.br
	//http://www.elmicox.com/2007/evento-body-onready-sem-o-uso-de-libs/
	window.onload = func
	/*
	if(  (document.readyState=='interactive' && navigator.appName.indexOf('Internet Explorer')>-1) ||
		  (document.body && navigator.appName.indexOf('Internet Explorer')<0 )){
	  func();
	}else{
	  var func_rep = func;
	  setTimeout(function(){ bodyOnReady(func_rep) },250);
	}*/
}

bodyOnReady(function(){
	links_new(); //mandando os links de outro domínio abrirem em nova aba
	//setTimeout(addconcursos,300);
	
	});