function abrecontrato(){
alert ('Olá, Será aberta a tela de contrato, por favor leia com atenção, Obrigado!');
window.open('contrato/contrato.php','','width=700,height=600,left=40,top=10,toolbar=0,directories=0,resizable=0,status=0,location=0,scrollbars=1');
} 

/*CLICK*/
function click() {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")

/*SELE*/
function sele(){
var tagsAbertas =[""]; // CAMPOS QUE NAO SERÃO BLOQUEADOS
tagsAbertas = tagsAbertas.join("|");

function fechaCamposFF(e){
var elemento = (e.target)?e.target:e.srcElement;
	if (tagsAbertas.indexOf(elemento.tagName.toLowerCase())==-1)
		return false;
}

function abreCamposFF(){
return true
}

function fechaCamposIE(){
var elemento = event.srcElement;
	if(tagsAbertas.indexOf(elemento.tagName.toLowerCase()) == -1)
		document.onselectstart = new Function ("return false");
}

function abreCamposIE(){
var elemento = event.srcElement;
	if(tagsAbertas.indexOf(elemento.tagName.toLowerCase()) == -1){
		document.onselectstart = new Function ("return false");
	}else{
		document.onselectstart = new Function ("return true");
	}
}

if (typeof document.onselectstart != "undefined"){
document.onmousedown	=	fechaCamposIE;
document.onmouseup		=	abreCamposIE;
document.onselectstart  = new Function ("return false");
}else{
document.onmousedown	=	fechaCamposFF;
document.onmouseup		=	abreCamposFF;
}
}

// Início do código de Aumentar/ Diminuir a letra  
//pega todas as tags p//  
var tagAlvo = new Array('p','h3'); 

// Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small... 
var tamanhos = new Array('12px','14px','16px','18px' ); 
var tamanhoInicial = 2;   

function mudaTamanho( idAlvo,acao ){ 
	if (!document.getElementById) return 
	var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo; 	tamanho += acao; 
	if ( tamanho < 0 ) tamanho = 0; 
	if ( tamanho > 6 ) tamanho = 6; 
	tamanhoInicial = tamanho; 
	if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];   		     selecionados.style.fontSize = tamanhos[ tamanho ]; 
	for ( i = 0; i < tagAlvo.length; i++ ){ 
	tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );
	for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ]; 
	} 
}	
//Fim do código
