// Funções das janelas popups

function popup(windowNome, windowUrl, windowWidth, windowHeight){
	windowTop		= screen.height/2 - windowHeight/2;
	windowLeft		= screen.width/2 - windowWidth/2;
	windowOpcoes	= 'width=' + windowWidth + ', height=' + windowHeight + ', top=' + windowTop + ', left=' + windowLeft + ''
	windowPopup		= window.open(windowUrl, windowNome, windowOpcoes);
}


// Função do formulário de contato

function check(formulario) {
	for (i = 0; i < formulario.length; i++) {
		if (!formulario.elements[i].value) {
			alert('Preencha o campo '+ formulario.elements[i].name +'!');
			formulario.elements[i].focus();
			return;
		}
	}
	formulario.submit();
}