function fotos(url) {	 
	window.open(url,'galeria','top=0,left=0,scrollbars=yes,width=600,height=450');
}

function reportagens(url) {	 
	window.open(url,'reportagens','top=0,left=0,scrollbars=yes,width=700,height=500');
}

function galeria(url) {
	window.open(url,'galeria','scrollbars=no,width=500,height=400');
}

function noticias_imprimir(url) {
	window.open(url,'imprimir','scrollbars=yes,width=400,height=350');
}

function noticias_enviar(url) {
	window.open(url,'enviar_noticia','scrollbars=no,width=400,height=300');
}

function valida_enquete() {
	valida = false;
with(enquete) {
	for (i=0;i<cod_resposta.length;i++) {
		valida = valida || cod_resposta[i].checked;
	}
	if (!valida) {
		alert("Escolha uma opção da enquete!");		
		return false;
	} else {
		submit();
	}
}
}

function valida_noticias_enviar() {

with(document.enviar) {
	if (nome.value == "") {
		alert("Por Favor digite seu nome.");
		nome.focus();
		return false;
	}
	if (email.value == "") {
		alert("Por Favor digite seu E-Mail.");
		email.focus();
		return false;
	}
	if (email.value.indexOf("@") == -1) {
		alert("Por Favor digite seu E-Mail corretamente.");
		email.focus();
		return false;
	}
	if (nome2.value == "") {
		alert("Por Favor digite o nome do destinatário.");
		nome2.focus();
		return false;
	}
	if (email2.value == "") {
		alert("Por Favor digite o E-Mail do destinatário.");
		email2.focus();
		return false;
	}
	if (email2.value.indexOf("@") == -1) {
		alert("Por Favor digite o E-Mail do destinatário corretamente.");
		email2.focus();
		return false;
	}
	return true;
}
}