function veriemail(x) {
	if ((x.value != "") && (x.value != " ")) { 
		if ((x.value.indexOf("@") < 1) || (x.value.indexOf(".") < 1) || (x.value.indexOf("@.") > -1) || (x.value.indexOf(".@") > -1) || (x.value.indexOf(" ") > -1) || (x.value.indexOf(",") > -1)) {
			alert("Aparentemente o e-mail está incorreto, favor verificar");
			x.style.background = "#FF3300";
			return false;
		} else if(x.value.indexOf("hotmail.com.br") > -1) {
			alert("Endereços do Hotmail não terminam com '.com.br'. Terminam com '.com'");
			x.style.background = "#FF3300";
			return false;
		}
		else { return true; }
	}
	else { return true; }
}

function some_definitivo(x) {
	document.getElementById(x).innerHTML = '';
}

function navegar(x) {
	window.location = x;
}

function buscagoogle(x) {
	window.open("http://www.google.com.br/custom?q="+ x +"&sa=Pesquisar&client=pub-1734743488190608&forid=1&channel=4638744439&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1%3B&hl=pt", "Busca_Google", "width=800,height=600,scrollbars=1,status=1,resizable=1");
}

function verfoto(cod, foto, x, y) {
	window.open('fotos/'+foto, 'User'+cod, 'width='+(x+40)+',height='+(y+40)+',scrollbars=1,status=0,resizable=1');
}