var bo_ns_id = 0;

function startIeFix(){ 

if(isIE()){ 
document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
}
}

function endIeFix(){ 
if(isIE()){ 
document.write('</div>'); 
var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++); 
var theCode = theObject.innerHTML; 
theCode = theCode.substring(4 ,9+theCode.indexOf("</object>")) 
document.write(theCode); }}

function isIE(){ // only for Win IE 6+ // But not in Windows 98, Me, NT 4.0, 2000 
var strBrwsr= navigator.userAgent.toLowerCase(); 
if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){ 
if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){ 
return false; } 

if(strBrwsr.indexOf("win98") > -1 || strBrwsr.indexOf("win 9x 4.90") > -1 ||strBrwsr.indexOf("winnt4.0") > -1 ||strBrwsr.indexOf("windows nt 5.0") > -1) 
{ 
return false; 
} 
return true; 
}

else{ 
return false; }

}

var tagAlvo = new Array('p'); 
var tamanhos = new Array('9px','10px','11px','12px','13px','14px','15px','16px','17px','18px','19px','20px','21px','22px','23px','24px','25px','26px','27px','28px','29px','30px'); 
var tamanhoInicial = 3;  
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 > 12 ) tamanho = 12;   
		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 ];
	}
} 

function trim (str) { 
	return str.replace(/^\s+|\s+$/g,""); 
} 

function Entrar(){
				document.getElementById("login").focus();
				if (trim(document.getElementById("login").value) != "" && trim(document.getElementById("senha").value) != ""){
					document.forms[0].submit();
					document.getElementById("login").value = "";
					document.getElementById("senha").value = "";					
					return false;
				}
				else
				{
					if (trim(document.getElementById("login").value) != "" && trim(document.getElementById("senha").value) == ""){
						document.getElementById("senha").focus();
						return false;
						}
					if (trim(document.getElementById("login").value) == "" && trim(document.getElementById("senha").value) != ""){
						document.getElementById("login").focus();
						return false;
						}
					return false;
				}				
		     }   

