function dara(pagina){
	window.open(pagina, "Hospedasim", "width=256,height=512,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes,personalbar=no");
}

/*
function tamanho(ender){
	largu = screen.width;
	texto = "Importante: este site foi criado para ser mostrado em telas com tamanho menor do que a atual;\npara obter melhor resultado de acesso, permita que uma janela no tamanho correto seja aberta.";
		
	if(largu > 1024){
		oferta = confirm(texto);
		if(oferta == true){
			window.open(ender, "Hospedasim", "width=940,height=620,toolbar=yes,location=yes,directories=yes,status=yes,menubar=no,scrollbars=no,copyhistory=yes,resizable=no,personalbar=yes");
			window.close();
		}else{
			
		}
	}

}
*/

function comu(id,al){
	if(navigator.appName != "Microsoft Internet Explorer"){
		al = al * 0.01;
		document.getElementById(id).style.MozOpacity = al;
		document.getElementById(id).style.opacity = al;
	}else{
		document.getElementById(id).filters.alpha.opacity = al;
	}
}//chave final-inicial

function roll(para,nome){
	if(nome == "cadeado"){
		document.getElementById(nome).src = para;
	}
}

function prot(orig){

	ende = document.location;
	ende = ende.toString();
	segu = ende.substr(0,5);
	//alert(segu);
	
	//garante o https onde for esperado
	//origens: 0, index; 1, loginseguro; 2, suporte; 3, hospedar; 4, mude; 5, faça;
	if(segu == "https" && orig == 0){
		document.location = "https://www.hospedasim.com.br/loginseguro.htm";
	}else{
		null;
	}
	
	if(segu == "http:" && orig == 1){
		document.location = "https://www.hospedasim.com.br/loginseguro.htm";
	}else{
		null;
	}
	
	if(segu == "http:" && orig == 2){
		document.location = "https://www.hospedasim.com.br/suporte.php";
	}else{
		null;
	}
	
	if(segu == "http:" && orig == 3){
		document.location = "https://www.hospedasim.com.br/hospedar.htm";
	}else{
		null;
	}
	
	if(segu == "http:" && orig == 4){
		document.location = "https://www.hospedasim.com.br/mude.htm";
	}else{
		null;
	}

	if(segu == "http:" && orig == 5){
		document.location = "https://www.hospedasim.com.br/faca.htm";
	}else{
		null;
	}

}

function desfocar(comando){

	//1.5
	if(comando == "be"){
		if(navigator.appName != "Microsoft Internet Explorer"){
			window.close();
			//setTimeout('alert("Fechar.")', 200);
			//setTimeout('window.close()', 600);
			//setTimeout('document.getElementById("nulo").focus()', 200);
			//setTimeout('document.getElementsByTagName("body").focus()', 100);
		}else{
			//nada precisa ser feito aqui para o IE	
		}
	}else{
		if(navigator.appName != "Microsoft Internet Explorer"){
			y = window.pageYOffset;
			setTimeout('document.getElementById("onde").style.top = y', 200);
			setTimeout('document.getElementById("nulo").focus()', 600);
		}else{
			setTimeout('document.getElementById("nulo").focus()', 0);
		}
	}

}

var chama = '<a href="https://www.hospedasim.com.br/hospedar.htm">'+
'<img alt="hospedar no plano sem limites por 6,90 mensais" '+
'src="img/botao_sensual_elementary_refeito.png" '+
'border="0" height="238" width="238" class="clareado" id="botao" '+
'onmouseover=comu("botao","90") onmouseout=comu("botao","100")></a>';

var marcas = '<img border=0 src=img/separador.png>'+
'<a href="info/mambo.htm" target=_blank >'+
'<img border=0 id=alpha src=img/logo_mambo_rh71.png alt="mambo"></a>'+
'<img border=0 src=img/separador.png>'+
'<a href="info/wordpress.htm" target=_blank >'+
'<img border=0 id=alpha src=img/logo_wordpress_rh71.png alt="wordpress"></a>'+
'<img border=0 src=img/separador.png>'+
'<a href="info/phpbb.htm" target=_blank >'+
'<img border=0 id=alpha src=img/logo_phpbb_rh71.png alt="phpbb"></a>'+
'<img border=0 src=img/separador.png>'+
'<a href="info/helpcenterlive.htm" target=_blank >'+
'<img border=0 id=alpha src=img/logo_helpcenterlive_rh71.png alt="helpcenter live"></a>'+
'<img border=0 src=img/separador.png>'+
'<a href="info/osticket.htm" target=_blank >'+
'<img border=0 id=alpha src=img/logo_osticket_rh71.png alt="osticket"></a>'+
'<img border=0 src=img/separador.png>'+
'<a href="info/sitebuilder.htm" target=_blank >'+
'<img border=0 id=alpha src=img/logo_sitebuilder_rh71.png alt="sitebuilder"></a>'+
'<img border=0 src=img/separador.png>'+
'<a href="info/joomla.htm" target=_blank >'+
'<img border=0 id=alpha src=img/logo_joomla_rh71.png alt="joomla"></a>';

//1.1009.00
/*var destaques = 'suporte 24 horas<br>'+
'painel em portugu&ecirc;s<br>'+
'login seguro<br>'+
'pagamento seguro<br>'+
'transfer&ecirc;ncia ilimitada<br>'+
'espa&ccedil;o ilimitado<br>'+
'subdom&iacute;nios infinitos<br>'+
'redirecionamentos infinitos<br>'+
'bancos de dados infinitos<br>'+
'sem limites para contas de email<br>'+
'webmail<br>'+
'estat&iacute;sticas<br>'+
'fant&aacute;stico&nbsp;scripts prontos<br>'+
'scripts cgi<br>'+
'sem taxas adicionais<br>'+
'dois meses gratuitos<br>'+
'e muito mais';*/

/*1.1009.02
var destaques = 'suporte por telefone<br>'+
'suporte por messenger<br>'+
'formul&aacute;rios simplificados<br>'+
'painel em portugu&ecirc;s<br>'+
'pagamento seguro*<br>'+
'nenhuma tarifa de boleto*<br>'+
'pagamentos por email*<br>'+
'dois meses gratuitos**<br>'+
'3 interfaces para webmail*<br>'+
'3 interfaces para estat&iacute;sticas*<br>'+
'construtor de sites<br>'+
'scripts prontos<br>'+
'tr&aacute;fego mensal ilimitado*<br>'+
'espa&ccedil;o em disco ilimitado*<br>'+
'infinitas contas de email*<br>'+
'infinitos bancos de dados*<br>'+
'<small>*para hospedagem paga; **para sites transferidos</small>';*/

var destaques = '<big>construtor de sites<br>'+
'instalador de scripts prontos<br>'+
'painel seguro em português<br>'+
'pagamento seguro por email<br>'+
'nenhuma tarifa adicional<br>'+
'cadastro simplificado<br>'+
'suporte por messenger<br>'+
'atendimento por telefone<br>'+
'dois meses gratuitos<br>'+
'estabilidade 99,8% garantida<br>'+
'infinitas contas de email<br>'+
'infinitos bancos de dados<br>'+
'nenhuma cota mensal ou de disco</big><br>'+
'* planos gratuitos com alguns limites';

//1.1009.00
/*
var rodape = '/// <a title="Ir para a p&aacute;gina inicial"'+
'href="javascript:casa();" alt="home">home</a>'+
' / <a href="sobre.htm" alt="sobre">sobre</a> [ '+
'<a href="info/sobreosite.htm" alt="sobre o site" target="_blank">o site</a> | '+
'<a href="info/sobreaseguranca.htm" alt="sobre a seguranca" target="_blank">a seguran&ccedil;a</a> | '+
'<a href="info/sobreocentrodedados.htm" alt="sobre o centro de dados ou datacenter" target="_blank">o centro de dados</a> ]'+
' / <a href="ajuda.htm" alt="ajuda">ajuda</a>'+
' / <a href="contato.htm" alt="contato">contato</a>'+
' / <a href="termos.htm" target="_blank" alt="termos de uso">termos de uso</a>'+
' / <a href="apenasalpha.htm" alt="site alpha">alpha</a> ///<br>'+
'<div style="text-align: center; font-size: 8pt; padding-top: 6px;">Hospedasim de Igor Oliveira Ferreira © 2008-2010 @ 1024x768 de tela, 16 bits de cor (ou mais) em Explorer 6+ ou Firefox 2+</div>';
*/

var rodape = '/// <a title="Ir para a p&aacute;gina inicial"'+
'href="javascript:casa();" alt="home">home</a>'+
' / <a href="sobre.htm" alt="sobre">sobre</a> [ '+
'<a href="info/sobreosite.htm" alt="sobre o site" target="_blank">o site</a> | '+
'<a href="info/sobreocentrodedados.htm" alt="sobre o centro de dados" target="_blank">o centro de dados</a> '+
'<!--<a href="info/sobreaempresa.htm" alt="sobre a empresa" target="_blank">a empresa</a>--> ]'+
' / <a href="promo.htm" alt="promo">promo</a>'+
' / <a href="ajuda.htm" alt="ajuda">ajuda</a>'+
' / <!--<a href="http://www.hospedasim.com.br/forum/" alt="comunidade">-->f&oacute;rum<!--</a>-->'+
' / <a href="contato.htm" alt="contato">contato</a>'+
' / <a href="termos.htm" target="_blank" alt="termos de uso">termos de uso</a>'+
' / <a href="apenasalpha.htm" alt="site alpha">alpha</a> ///<br>'+
'<div style="text-align: center; font-size: 8pt; padding-top: 6px;">Hospedasim © 2008-2010; entre 9 e 16 horas: 21-4101-8894; 24 horas: 21-8271-6648; site melhor em 1024x768 de tela ou maior.</div>';

var mmenu1a = '<div class="minimenu">'+

'<!-- AddToAny BEGIN -->'+
'<a class="a2a_dd" href="http://www.addtoany.com/share_save">'+
'<img src="img/gostei.png" '+
'hspace="6" vspace="6" border="0" height="40" width="40" title="Compartilhar" alt="AddToAny" /></a>'+
'<script type="text/javascript">'+
'var a2a_config = a2a_config || {};'+
'a2a_config.prioritize = ["blogger_post", "facebook", "digg", "box_net", "google_bookmarks", "google_buzz", "linkedin", "orkut", "twitter", "windows_live_favorites"];</script>'+
'<script type="text/javascript" src="http://static.addtoany.com/menu/locale/pt-BR.js" charset="utf-8"></script>'+
'<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>'+
'<!-- AddToAny END -->'+

'<a href="javascript:print();">'+
'<img alt="" title="Imprimir" src="img/impressora.png" hspace="6" vspace="6" border="0" height="40" width="40">'+
'</a>'+

'<a href="javascript:casa()">'+
'<img alt="" title="Home" src="img/casa.png" hspace="6" vspace="6" border="0" height="40" width="40">'+
'</a>'+

'<!--<a href="javascript:window.close();">'+
'<img title="Fechar" alt="" src="img/kxconfig.png" border="0" hspace="6" vspace="6" height="32" width="32">'+
'</a>-->'+
'</div>';

var mmenu1b = '<div class="minimenu">'+

'<!-- AddToAny BEGIN -->'+
'<a class="a2a_dd" href="http://www.addtoany.com/share_save">'+
'<img src="../img/gostei.png" '+
'hspace="6" vspace="6" border="0" height="40" width="40" title="Compartilhar" alt="AddToAny" /></a>'+
'<script type="text/javascript">'+
'var a2a_config = a2a_config || {};'+
'a2a_config.prioritize = ["blogger_post", "facebook", "digg", "box_net", "google_bookmarks", "google_buzz", "linkedin", "orkut", "twitter", "windows_live_favorites"];</script>'+
'<script type="text/javascript" src="http://static.addtoany.com/menu/locale/pt-BR.js" charset="utf-8"></script>'+
'<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>'+
'<!-- AddToAny END -->'+

'<a href="javascript:print();">'+
'<img alt="" title="Imprimir" src="../img/impressora.png" hspace="6" vspace="6" border="0" height="40" width="40">'+
'</a>'+

'<a href=javascript:casa("../index.htm");>'+
'<img alt="" title="Home" src="../img/casa.png" hspace="6" vspace="6" border="0" height="40" width="40">'+
'</a>'+

'<!--<a href="javascript:window.close();">'+
'<img title="Fechar" alt="" src="../img/kxconfig.png" border="0" hspace="6" vspace="6" height="32" width="32">'+
'</a>-->'+

'</div>';

function casa(loc){

	if(loc == null){
	document.location = "index.htm";
	}else{
	document.location = loc;
	}

}

function exibir(valor){
document.getElementById("lb_senha").style.display = "none";
document.getElementById("lb_mensagem").style.display = "none";
//document.getElementById("lb_conversa").style.display = "none";
document.getElementById("lb_suporte").style.display = "none";
document.getElementById("lb_cancelar").style.display = "none";
//document.getElementById("lb_novidades").style.display = "none";
document.getElementById("lb_recomendar").style.display = "none";
document.getElementById("lb_mudar").style.display = "none";

	if(valor != "?"){
	escolha = "lb_"+valor;
	setTimeout('document.getElementById("aguarde").style.display = "inline"', 100);
	setTimeout('document.getElementById(escolha).style.display = "block"', 1000);
	setTimeout('document.getElementById("aguarde").style.display = "none"', 900);
	document.getElementById("lb_nada").style.display = "none";
	}else{
	document.getElementById("lb_nada").style.display = "block";
	}

}

function verhosp(){

nome	=	document.hshosp.pessoa.value;
tele	=	document.hshosp.telefone.value;
scpf	=	document.hshosp.capefi.value;
ende	=	document.hshosp.endcom.value;
scep	=	document.hshosp.cep.value;
cduf	=	document.hshosp.cddest.value;
mail	=	document.hshosp.email.value;
usua	=	document.hshosp.user.value;
senh	=	document.hshosp.pass.value;
domn	=	document.hshosp.dominio.value;

		if(nome.length < 6 || nome.indexOf(" ") < 1 || nome.indexOf(" ") == nome.length-1 || nome == "Seu nome e sobrenome" || nome == "")
		{document.hshosp.pessoa.style.backgroundColor = "#FFF0F5";
		 document.hshosp.pessoa.focus();
		 alert("Digite seu nome e sobrenome.");
		 document.hshosp.pessoa.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.pessoa.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(tele.length < 10 || tele == "Seu telefone" || tele == "")
		{document.hshosp.telefone.style.backgroundColor = "#FFF0F5";
		 document.hshosp.telefone.focus();
		 alert("Digite seu telefone no formato 00-0000-0000.");
		 document.hshosp.telefone.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.telefone.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(scpf.length < 11 || scpf == "Seu CPF" || scpf == "")
		{document.hshosp.capefi.style.backgroundColor = "#FFF0F5";
		 document.hshosp.capefi.focus();
		 alert("Digite seu CPF no formato 000000000-00.");
		 document.hshosp.capefi.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.capefi.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(ende.length < 8 || ende == "" || ende == "Seu endereço completo" || ende.indexOf(",") < 4)
		{document.hshosp.endcom.style.backgroundColor = "#FFF0F5";
		 document.hshosp.endcom.focus();
		 alert("Digite seu endereço completo.\nExemplo: Rua das Flores, 33 bl. 8 ap. 201");
		 document.hshosp.endcom.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.endcom.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(scep.length < 8 || scep == "Seu CEP" || scep == "" || scep.indexOf(" ") != -1)
		{document.hshosp.cep.style.backgroundColor = "#FFF0F5";
		 document.hshosp.cep.focus();
		 alert("Digite seu CEP no formato 00.000-000.");
		 document.hshosp.cep.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.cep.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(cduf.length < 8 || cduf == "" || cduf == "Sua cidade e UF" || cduf.indexOf(",") < 6)
		{document.hshosp.cddest.style.backgroundColor = "#FFF0F5";
		 document.hshosp.cddest.focus();
		 alert("Digite sua cidade e unidade federal.\nExemplo: Rio das Ostras, RJ");
		 document.hshosp.cddest.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.cddest.style.backgroundColor = "#FFFFFF"; 
		}

		/*if(domn.length < 5 || domn.indexOf(".") < 2 || domn.indexOf(".") == domn.length-1 || domn.indexOf(" ") != -1)
		{document.hshosp.dominio.style.backgroundColor = "#FFF0F5";
		 document.hshosp.dominio.focus();
		 alert("Importante: corrija o domínio escolhido.");
		 document.hsmude.dominio.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.dominio.style.backgroundColor = "#FFFFFF"; 
		}*/
		
		if(mail.length < 8 || mail.indexOf("@") == -1 || mail.indexOf(".") == -1 || mail.lastIndexOf(".") < mail.indexOf("@") || mail.indexOf(" ") != -1)
		{document.hshosp.email.style.backgroundColor = "#FFF0F5";
		 document.hshosp.email.focus();
		 alert("Digite seu endereço de email.");
		 document.hshosp.email.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.email.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(usua.length < 4 || usua.indexOf(" ") != -1 || usua == "Username" || usua == "")
		{document.hshosp.user.style.backgroundColor = "#FFF0F5";
		 document.hshosp.user.focus();
		 alert("Defina um nome de usuário.");
		 document.hshosp.user.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.user.style.backgroundColor = "#FFFFFF";
		}
		
		if(senh.length < 4 || senh.indexOf(" ") != -1 || senh == "Senha" || senh == "")
		{document.hshosp.pass.style.backgroundColor = "#FFF0F5";
		 document.hshosp.pass.focus();
		 alert("Defina uma senha de acesso.");
		 document.hshosp.pass.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hshosp.pass.style.backgroundColor = "#FFFFFF";
		}
}

function vermude(){

nome	=	document.hsmude.pessoa.value;
domn	=	document.hsmude.dominio.value;
mail	=	document.hsmude.email.value;
usua	=	document.hsmude.user.value;
senh	=	document.hsmude.pass.value;

		if(nome.length < 6 || nome.indexOf(" ") < 1 || nome.indexOf(" ") == nome.length-1)
		{document.hsmude.pessoa.style.backgroundColor = "#FFF0F5";
		 document.hsmude.pessoa.focus();
		 alert("Por favor, digite seu nome e sobrenome.");
		 document.hsmude.pessoa.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsmude.pessoa.style.backgroundColor = "#FFFFFF"; 
		}

		if(domn.length < 5 || domn.indexOf(".") < 2 || domn.indexOf(".") == domn.length-1 || domn.indexOf(" ") != -1 || domn.indexOf("www") != -1 || domn.indexOf("http") != -1)
		{document.hsmude.dominio.style.backgroundColor = "#FFF0F5";
		 document.hsmude.dominio.focus();
		 alert("Por favor, digite seu domínio.");
		 document.hsmude.dominio.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsmude.dominio.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(mail.length < 8 || mail.indexOf("@") == -1 || mail.indexOf(".") == -1 || mail.lastIndexOf(".") < mail.indexOf("@") || mail.indexOf(" ") != -1)
		{document.hsmude.email.style.backgroundColor = "#FFF0F5";
		 document.hsmude.email.focus();
		 alert("Por favor, digite seu endereço de email.");
		 document.hsmude.email.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsmude.email.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(usua.length < 4 || usua.indexOf(" ") != -1)
		{document.hsmude.user.style.backgroundColor = "#FFF0F5";
		 document.hsmude.user.focus();
		 alert("Por favor, defina um nome de usuário.");
		 document.hsmude.user.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsmude.user.style.backgroundColor = "#FFFFFF";
		}
		
		if(senh.length < 4 || senh.indexOf(" ") != -1)
		{document.hsmude.pass.style.backgroundColor = "#FFF0F5";
		 document.hsmude.pass.focus();
		 alert("Por favor, defina uma senha de acesso.");
		 document.hsmude.pass.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsmude.pass.style.backgroundColor = "#FFFFFF";
		}
}

function verfaca(){

nome	=	document.hsfaca.pessoa.value;
domn	=	document.hsfaca.dominio.value;
mail	=	document.hsfaca.email.value;
usua	=	document.hsfaca.user.value;
senh	=	document.hsfaca.pass.value;
//dados
coun	=	0;
ddos	=	new Array('demo','ioferreira','hospedagem','hospedas','cpanel','rvkin','teste');
quan	=	ddos.length;
var pone; // positivo ou negativo (0 ou 1)

do{
	if(ddos[coun] == domn){
	pone = 1;
	coun = quan;
	}else{
	pone = 0;
	coun++
	}
}while(coun < quan);

		if(nome.length < 6 || nome.indexOf(" ") < 1 || nome.indexOf(" ") == nome.length-1)
		{document.hsfaca.pessoa.style.backgroundColor = "#FFF0F5";
		 document.hsfaca.pessoa.focus();
		 alert("Por favor, digite seu nome e sobrenome.");
		 document.hsfaca.pessoa.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsfaca.pessoa.style.backgroundColor = "#FFFFFF"; 
		}

		if(domn.length < 2 || domn.indexOf(".") != -1 || domn.indexOf(" ") != -1 || domn.indexOf("www") != -1 || domn.indexOf("http") != -1)
		{document.hsfaca.dominio.style.backgroundColor = "#FFF0F5";
		 document.hsfaca.dominio.focus();
		 alert("Por favor, digite seu subdomínio.");
		 document.hsfaca.dominio.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsfaca.dominio.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(pone != 0){
		 document.hsfaca.dominio.style.backgroundColor = "#FFF0F5";
		 document.hsfaca.dominio.focus();
		 alert("Por favor, escolha outro subdomínio.");
		 document.hsfaca.dominio.value = "";
		 document.hsfaca.dominio.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsfaca.dominio.style.backgroundColor = "#FFFFFF";  	
		}
		
		if(mail.length < 8 || mail.indexOf("@") == -1 || mail.indexOf(".") == -1 || mail.lastIndexOf(".") < mail.indexOf("@") || mail.indexOf(" ") != -1)
		{document.hsfaca.email.style.backgroundColor = "#FFF0F5";
		 document.hsfaca.email.focus();
		 alert("Por favor, digite seu endereço de email.");
		 document.hsfaca.email.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsfaca.email.style.backgroundColor = "#FFFFFF"; 
		}
		
		if(usua.length < 4 || usua.indexOf(" ") != -1)
		{document.hsfaca.user.style.backgroundColor = "#FFF0F5";
		 document.hsfaca.user.focus();
		 alert("Por favor, defina um nome de usuário.");
		 document.hsfaca.user.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsfaca.user.style.backgroundColor = "#FFFFFF";
		}
		
		if(senh.length < 4 || senh.indexOf(" ") != -1)
		{document.hsfaca.pass.style.backgroundColor = "#FFF0F5";
		 document.hsfaca.pass.focus();
		 alert("Por favor, defina uma senha de acesso.");
		 document.hsfaca.pass.style.backgroundColor = "#FFFFFF";
		 return false;}else{
		 document.hsfaca.pass.style.backgroundColor = "#FFFFFF";
		}

}

/* 
	Text and/or Image Crawler Script ©2009 John Davenport Scheuer
	as first seen in http://www.dynamicdrive.com/forums/
	username: jscheuer1 - This Notice Must Remain for Legal Use
*/

function marqueeInit(config){
 if(!document.createElement) return;
 marqueeInit.ar.push(config);
 marqueeInit.run(config.uniqueid);
}

(function(){

 if(!document.createElement) return;

 marqueeInit.ar = [];

 document.write('<style type="text/css">.marquee{white-space:nowrap;overflow:hidden;visibility:hidden;}' +
 '#marq_kill_marg_bord{border:none!important;margin:0!important;}<\/style>');
 var c = 0, tTRE = [new RegExp('^\\s*$'), new RegExp('^\\s*'), new RegExp('\\s*$')],
 req1 = {'position': 'relative', 'overflow': 'hidden'}, defaultconfig = {
  style: { //default style object for marquee containers without configured style
	'margin': '0 auto'
  },
  direction: 'left',
  inc: 2, //default speed - pixel increment for each iteration of a marquee's movement
  mouse: 'pause' //default mouseover behavior ('pause' 'cursor driven' or false)
 }, dash, ie = false, oldie = 0, ie5 = false, iever = 0;
 
 /*@cc_on @*/
 /*@if(@_jscript_version >= 5)
 ie = true;
 try{document.documentMode = 2000}catch(e){};
 iever = Math.min(document.documentMode, navigator.appVersion.replace(/^.*MSIE (\d+\.\d+).*$/, '$1'));
 if(iever < 6)
  oldie = 1;
 if(iever < 5.5){
  Array.prototype.push = function(el){this[this.length] = el;};
  ie5 = true;
  dash = new RegExp('(-(.))');
  String.prototype.encamel = function(s, m){
   s = this;
   while((m = s.match(dash)))
    s = s.replace(m[1], m[2].toUpperCase());
   return s;
  };
 }
 @end @*/

 if(!ie5){
  dash = new RegExp('-(.)', 'g');
  function toHump(a, b){return b.toUpperCase();};
  String.prototype.encamel = function(){return this.replace(dash, toHump);};
 }

 if(ie && iever < 8){
  marqueeInit.table = [];
  window.attachEvent('onload', function(){
   marqueeInit.OK = true;
   for(var i = 0; i < marqueeInit.table.length; ++i)
   marqueeInit.run(marqueeInit.table[i]);
  });
 }
 
 function intable(el){
  while((el = el.parentNode))
   if(el.tagName && el.tagName.toLowerCase() === 'table')
    return true;
   return false;
 };

 marqueeInit.run = function(id){
   if(ie && !marqueeInit.OK && iever < 8 && intable(document.getElementById(id))){
    marqueeInit.table.push(id);
    return;
   }
   if(!document.getElementById(id))
    setTimeout(function(){marqueeInit.run(id);}, 300);
   else
    new Marq(c++, document.getElementById(id));
 }

 function trimTags(tag){
  var r = [], i = 0, e;
  while((e = tag.firstChild) && e.nodeType == 3 && tTRE[0].test(e.nodeValue))
   tag.removeChild(e);
  while((e = tag.lastChild) && e.nodeType == 3 && tTRE[0].test(e.nodeValue))
   tag.removeChild(e);
  if((e = tag.firstChild) && e.nodeType == 3)
   e.nodeValue = e.nodeValue.replace(tTRE[1], '');
  if((e = tag.lastChild) && e.nodeType == 3)
   e.nodeValue = e.nodeValue.replace(tTRE[2], '');
  while((e = tag.firstChild))
   r[i++] = tag.removeChild(e);
  return r;
 }

 function Marq(c, tag){
  var p, u, s, a, ims, ic, i, marqContent, cObj = this;
  this.mq = marqueeInit.ar[c];
  for (p in defaultconfig)
   if((this.mq.hasOwnProperty && !this.mq.hasOwnProperty(p)) || (!this.mq.hasOwnProperty && !this.mq[p]))
    this.mq[p] = defaultconfig[p];
  this.mq.style.width = !this.mq.style.width || isNaN(parseInt(this.mq.style.width))? '100%' : this.mq.style.width;
  if(!tag.getElementsByTagName('img')[0])
   this.mq.style.height = !this.mq.style.height || isNaN(parseInt(this.mq.style.height))? tag.offsetHeight + 3 + 'px' : this.mq.style.height;
  else
   this.mq.style.height = !this.mq.style.height || isNaN(parseInt(this.mq.style.height))? 'auto' : this.mq.style.height;
  u = this.mq.style.width.split(/\d/);
  this.cw = this.mq.style.width? [parseInt(this.mq.style.width), u[u.length - 1]] : ['a'];
  marqContent = trimTags(tag);
  tag.className = tag.id = '';
  tag.removeAttribute('class', 0);
  tag.removeAttribute('id', 0);
  if(ie)
   tag.removeAttribute('className', 0);
  tag.appendChild(tag.cloneNode(false));
  tag.className = ['marquee', c].join('');
  tag.style.overflow = 'hidden';
  this.c = tag.firstChild;
  this.c.appendChild(this.c.cloneNode(false));
  this.c.style.visibility = 'hidden';
  a = [[req1, this.c.style], [this.mq.style, this.c.style]];
  for (i = a.length - 1; i > -1; --i)
   for (p in a[i][0])
    if((a[i][0].hasOwnProperty && a[i][0].hasOwnProperty(p)) || (!a[i][0].hasOwnProperty))
     a[i][1][p.encamel()] = a[i][0][p];
  this.m = this.c.firstChild;
  if(this.mq.mouse == 'pause'){
   this.c.onmouseover = function(){cObj.mq.stopped = true;};
   this.c.onmouseout = function(){cObj.mq.stopped = false;};
  }
  this.m.style.position = 'absolute';
  this.m.style.left = '-10000000px';
  this.m.style.whiteSpace = 'nowrap';
  if(ie5) this.c.firstChild.appendChild((this.m = document.createElement('nobr')));
  if(!this.mq.noAddedSpace)
   this.m.appendChild(document.createTextNode('\xa0'));
  for(i = 0; marqContent[i]; ++i)
   this.m.appendChild(marqContent[i]);
  if(ie5) this.m = this.c.firstChild;
  ims = this.m.getElementsByTagName('img');
  if(ims.length){
   for(ic = 0, i = 0; i < ims.length; ++i){
    ims[i].style.display = 'inline';
    ims[i].style.verticalAlign = ims[i].style.verticalAlign || 'top';
    if(typeof ims[i].complete == 'boolean' && ims[i].complete)
     ic++;
    else {
     ims[i].onload = function(){
       if(++ic == ims.length)
        cObj.setup();
      };
    }
     if(ic == ims.length)
      this.setup();
   }
  }
   else this.setup()
 }

  Marq.prototype.setup = function(){
  if(this.mq.setup) return;
  this.mq.setup = this;
  var s, cObj = this;
  if(this.c.style.height === 'auto')
   this.c.style.height = this.m.offsetHeight + 4 + 'px';
  this.c.appendChild(this.m.cloneNode(true));
  this.m = [this.m, this.m.nextSibling];
  if(this.mq.mouse == 'cursor driven'){
   this.r = this.mq.neutral || 16;
   this.sinc = this.mq.inc;
   this.c.onmousemove = function(e){cObj.mq.stopped = false; cObj.directspeed(e)};
   if(this.mq.moveatleast){
    this.mq.inc = this.mq.moveatleast;
    if(this.mq.savedirection){
     if(this.mq.savedirection == 'reverse'){
      this.c.onmouseout = function(e){
       if(cObj.contains(e)) return;
       cObj.mq.inc = cObj.mq.moveatleast;
       cObj.mq.direction = cObj.mq.direction == 'right'? 'left' : 'right';};     
     } else {
      this.mq.savedirection = this.mq.direction;
      this.c.onmouseout = function(e){
       if(cObj.contains(e)) return;
       cObj.mq.inc = cObj.mq.moveatleast;
       cObj.mq.direction = cObj.mq.savedirection;};     
    }
    } else
     this.c.onmouseout = function(e){if(!cObj.contains(e)) cObj.mq.inc = cObj.mq.moveatleast;};
   }
   else
    this.c.onmouseout = function(e){if(!cObj.contains(e)) cObj.slowdeath();};
  }
  this.w = this.m[0].offsetWidth;
  this.m[0].style.left = 0;
  this.c.id = 'marq_kill_marg_bord';
  this.m[0].style.top = this.m[1].style.top = Math.floor((this.c.offsetHeight - this.m[0].offsetHeight) / 2 - oldie) + 'px';
  this.c.id = '';
  this.c.removeAttribute('id', 0);
  this.m[1].style.left = this.w + 'px';
  s = this.mq.moveatleast? Math.max(this.mq.moveatleast, this.sinc) : (this.sinc || this.mq.inc);
  while(this.c.offsetWidth > this.w - s)
   this.c.style.width = isNaN(this.cw[0])? this.w - s + 'px' : --this.cw[0] + this.cw[1];
  this.c.style.visibility = 'visible';
  this.runit();
  }
  
 Marq.prototype.slowdeath = function(){
  var cObj = this;
  if(this.mq.inc){
   this.mq.inc -= 1;
   this.timer = setTimeout(function(){cObj.slowdeath();}, 100);
  }
 }

 Marq.prototype.runit = function(){
  var cObj = this, d = this.mq.direction == 'right'? 1 : -1;
  if(this.mq.stopped || this.mq.stopMarquee){
   setTimeout(function(){cObj.runit();}, 300);
   return;
  }
  if(this.mq.mouse != 'cursor driven')
   this.mq.inc = Math.max(1, this.mq.inc);
  if(d * parseInt(this.m[0].style.left) >= this.w)
   this.m[0].style.left = parseInt(this.m[1].style.left) - d * this.w + 'px';
  if(d * parseInt(this.m[1].style.left) >= this.w)
   this.m[1].style.left = parseInt(this.m[0].style.left) - d * this.w + 'px';
  this.m[0].style.left = parseInt(this.m[0].style.left) + d * this.mq.inc + 'px';
  this.m[1].style.left = parseInt(this.m[1].style.left) + d * this.mq.inc + 'px';
  setTimeout(function(){cObj.runit();}, 30 + (this.mq.addDelay || 0));
 }

 Marq.prototype.directspeed = function(e){
  e = e || window.event;
  if(this.timer) clearTimeout(this.timer);
  var c = this.c, w = c.offsetWidth, l = c.offsetLeft, mp = (typeof e.pageX == 'number'?
   e.pageX : e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft) - l,
  lb = (w - this.r) / 2, rb = (w + this.r) / 2;
  while((c = c.offsetParent)) mp -= c.offsetLeft;
  this.mq.direction = mp > rb? 'left' : 'right';
  this.mq.inc = Math.round((mp > rb? (mp - rb) : mp < lb? (lb - mp) : 0) / lb * this.sinc);
 }

 Marq.prototype.contains = function(e){
  if(e && e.relatedTarget){var c = e.relatedTarget; if(c == this.c) return true;
   while ((c = c.parentNode)) if(c == this.c) return true;}
  return false;
 }

 function resize(){
  for(var s, m, i = 0; i < marqueeInit.ar.length; ++i){
   if(marqueeInit.ar[i] && marqueeInit.ar[i].setup){
    m = marqueeInit.ar[i].setup;
    s = m.mq.moveatleast? Math.max(m.mq.moveatleast, m.sinc) : (m.sinc || m.mq.inc);
    m.c.style.width = m.mq.style.width;
    m.cw[0] = m.cw.length > 1? parseInt(m.mq.style.width) : 'a';
    while(m.c.offsetWidth > m.w - s)
     m.c.style.width = isNaN(m.cw[0])? m.w - s + 'px' : --m.cw[0] + m.cw[1];
   }
  }
 }

 if (window.addEventListener)
  window.addEventListener('resize', resize, false);
 else if (window.attachEvent)
  window.attachEvent('onresize', resize);

})();