function AumentarFonte(elemento) {
    switch (elemento.style.fontSize) {
        case '11px': {
            elemento.style.fontSize = '12px';
            break;
            }
        case '12px': {
            elemento.style.fontSize = '13px';
            break;
            }
        case '13px': {
            elemento.style.fontSize = '14px';
            break;
            }
        case '14px': {
            elemento.style.fontSize = '15px';
            break;
            }
        default: {
            if (elemento.style.fontSize != '15px') {
				elemento.style.fontSize = '12px';
			}
            break;
            }
    }
}

function DiminuirFonte(elemento) {
    switch (elemento.style.fontSize) {
        case '15px': {
            elemento.style.fontSize = '14px';
            break;
            }
        case '14px': {
            elemento.style.fontSize = '13px';
            break;
            }
        case '13px': {
            elemento.style.fontSize = '12px';
            break;
            }
        case '12px': {
            elemento.style.fontSize = '11px';
            break;
            }
        default: {
            elemento.style.fontSize = '11px';
            break;
            }
    }
}

function abre_enviarmateria(sURL){
newwindow=open(sURL,"materia","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=250,height=295, top=150, left=150");

}


function abre_encontro(sURL){
newwindow=open(sURL,"materia","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=325,height=390, top=150, left=150");

}
window.defaultStatus = "Feira Palace Hotel - Desenvolvido pela M9"
function abre_tempo(sURL){
newwindow=open(sURL,"tempo","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=780,height=470, top=150, left=5");

}

function abre_promocao(sURL){
newwindow=open(sURL,"promocao","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=250,height=220, top=150, left=150");

}

function abre_fotos(sURL){
newwindow=open(sURL,"micareta","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=755,height=400, top=20, left=15");

}

function abre_fotos(sURL){
newwindow=open(sURL,"fotos","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=755,height=400, top=20, left=15");

}

function abre_micareta(sURL){
newwindow=open(sURL,"micareta","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=266,height=300, top=150, left=150");
}

function abre_diadasmaes(sURL){
newwindow=open(sURL,"diadasmaes","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=266,height=300, top=150, left=150");
}

function abre_referendo(sURL){
newwindow=open(sURL,"referendo","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=350,height=300, top=150, left=150");
}
function abre_especialnatal(sURL){
newwindow=open(sURL,"referendo","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=350,height=300, top=150, left=150");
}


function abre_bento_fotos(sURL){
newwindow=open(sURL,"bentofotos","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=755,height=400, top=20, left=15");

}

function abre_bento(sURL){
newwindow=open(sURL,"bento","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=417,height=450, top=50, left=50");

}

function abre_especial(sURL){
newwindow=open(sURL,"diadasmaes","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=266,height=300, top=150, left=150");

}


function abre_especial2(sURL){
newwindow=open(sURL,"fluminense","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=475,height=500, top=150, left=150");

}

// CHECA CADASTRO USUÁRIO
function cadastro_usuario() {
    var a = document.cadastro;
    if (!a.email.value.indexOf('@', 0) == -1 ||
	a.email.value.indexOf('.', 0) == -1)
		 {
        window.alert('Você não preencheu seu e-mail corretamente!');
        return false;		
        }
		
    if (!a.senha.value) {
        window.alert('Você não preencheu o sua senha!');
        return false;
    }
	
	if (!a.csenha.value) {
        window.alert('Você não confirmou sua senha!');
        return false;
    }
	
	if (!a.nome.value) {
        window.alert('Você não digitou seu nome!');
        return false;
    }
	
	if (!a.sobrenome.value) {
        window.alert('Você não digitou seu sobrenome!');
        return false;
    }
	
	if (!a.fone.value) {
        window.alert('Você não digitou seu telefone!');
        return false;
    }
	
	if (!a.rg.value) {
        window.alert('Você não digitou seu RG!');
        return false;
    }
    	
	return true;
}

// CHECA LEMBRAR SENHA
function lembrar_senha() {
    var a = document.lembrar;
    if (!a.email.value.indexOf('@', 0) == -1 ||
	a.email.value.indexOf('.', 0) == -1)
		 {
        window.alert('Você não preencheu seu e-mail corretamente!');
        return false;		
        }
	   	
	return true;
}

// PARTICIPAR DA PROMOÇÃO
function participar_promocao() {
    var a = document.participar;
    if (!a.email.value.indexOf('@', 0) == -1 ||
	a.email.value.indexOf('.', 0) == -1)
		 {
        window.alert('Você não preencheu seu e-mail corretamente!');
        return false;		
        }
		
    if (!a.senha.value) {
        window.alert('Você não digitou sua senha!');
        return false;
    }
		   	
	return true;
}

//travamento
