function abre(url,w,h,scr) {
	window.open(url,'uolblog','width='+w+',height='+h+',directories=0,location=0,menubar=0,resizable=0,scrollbars='+scr+',status=0,toolbar=0,marginleft=0,margintop=0,left=25,top=25');
}

function valida() {
	var email = document.loga.user.value;
	if(email.indexOf("@") == -1) {return true;}
	else if (email.match(/@uol\.com\.br/)) {return true;}
	else {
		document.loga.action = "https://visitante.acesso.uol.com.br/login.html";
		document.loga.submit();
		return false;
	}
} 

function ajuda(){
	var helpURL=(arguments[0])?arguments[0]:"http://stcdvrt.uol.com.br/ajuda.jhtm";
	ajudaBlog=window.open(helpURL,'','width=235,height=550,scrolbars=yes');
	ajudaBlog.focus();
	return false;
}

function zebrar(idTabela){
	var tabela = document.getElementById(idTabela);
	var trs = tabela.getElementsByTagName("tr");
	var even = false;
	for (i=0; i<trs.length; i++){
		trs[i].className += (even)?" par":" impar";
		even = !even;
	}
}
 
function buscaUOL() {
	var q = document.getElementById("busca-q").value;
	if (q == "") {
		alert ("Você precisa digitar uma palavra para fazer a busca.");
		document.getElementById("busca-q").focus();
		return false;
	}
	var uri = document.getElementById("busca-onde").options[document.getElementById("busca-onde").options.selectedIndex].value;
	uri = uri.replace ("{Q}", escape (q));
	window.open (uri);
	return false;
}