 function formatar(src, mask) {
	var i = src.value.length;
	var saida = mask.substring(0,1);
	var texto = mask.substring(i)

	if (texto.substring(0,1) != saida) {
		src.value += texto.substring(0,1);
	}
}

function doDate(pStr)
{

 var reDate5 = /^((0[1-9]|[12]\d)\/(0[1-9]|1[0-2])|30\/(0[13-9]|1[0-2])|31\/(0[13578]|1[02]))\/\d{4}$/;

	if (reDate5.test(pStr)) {
		
	} else if (pStr != null && pStr != "") {
		alert("DATA DE NASCIMENTO não é válida!\n"+pStr);
		window.document.getElementById("datanascimento").value = "";
	} 
}

function marca(id){
	window.document.getElementById('cinza').className='cinza';
	window.document.getElementById('amarelo').className='amarelo';
	window.document.getElementById('azul').className='azul';
	window.document.getElementById('verde').className='verde';
	window.document.getElementById('rosa').className='rosa';
	window.document.getElementById(id).className=id+'Ativo';
}
function formFocus(id){
	if((document.getElementById(id).className) == "formInput2"){
		document.getElementById(id).className="formInput";
	}else{
		document.getElementById(id).className="formInput2";
	}
}
function formMultFocus(id){
	if((document.getElementById(id).className) == "formMulInput2"){
		document.getElementById(id).className="formMulInput";
	}else{
		document.getElementById(id).className="formMulInput2";
	}
}
function get_flash(arquivo, largura, altura, bgcolor, id, qualidade, alinhamento,transparente,pgphp) {
	obj = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+largura+'" height="'+altura+'" id="'+id+'" align="'+alinhamento+'">';
	obj+= '<param name="allowScriptAccess" value="sameDomain" />';
	obj+= '<param name="movie" value="'+arquivo+'" />';
	obj+= '<param name="quality" value="'+qualidade+'" />';
	if(transparente == true) {
		obj+= '<param name="wmode" value="transparent" />';
	}
	obj+= '<param name="bgcolor" value="'+bgcolor+'" />';
	// obj+= '<param name="FlashVars" value="pg='+pgphp+'" />';
	obj+= '<param name="FlashVars" value="pg='+pgphp+'" />';
	obj+= '<embed src="'+arquivo+'" '+((transparente==true)?'wmode="transparent"':'')+'" quality="'+qualidade+'" bgcolor="'+bgcolor+'" FlashVars="pg='+pgphp+'" width="'+largura+'" height="'+altura+'" name="'+id+'" align="'+alinhamento+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	obj+= '</object>';
	document.write(obj);
}

function abre(id) {
	if(window.document.getElementById(id).style.display == 'none') { 
		window.document.getElementById(id).style.display = '';
		window.document.getElementById("img_"+id).src = '/checkup/imagens/seta_up.gif';
	} else { 
		window.document.getElementById(id).style.display = 'none'; 
		window.document.getElementById("img_"+id).src = '/checkup/imagens/seta_down.gif';
	}
}

function escondeAbasArgalit(){
	document.getElementById('qualidade').style.display = 'none';
	document.getElementById('diferenciais').style.display = 'none';
	//document.getElementById('ficha').style.display = 'none';
	document.getElementById('responsabilidade').style.display = 'none';
}

function mostraAbas(id){
	window.document.getElementById('qualidade').style.display = 'none';
	document.getElementById('qualidade_li').className = '';
	document.getElementById('diferenciais').style.display = 'none';
	document.getElementById('diferenciais_li').className = '';
	//document.getElementById('ficha').style.display = 'none';
	//document.getElementById('ficha_li').className = '';
	document.getElementById('responsabilidade').style.display = 'none';
	document.getElementById('responsabilidade_li').className = '';
	document.getElementById('apresentacao').style.display = 'none';
	document.getElementById('apresentacao_li').className = '';
	document.getElementById(id).style.display = '';
	document.getElementById(id+'_li').className = 'ativo';
}

function validaNews(){
	var msg = "";
	if((window.document.formNews.ds_nome.value == 'Nome completo') || (window.document.formNews.ds_nome.value == '')){
		msg = " - Seu nome!\n";
	}
	if((window.document.formNews.ds_email.value == 'E-mail') || (window.document.formNews.ds_email.value == '')){
		msg = msg + " - Seu email!\n";
	}
	
	if(msg == ""){
		return true;
	}else{
		alert("Preencha os campos corretamente.");
		return false;
	}
}


function validaBusca(){
	var msg = "";
	if((window.document.formBusca.ds_busca.value == 'Palavra chave') || (window.document.formBusca.ds_busca.value == '')){
		msg = " - Seu nome!\n";
	}

	if(msg == ""){
		return true;
	}else{
		alert("Digite uma palavra chave.");
		return false;
	}
}


function ordena(pag, tipo, mod){
	document.location.href = "../produtos/?pg="+pag+"&mod="+mod+"&tipo="+tipo;
	marcaClasseProdutos(tipo);
}


function marcaClasseProdutos(tipo){
	document.getElementById("todos_li").className = "";
	document.getElementById("tintas_li").className = "";
	document.getElementById("solventes_li").className = "";
	document.getElementById("massa_li").className = "";
	document.getElementById("argamassa_li").className = "";
	document.getElementById(tipo+"_li").className = "ativo";
}

// Função Link da paginação (fiveedit linha:)
function Page(cd_sesit, p, tipo, pag, mod){
	document.location.href = "?cd_sesit="+cd_sesit+"&p="+p+"&tipo="+tipo+"&pg="+pag+"&mod="+mod;
}

// Função Link de matérias (fiveedit linha:)
function Url(url, cd_matia, cd_site){
	document.location.href = url+"?cd_matia="+cd_matia+"&cd_site="+cd_site;
}

function url(url){
	document.location.href = url;
}


function escondeAbasGuiaProd(){
	document.getElementById('cromoterapia').style.display = 'none';
	document.getElementById('cores_cor').style.display = 'none';
	document.getElementById('fengshui').style.display = 'none';
	document.getElementById('galeria').style.display = 'none';
	document.getElementById('duvidas').style.display = 'none';
}

function mostraAbasGuiaProd(id){
	document.getElementById('dicas').style.display = 'none';
	document.getElementById('dicas_li').className = '';
	document.getElementById('cromoterapia').style.display = 'none';
	document.getElementById('cromoterapia_li').className = '';
	document.getElementById('cores_cor').style.display = 'none';
	document.getElementById('cores_cor_li').className = '';
	document.getElementById('fengshui').style.display = 'none';
	document.getElementById('fengshui_li').className = '';
	document.getElementById('galeria').style.display = 'none';
	document.getElementById('galeria_li').className = '';
	document.getElementById('duvidas').style.display = 'none';
	document.getElementById('duvidas_li').className = '';
	document.getElementById(id).style.display = '';
	document.getElementById(id+'_li').className = 'ativo';
}

    
function dicasAbas(id){
	if(document.getElementById(id).style.display == 'none'){
		document.getElementById(id).style.display = '';
		document.getElementById(id+"_li").className = 'ativo';
	}else{
		document.getElementById(id).style.display = 'none';
		document.getElementById(id+"_li").className = '';
	}
}

function dicasAbasProd(id){
	if(document.getElementById(id).style.display == 'none'){
		document.getElementById(id+"_corpo").style.display = '';
		document.getElementById(id+"_li").className = 'ativo';
	}else{
		document.getElementById(id+"_corpo").style.display = 'none';
		document.getElementById(id+"_li").className = '';
	}
}

function Dicas(id){
	if(document.getElementById(id).style.display == ""){
		document.getElementById(id).style.display = "none";
		document.getElementById(id+"_tit").className = "barBtn";
	}else{
		document.getElementById(id).style.display = "";
		document.getElementById(id+"_tit").className = "barBtnAtivo";
	}
}

    
function ativaAbaCores(){
	document.getElementById('dicas').style.display = "none";
	document.getElementById('dicas_li').className = "";
	document.getElementById('cores_cor').style.display = "";
	document.getElementById('cores_cor_li').className = "ativo";
}  

    
function mudaAbaFaleConosco(id){
		window.document.getElementById("formContato").style.display = "none";
		window.document.getElementById("formContato_li").className = "";
		window.document.getElementById("formTrabalhe").style.display = "none";
		window.document.getElementById("formTrabalhe_li").className = "";
		window.document.getElementById(id).style.display = "";
		window.document.getElementById(id+"_li").className = "ativo";
} 

    
function abasClasses(id){
	if(document.getElementById(id).style.display == ''){
		document.getElementById(id+"_t").className = 'barBtn';
		document.getElementById(id).style.display = 'none';
	}else{	
		document.getElementById(id+"_t").className = 'barBtnAtivo';
		document.getElementById(id).style.display = '';
	}
} 

function escondeAbas(){
	document.getElementById('produtos_relacionados').style.display = 'none';
	document.getElementById('duvidas_frequentes').style.display = 'none';
	document.getElementById('dicas').style.display = 'none';
	document.getElementById('rendimentos').style.display = 'none';
} 



function Voltar(){
	document.getElementById('matiaProximo_img').src = '/imagens/btn_prod_pro_off.gif';
	document.getElementById('matiaProximo').href = 'javascript:;';
	
}

function Ir(){
	document.getElementById('matiaProximo_img').src = '/imagens/btn_prod_pro.gif';
	document.getElementById('matiaAnterior').href = 'javascript:prodAnt();';
}

function Ir_ant(){
	document.getElementById('matiaAnterior_img').src = '/imagens/btn_prod_ant_off.gif';
	document.getElementById('matiaAnterior').href = 'javascript:;';
	//alert('ok');
}

function Voltar_ant(){
	document.getElementById('matiaAnterior_img').src = '/imagens/btn_prod_ant.gif';
	//document.getElementById('matiaProximo').href = 'javascript:prodProx();';
	
	//alert('ok');
}

function enviarFotos(){
	if(document.getElementById('enviarFotos').style.display == ""){
		document.getElementById('enviarFotos').style.display = "none";
	}else{
		document.getElementById('enviarFotos').style.display = "";
	}
}

function checaEnivoFotos(){

	var msg = "";
	if(window.document.formEnviaFotos.con_nome.value == ''){
		msg = " - Seu nome!\n";
	}
	if(window.document.formEnviaFotos.con_bairro.value == ''){
		msg = msg + " - Seu bairro!\n";
	}
	if(window.document.formEnviaFotos.con_cidade.value == ''){
		msg = msg + " - Sua Cidade!\n";
	}
	if(window.document.formEnviaFotos.con_estado.value == ''){
		msg = msg + " - Seu Estado!\n";
	}
	if(window.document.formEnviaFotos.arquivo.value == ''){
		msg = msg + " - Sua Foto!\n";
	}
	if(window.document.formEnviaFotos.con_produto.value == ''){
		msg = msg + " - O nome do produto utilizado!\n";
	}
	if(window.document.formEnviaFotos.con_historia.value == ''){
		msg = msg + " - Conte sua história!\n";
	}	
	
	if(msg == ""){
		return true;
	}else{
		alert("Preencha os campos corretamente.\n\n"+msg);
		return false;
	}	
}


function FaleConoscoTelefonia() {
	
	var msg = "";
	
	if(window.document.getElementById('nome').value == ""){
		msg = " - Informe seu nome;\n";
	}
	
	if(window.document.getElementById('empresa').value == ""){
		msg = msg + " - Informe sua empresa;\n";
	}
	
	if(window.document.getElementById('telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}
	
	if(window.document.getElementById('email').value == ""){
		msg = msg + " - Informe seu e-mail;\n";
	}
	
	if(window.document.getElementById('mensagem').value == ""){
		msg = msg + " - Digite sua mensagem.\n";
	}
	
	
	if(msg)
		alert("Atenção!\n\n" + msg);
	else
		window.document.formFalePaciente.submit();

}


function FaleConosco() {
	
	var msg = "";
	
	if(window.document.getElementById('nome').value == ""){
		msg = " - Informe seu nome;\n";
	}else{
		window.document.getElementById('nome_q').value = escape(window.document.getElementById('nome').value);
	}
	
	if(window.document.getElementById('empresa').value == ""){
		msg = msg + " - Informe sua empresa;\n";
	}else{
		window.document.getElementById('empresa_q').value = escape(window.document.getElementById('empresa').value);
	}
	
	if(window.document.getElementById('telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}else{
		window.document.getElementById('telefone_q').value = escape(window.document.getElementById('telefone').value);
	}
	
	if(window.document.getElementById('email').value == ""){
		msg = msg + " - Informe seu e-mail;\n";
	}else{
		window.document.getElementById('email_q').value = escape(window.document.getElementById('email').value);
	}
	
	if(window.document.getElementById('mensagem').value == ""){
		msg = msg + " - Digite sua mensagem.\n";
	}else{
		window.document.getElementById('mensagem_q').value = escape(window.document.getElementById('mensagem').value);
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.formFalePaciente.submit();
		return true;
	}
}


function FaleComPaciente() {
	
	var msg = "";
	
	if((window.document.getElementById('fale_paciente_nome').value == "") || (window.document.getElementById('fale_paciente_nome').value == "Seu nome")){
		msg = " - Informe seu nome;\n";
	}
	
	if((window.document.getElementById('fale_paciente_email').value == "") || (window.document.getElementById('fale_paciente_email').value == "Seu e-mail")){
		msg = msg + " - Informe seu e-mail;\n";
	}
	
	if((window.document.getElementById('fale_paciente_paciente').value == "") || (window.document.getElementById('fale_paciente_paciente').value == "Nome do paciente")){
		msg = msg + " - Informe o nome do Paciente;\n";
	}
	
	if((window.document.getElementById('fale_paciente_mensagem').value == "") || (window.document.getElementById('fale_paciente_mensagem').value == "Mensagem")){
		msg = msg + " - Digite sua mensagem.\n";
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('fale_paciente_nome_q').value = escape(window.document.getElementById('fale_paciente_nome').value);
		window.document.getElementById('fale_paciente_email_q').value = escape(window.document.getElementById('fale_paciente_email').value);
		window.document.getElementById('fale_paciente_paciente_q').value = escape(window.document.getElementById('fale_paciente_paciente').value);
		window.document.getElementById('fale_paciente_mensagem_q').value = escape(window.document.getElementById('fale_paciente_mensagem').value);
		window.document.formFaleComPaciente.submit();
		return true;
	}
}



function FaleComDoutor() {
	
	var msg = "";
	
	if((window.document.getElementById('fale_agradeca_nome').value == "") || (window.document.getElementById('fale_agradeca_nome').value == "Seu nome")){
		msg = " - Informe seu nome;\n";
	}
	
	if((window.document.getElementById('fale_agradeca_email').value == "") || (window.document.getElementById('fale_agradeca_email').value == "Seu e-mail")){
		msg = msg + " - Informe seu e-mail;\n";
	}
	
	if((window.document.getElementById('fale_agradeca_doutor').value == "") || (window.document.getElementById('fale_agradeca_doutor').value == "Nome do Doutor")){
		msg = msg + " - Informe o nome do Doutor;\n";
	}
	
	if((window.document.getElementById('fale_agradeca_mensagem').value == "") || (window.document.getElementById('fale_agradeca_mensagem').value == "Mensagem")){
		msg = msg + " - Digite sua mensagem.\n";
	}
	
	if((window.document.getElementById('fale_agradeca_publicacao_s').checked == false) && (window.document.getElementById('fale_agradeca_publicacao_n').checked == false)){
		msg = msg + " - Selecione a opção para publicação do conteúdo no site do Vitória Apart Hospital.\n";
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('fale_agradeca_nome').value = escape(window.document.getElementById('fale_agradeca_nome').value);
		window.document.getElementById('fale_agradeca_email').value = escape(window.document.getElementById('fale_agradeca_email').value);
		window.document.getElementById('fale_agradeca_doutor').value = escape(window.document.getElementById('fale_agradeca_doutor').value);
		window.document.getElementById('fale_agradeca_mensagem').value = escape(window.document.getElementById('fale_agradeca_mensagem').value);
		window.document.formAgradeca.submit();
		return true;
	}
}


function VisitaTecnicaPessoa() {
	
	var msg = "";
	
	if(window.document.getElementById('pessoa_nome').value == ""){
		msg = " - Informe seu nome;\n";
	}
	
	if(window.document.getElementById('pessoa_endereco').value == ""){
		msg = msg + " - Informe seu endereço;\n";
	}
	
	if(window.document.getElementById('pessoa_cidade').value == ""){
		msg = msg + " - Informe sua cidade;\n";
	}
	
	if(window.document.getElementById('pessoa_estado').value == ""){
		msg = msg + " - Informe seu estado;\n";
	}
	
	if(window.document.getElementById('pessoa_telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}
	
	if(window.document.getElementById('pessoa_email').value == ""){
		msg = msg + " - Informe seu  e-mail;\n";
	}
	
	if(window.document.getElementById('pessoa_formacao').value == ""){
		msg = msg + " - Informe sua formação;\n";
	}
	
	if(window.document.getElementById('pessoa_area').value == ""){
		msg = msg + " - Informe sua área;\n";
	}
	
	if(window.document.getElementById('pessoa_objetivos').value == ""){
		msg = msg + " - Informe seus objetivos\n";
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('pessoa_nome').value = escape(window.document.getElementById('pessoa_nome').value);
		window.document.getElementById('pessoa_endereco').value = escape(window.document.getElementById('pessoa_endereco').value);
		window.document.getElementById('pessoa_cidade').value = escape(window.document.getElementById('pessoa_cidade').value);
		window.document.getElementById('pessoa_estado').value = escape(window.document.getElementById('pessoa_estado').value);
		window.document.getElementById('pessoa_telefone').value = escape(window.document.getElementById('pessoa_telefone').value);
		window.document.getElementById('pessoa_email').value = escape(window.document.getElementById('pessoa_email').value);
		window.document.getElementById('pessoa_formacao').value = escape(window.document.getElementById('pessoa_formacao').value);
		window.document.getElementById('pessoa_area').value = escape(window.document.getElementById('pessoa_area').value);
		window.document.getElementById('pessoa_objetivos').value = escape(window.document.getElementById('pessoa_objetivos').value);
		window.document.formVisitaTecnicaPessoa.submit();
		return true;
	}
}




function VisitaTecnicaEmpresa() {
	
	var msg = "";
	

	if(window.document.getElementById('empresa_name').value == ""){
		msg = " - Informe seu Nome;\n";
	}
	
	if(window.document.getElementById('empresa_email').value == ""){
		msg = msg + " - Informe seu e-mail;\n";
	}
	
	if(window.document.getElementById('empresa_telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}
	
	if(window.document.getElementById('empresa_endereco').value == ""){
		msg = msg + " - Informe seu Endereço;\n";
	}
	
	if(window.document.getElementById('empresa_cidade').value == ""){
		msg = msg + " - Informe sua Cidade;\n";
	}
	
	if(window.document.getElementById('empresa_estado').value == ""){
		msg = msg + " - Informe seu Estado;\n";
	}
	
	if(window.document.getElementById('empresa_empresa').value == ""){
		msg = msg + " - Informe sua Empresa;\n";
	}
	
	if(window.document.getElementById('empresa_cargo').value == ""){
		msg = msg + " - Informe seu Cargo;\n";
	}
	
	if(window.document.getElementById('empresa_unidade').value == ""){
		msg = msg + " - Informe sua Unidade;\n";
	}
	
	if(window.document.getElementById('empresa_area').value == ""){
		msg = msg + " - Informe sua Área;\n";
	}
	
	if(window.document.getElementById('empresa_objetivos').value == ""){
		msg = msg + " - Informe o objetivo;\n";
	}
	
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('empresa_name').value = escape(window.document.getElementById('empresa_name').value);
		window.document.getElementById('empresa_email').value = escape(window.document.getElementById('empresa_email').value);
		window.document.getElementById('empresa_telefone').value = escape(window.document.getElementById('empresa_telefone').value);
		window.document.getElementById('empresa_endereco').value = escape(window.document.getElementById('empresa_endereco').value);
		window.document.getElementById('empresa_cidade').value = escape(window.document.getElementById('empresa_cidade').value);
		window.document.getElementById('empresa_estado').value = escape(window.document.getElementById('empresa_estado').value);
		window.document.getElementById('empresa_empresa').value = escape(window.document.getElementById('empresa_empresa').value);
		window.document.getElementById('empresa_cargo').value = escape(window.document.getElementById('empresa_cargo').value);
		window.document.getElementById('empresa_unidade').value = escape(window.document.getElementById('empresa_unidade').value);
		window.document.getElementById('empresa_area').value = escape(window.document.getElementById('empresa_area').value);
		window.document.getElementById('empresa_objetivos').value = escape(window.document.getElementById('empresa_objetivos').value);
		window.document.formVisitaTecnicaEmpresa.submit();
		return true;
	}
}




function VisitaTecnicaEscolas() {
	
	var msg = "";
	
	
	if(window.document.getElementById('escolas_name').value == ""){
		msg = " - Informe seu Nome;\n";
	}
	
	if(window.document.getElementById('escolas_email').value == ""){
		msg = msg + " - Informe seu e-mail;\n";
	}
	
	if(window.document.getElementById('escolas_telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}
	
	if(window.document.getElementById('escolas_endereco').value == ""){
		msg = msg + " - Informe o seu endereço;\n";
	}
	
	if(window.document.getElementById('escolas_instituicao').value == ""){
		msg = msg + " - Informe a Instituição;\n";
	}
	
	if(window.document.getElementById('escolas_cidade').value == ""){
		msg = msg + " - Informe a cidade;\n";
	}
	
	if(window.document.getElementById('escolas_periodo').value == ""){
		msg = msg + " - Informe o período da turma;\n";
	}
	
	if(window.document.getElementById('escolas_numero').value == ""){
		msg = msg + " - Informe o número de pessoas;\n";
	}
	
	if(window.document.getElementById('escolas_graduacao').value == ""){
		msg = msg + " - Informe o nível de escolaridade;\n";
	}
	
	if(window.document.getElementById('escolas_curso').value == ""){
		msg = msg + " - Informe o  curso;\n";
	}
	
	if(window.document.getElementById('escolas_area').value == ""){
		msg = msg + " - Informe a área que deseja visitar;\n";
	}
	
	if(window.document.getElementById('escolas_objetivos').value == ""){
		msg = msg + " - Informe o objetivo da visita;\n";
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('escolas_name').value = escape(window.document.getElementById('escolas_name').value);
		window.document.getElementById('escolas_email').value = escape(window.document.getElementById('escolas_email').value);
		window.document.getElementById('escolas_telefone').value = escape(window.document.getElementById('escolas_telefone').value);
		window.document.getElementById('escolas_endereco').value = escape(window.document.getElementById('escolas_endereco').value);
		window.document.getElementById('escolas_instituicao').value = escape(window.document.getElementById('escolas_instituicao').value);
		window.document.getElementById('escolas_cidade').value = escape(window.document.getElementById('escolas_cidade').value);
		window.document.getElementById('escolas_periodo').value = escape(window.document.getElementById('escolas_periodo').value);
		window.document.getElementById('escolas_numero').value = escape(window.document.getElementById('escolas_numero').value);
		window.document.getElementById('escolas_graduacao').value = escape(window.document.getElementById('escolas_graduacao').value);
		window.document.getElementById('escolas_curso').value = escape(window.document.getElementById('escolas_curso').value);
		window.document.getElementById('escolas_area').value = escape(window.document.getElementById('escolas_area').value);
		window.document.getElementById('escolas_objetivos').value = escape(window.document.getElementById('escolas_objetivos').value);
		window.document.formVisitaTecnicaEscolas.submit();
		return true;
	}
}




function FaleOportunidades() {
	
	var msg = "";
	
	if(window.document.getElementById('nome').value == ""){
		msg = " - Informe seu nome;\n";
	}else{
		window.document.getElementById('nome_q').value = escape(window.document.getElementById('nome').value);
	}

	if(window.document.getElementById('email').value == ""){
		msg = msg + " - Informe seu e-mail;\n";
	}else{
		window.document.getElementById('email_q').value = escape(window.document.getElementById('email').value);
	}

	if(window.document.getElementById('celular').value == ""){
		msg = msg + " - Digite seu celular.\n";
	}else{
		window.document.getElementById('celular_q').value = escape(window.document.getElementById('celular').value);
	}
	
	if(window.document.getElementById('telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}else{
		window.document.getElementById('telefone_q').value = escape(window.document.getElementById('telefone').value);
	}
	
	if(window.document.getElementById('endereco').value == ""){
		msg = msg + " - Informe seu Endereço;\n";
	}else{
		window.document.getElementById('endereco_q').value = escape(window.document.getElementById('endereco').value);
	}
	
	if(window.document.getElementById('cidade').value == ""){
		msg = msg + " - Informe sua cidade;\n";
	}else{
		window.document.getElementById('cidade_q').value = escape(window.document.getElementById('cidade').value);
	}
	
	if(window.document.getElementById('estado').value == ""){
		msg = msg + " - Informe seu Estado;\n";
	}else{
		window.document.getElementById('estado_q').value = escape(window.document.getElementById('estado').value);
	}
	
	if(window.document.getElementById('nascimento').value == ""){
		msg = msg + " - Informe sua data de nascimento;\n";
	}else{
		window.document.getElementById('nascimento_q').value = escape(window.document.getElementById('nascimento').value);
	}
	
	if(window.document.getElementById('cpf').value == ""){
		msg = msg + " - Informe seu CPF;\n";
	}else{
		window.document.getElementById('cpf_q').value = escape(window.document.getElementById('cpf').value);
	}
	
	if(window.document.getElementById('escolaridade').value == ""){
		msg = msg + " - Informe sua Escolaridade;\n";
	}else{
		window.document.getElementById('escolaridade_q').value = escape(window.document.getElementById('escolaridade').value);
	}
	
	if(window.document.getElementById('interesse').value == ""){
		msg = msg + " - Informe seu Interesse;\n";
	}else{
		window.document.getElementById('interesse_q').value = escape(window.document.getElementById('interesse').value);
	}
	

	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('curso_q').value = escape(window.document.getElementById('curso').value);
		window.document.getElementById('instituicao_q').value = escape(window.document.getElementById('instituicao').value);
		window.document.getElementById('turnoperiodo_q').value = escape(window.document.getElementById('turnoperiodo').value);
		window.document.getElementById('conclusao_q').value = escape(window.document.getElementById('conclusao').value);
		window.document.getElementById('atividades_q').value = escape(window.document.getElementById('atividades').value);
		window.document.getElementById('lingua1_q').value = escape(window.document.getElementById('lingua1').value);
		window.document.getElementById('lingua2_q').value = escape(window.document.getElementById('lingua2').value);
		window.document.getElementById('lingua3_q').value = escape(window.document.getElementById('lingua3').value);
		window.document.getElementById('lingua4_q').value = escape(window.document.getElementById('lingua4').value);
		window.document.getElementById('lingua5_q').value = escape(window.document.getElementById('lingua5').value);
		window.document.getElementById('lingua6_q').value = escape(window.document.getElementById('lingua6').value);
		window.document.getElementById('lingua7_q').value = escape(window.document.getElementById('lingua7').value);
		window.document.getElementById('empresa1_q').value = escape(window.document.getElementById('empresa1').value);
		window.document.getElementById('segmento1_q').value = escape(window.document.getElementById('segmento1').value);
		window.document.getElementById('cargo1_q').value = escape(window.document.getElementById('cargo1').value);
		window.document.getElementById('atividades1_q').value = escape(window.document.getElementById('atividades1').value);
		window.document.getElementById('inicio1_q').value = escape(window.document.getElementById('inicio1').value);
		window.document.getElementById('final1_q').value = escape(window.document.getElementById('final1').value);
		window.document.getElementById('mensagem1_q').value = escape(window.document.getElementById('mensagem1').value);
		window.document.getElementById('empresa2_q').value = escape(window.document.getElementById('empresa2').value);
		window.document.getElementById('segmento2_q').value = escape(window.document.getElementById('segmento2').value);
		window.document.getElementById('cargo2_q').value = escape(window.document.getElementById('cargo2').value);
		window.document.getElementById('atividades2_q').value = escape(window.document.getElementById('atividades2').value);
		window.document.getElementById('inicio2_q').value = escape(window.document.getElementById('inicio2').value);
		window.document.getElementById('final2_q').value = escape(window.document.getElementById('final2').value);
		window.document.getElementById('mensagem2_q').value = escape(window.document.getElementById('mensagem2').value);
		window.document.formOportunidades.submit();
		return true;
	}
}

function FalePsOportunidades() {
	
	var msg = "";
	
	if(window.document.getElementById('nome').value == ""){
		msg = " - Informe seu nome;\n";
	}else{
		window.document.getElementById('nome_q').value = escape(window.document.getElementById('nome').value);
	}

	if(window.document.getElementById('email').value == ""){
		msg = msg + " - Informe seu e-mail;\n";
	}else{
		window.document.getElementById('email_q').value = escape(window.document.getElementById('email').value);
	}

	if(window.document.getElementById('celular').value == ""){
		msg = msg + " - Digite seu celular.\n";
	}else{
		window.document.getElementById('celular_q').value = escape(window.document.getElementById('celular').value);
	}
	
	if(window.document.getElementById('telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}else{
		window.document.getElementById('telefone_q').value = escape(window.document.getElementById('telefone').value);
	}
	
	if(window.document.getElementById('endereco').value == ""){
		msg = msg + " - Informe seu Endereço;\n";
	}else{
		window.document.getElementById('endereco_q').value = escape(window.document.getElementById('endereco').value);
	}
	
	if(window.document.getElementById('cidade').value == ""){
		msg = msg + " - Informe sua cidade;\n";
	}else{
		window.document.getElementById('cidade_q').value = escape(window.document.getElementById('cidade').value);
	}
	
	if(window.document.getElementById('estado').value == ""){
		msg = msg + " - Informe seu Estado;\n";
	}else{
		window.document.getElementById('estado_q').value = escape(window.document.getElementById('estado').value);
	}
	
	if(window.document.getElementById('nascimento').value == ""){
		msg = msg + " - Informe sua data de nascimento;\n";
	}else{
		window.document.getElementById('nascimento_q').value = escape(window.document.getElementById('nascimento').value);
	}
	
	if(window.document.getElementById('cpf').value == ""){
		msg = msg + " - Informe seu CPF;\n";
	}else{
		window.document.getElementById('cpf_q').value = escape(window.document.getElementById('cpf').value);
	}
	
	if(window.document.getElementById('escolaridade').value == ""){
		msg = msg + " - Informe sua Escolaridade;\n";
	}else{
		window.document.getElementById('escolaridade_q').value = escape(window.document.getElementById('escolaridade').value);
	}
	
	if(window.document.getElementById('interesse').value == ""){
		msg = msg + " - Informe seu Interesse;\n";
	}else{
		window.document.getElementById('interesse_q').value = escape(window.document.getElementById('interesse').value);
	}
	
	if(window.document.getElementById('ps_sim').value == ""){
		msg = msg + " - Pessoa com Deficiência;\n";
	}else{
		window.document.getElementById('ps_sim_q').value = escape(window.document.getElementById('ps_sim').value);
	}
	
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('curso_q').value = escape(window.document.getElementById('curso').value);
		window.document.getElementById('instituicao_q').value = escape(window.document.getElementById('instituicao').value);
		window.document.getElementById('turnoperiodo_q').value = escape(window.document.getElementById('turnoperiodo').value);
		window.document.getElementById('conclusao_q').value = escape(window.document.getElementById('conclusao').value);
		window.document.getElementById('atividades_q').value = escape(window.document.getElementById('atividades').value);
		window.document.getElementById('lingua1_q').value = escape(window.document.getElementById('lingua1').value);
		window.document.getElementById('lingua2_q').value = escape(window.document.getElementById('lingua2').value);
		window.document.getElementById('lingua3_q').value = escape(window.document.getElementById('lingua3').value);
		window.document.getElementById('lingua4_q').value = escape(window.document.getElementById('lingua4').value);
		window.document.getElementById('lingua5_q').value = escape(window.document.getElementById('lingua5').value);
		window.document.getElementById('lingua6_q').value = escape(window.document.getElementById('lingua6').value);
		window.document.getElementById('lingua7_q').value = escape(window.document.getElementById('lingua7').value);
		window.document.getElementById('empresa1_q').value = escape(window.document.getElementById('empresa1').value);
		window.document.getElementById('segmento1_q').value = escape(window.document.getElementById('segmento1').value);
		window.document.getElementById('cargo1_q').value = escape(window.document.getElementById('cargo1').value);
		window.document.getElementById('atividades1_q').value = escape(window.document.getElementById('atividades1').value);
		window.document.getElementById('inicio1_q').value = escape(window.document.getElementById('inicio1').value);
		window.document.getElementById('final1_q').value = escape(window.document.getElementById('final1').value);
		window.document.getElementById('mensagem1_q').value = escape(window.document.getElementById('mensagem1').value);
		window.document.getElementById('empresa2_q').value = escape(window.document.getElementById('empresa2').value);
		window.document.getElementById('segmento2_q').value = escape(window.document.getElementById('segmento2').value);
		window.document.getElementById('cargo2_q').value = escape(window.document.getElementById('cargo2').value);
		window.document.getElementById('atividades2_q').value = escape(window.document.getElementById('atividades2').value);
		window.document.getElementById('inicio2_q').value = escape(window.document.getElementById('inicio2').value);
		window.document.getElementById('final2_q').value = escape(window.document.getElementById('final2').value);
		window.document.getElementById('mensagem2_q').value = escape(window.document.getElementById('mensagem2').value);
		window.document.getElementById('ps_sim_q').value = escape(window.document.getElementById('ps_sim').value);
		window.document.formOportunidades.submit();
		return true;
	}
}




function PreInternacao() {
	
	var msg = "";
	
	if(window.document.getElementById('paciente').value == ""){
		msg = " - Informe seu nome;\n";
	}
	
	if(window.document.getElementById('convenio').value == ""){
		msg = msg + " - Informe seu convênio;\n";
	}
		
	if(msg)
		alert("Atenção!\n\n" + msg);
	else
		window.document.FrmFornecedor.submit();

}


function Oportunidades() {
	
	var msg = "";
	
	if(window.document.getElementById('nome').value == ""){
		msg = " - Informe seu nome;\n";
	}
	
	if(window.document.getElementById('email').value == ""){
		msg = msg + " - Informe seu convênio;\n";
	}
		
	if(msg)
		alert("Atenção!\n\n" + msg);
	else
		window.document.FrmFornecedor.submit();

}


function Popup(Url, Titulo, Width, Height, Scrollbar) 
{
    window.open(Url, Titulo, 'width='+Width+', height='+Height+', scrollbars='+Scrollbar+', status=no, resizable, top='+((screen.availHeight/2)-(Height/2))+', left='+((screen.availWidth/2)-(Width/2)))
}


function checaTrabalhe(){

	var msg = "";
	if(window.document.formEnviaFotos.tra_nome.value == ''){
		msg = " - Seu nome!\n";
	}
	if(window.document.formEnviaFotos.tra_email.value == ''){
		msg = msg + " - Seu bairro!\n";
	}
	if(window.document.formEnviaFotos.tra_telefone.value == ''){
		msg = msg + " - Sua Cidade!\n";
	}
	if(window.document.formEnviaFotos.tra_celular.value == ''){
		msg = msg + " - Seu Estado!\n";
	}
	if(window.document.formEnviaFotos.tra_endereco.value == ''){
		msg = msg + " - Sua Foto!\n";
	}
	if(window.document.formEnviaFotos.tra_cidade.value == ''){
		msg = msg + " - O nome do produto utilizado!\n";
	}
	if(window.document.formEnviaFotos.tra_bairro.value == ''){
		msg = msg + " - Conte sua história!\n";
	}	
	if(window.document.formEnviaFotos.tra_estado.value == 0){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_nascimento.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_idade.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_sexo.value == 0){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_naturalidade.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_estadocivil.value == 0){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_estado.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_estado.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_estado.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_estado.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(window.document.formEnviaFotos.tra_estado.value == ''){
		msg = msg + " - Conte sua história!\n";
	}
	if(msg == ""){
		return true;
	}else{
		alert("Preencha os campos corretamente.\n\n"+msg);
		return false;
	}	
}

function LiberaCampo(valor){
	if(valor == "Sim"){
		document.getElementById('tiposCarteria').style.display = '';
	}else{
		document.getElementById('tiposCarteria').style.display = 'none';
	}
}

//---------------------------- FUNÇÃO CONVÊNIOS -------------------------------------------//

function aparece(divAtual) {
    var divs = new Array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','todos');
    for (div in divs) {
    	document.getElementById(divs[div]).style.display = 'none';
    }	
    document.getElementById(divAtual).style.display = 'block';
}

//---------------------------- FUNÇÃO ESPECIALIDADES MÉDICAS -------------------------------------------//

function medicos(divAtual) {
    var divs = new Array('1','2','3','4');
    for (div in divs) {
    	document.getElementById(divs[div]).style.display = 'none';
    }	
    document.getElementById(divAtual).style.display = 'block';
}

//---------------------------- FUNÇÃO CONHEÇA O VAH -------------------------------------------//

function conhecaVAH(divAtual) {
    var divs = new Array('recepcao','shopping');
    for (div in divs) {
    	document.getElementById(divs[div]).style.display = 'none';
    }	
    document.getElementById(divAtual).style.display = 'block';
}


//---------------------------- FUNÇÃO TROCA A IMAGEM DO MENU DE MAIS PARA MENOS-------------------------------------------//

function mudaclasse(ele, track, op){
	
	
	
	if(track == 2){
	
		if(window.document.getElementById("menu_"+op).className == "aberto"){
			window.document.getElementById("menu_"+op).className = "fechado";
		}else{
			resetaclasse();
			window.document.getElementById("menu_"+op).className = "aberto";
		}
	
	}
	
	
	if(track == 1){
		if (ele.className == "aberto"){
			ele.className = "aberto";
		}else{
			resetaclasse();
			ele.className = "aberto";
		}
	}
	
	
}

function resetaclasse(){
	links = document.getElementsByTagName("a");
	i = 0;
	while(links[i]){
		if(links[i].className == "aberto"){
			links[i].className = "fechado";
		}
		i++;
	}
	
}




//---------------------------- FUNÇÃO MENU-------------------------------------------//
function menu(divAtual) {
    var divs = new Array('Institucional','Ensino','Guia de Internação','Canal VAH','Fale Conosco','Trabalhe Conosco');
    for (div in divs) {
    	document.getElementById(divs[div]).style.display = 'none';
    }	
    document.getElementById(divAtual).style.display = 'block';
}





/*-------------------------- FUNÇÃO AUMENTA FONTE ---------------------------------*/

	function fontSize(action, container){
	    container = ".box";
	    baseSize = parseInt($(container).css("font-size"));
	 
	    $els = $(container).children();
	     $els.each(function(){
		  $fs = parseInt($(this).css("font-size"));
		  if(action=="plus" && baseSize<15){ 
		  	$fs+=1;
		  }else if(action=="minus" && baseSize>9){
			  $fs-=1;
		  }
		  $(this).css("font-size", $fs);
	    })
	}
	$(function(){
	    $("#menosFonte").click(function(){ fontSize("minus") }).blur();
	    $("#maisFonte").click(function(){ fontSize("plus") }).blur();
	})
	
	
	
/*------------------------------- galeria --------------------------------------*/
$(document).ready(function() 
{
	$("#galeria").scrollable({ 
		size: 5,
		horizontal: true, 
		activeClass:'gActive', 		 
		items: '.gItems', 
		onSeek: null
	});
	$(".gNext").click(function () { 
		$("#galeria").scrollable("move", 5, 1000); 
	});
	$(".gPrev").click(function () { 
		$("#galeria").scrollable("move", -5, 1000); 
	});
});


/*------------------------------- galeria --------------------------------------*/

function TrocaConteudo(op){
	if(op == '-'){
		num = num - 1;
		if(num < 1)
			num = total;
	}
	if(op == '+'){
		num = num + 1;
		if(num > total)
			num = 1;
	}
	
window.document.getElementById('conheca_foto').innerHTML = Picture[num];
window.document.getElementById('conheca_tituloLink').innerHTML = Titulo[num];
window.document.getElementById('conheca_chamada').innerHTML = Chamada[num];	
	
	
}

/*------------------------------- galeria --------------------------------------*/

function TrocaConteudoDia(op){
	if(op == '-'){
		numdia = numdia - 1;
		if(numdia < 1)
			numdia = totaldia;
	}
	if(op == '+'){
		numdia = numdia + 1;
		if(numdia > totaldia)
			numdia = 1;
	}
	
window.document.getElementById('conheca_foto_dia').innerHTML = Picturedia[numdia];
//window.document.getElementById('conheca_tituloLink_dia').innerHTML = Titulo[num];
window.document.getElementById('conheca_chamada_dia').innerHTML = Chamadadia[numdia];	
	
	
}

/*------------------------------- INFORMAÇÕES DIAGNOSTICOS E TERAPIAS --------------------------------------*/

function diagnostico(id){
	if(document.getElementById("info_"+id).style.display == ""){
		document.getElementById("info_"+id).style.display = "none";

	}else{
		document.getElementById("info_"+id).style.display = "";
	}
}


/*-------------------------------- VERIFICA FORM PESQUISA MEDICOS POR ESPECIALIDADES -----------------------*/
function VerificaMedicos(){
	if((window.document.getElementById('nome').value == "nome do médico") && (window.document.getElementById('especialidade').value == "") && (window.document.getElementById('crm').value == "crm do médico")){
		alert("Preencha ao menos um campo!");
	}else{
		FivecomUtil.submitForm('#resultado', '#frmMedicos'); 
		window.document.getElementById('estatico').style.display = 'none';
		return false;
	}
}



/********************* BUSCA DO SITE **************************************/
function caracterEspecial(){
	if(window.document.getElementById('qu').value == ""){
		alert("Digite uma palavra-chave!");
		return false;
	}else{ 
		window.document.getElementById('query').value = escape(window.document.getElementById('qu').value);
		return true;
	}
}



/************************** VALIDA CPF *************************/
function validaCPF(campo) {
	if(campo){
		cpf = new String(campo);
		cpf = cpf.replace(".","");
		cpf = cpf.replace(".","");
		cpf = cpf.replace("-","");
	
		valor = true;
		erro = new String;
		if (cpf.length < 11) erro += "Sao necessarios 11 digitos para verificacao do CPF! \n\n"; 
		var nonNumbers = /\D/;
		if (nonNumbers.test(cpf)) erro += "A verificacao de CPF suporta apenas numeros! \n\n";	
		if (cpf == "00000000000" || cpf == "11111111111" || cpf == "22222222222" || cpf == "33333333333" || cpf == "44444444444" || cpf == "55555555555" || cpf == "66666666666" || cpf == "77777777777" || cpf == "88888888888" || cpf == "99999999999"){
			  erro += "Numero de CPF invalido!"
		}
		var a = [];
		var b = new Number;
		var c = 11;
		for (i=0; i<11; i++){
			a[i] = cpf.charAt(i);
			if (i < 9) b += (a[i] *  --c);
		}
		if ((x = b % 11) < 2) { a[9] = 0 } else { a[9] = 11-x }
		b = 0;
		c = 11;
		for (y=0; y<10; y++) b += (a[y] *  c--); 
		if ((x = b % 11) < 2) { a[10] = 0; } else { a[10] = 11-x; }
		if ((cpf.charAt(9) != a[9]) || (cpf.charAt(10) != a[10])){
			erro +="Dados incorretos.\nDigite novamente!";
		}
		if (erro.length > 0){
			alert(erro);
			window.document.getElementById("cpf").value = "";
			return false;
		}
		return true;
	}
}


/***************************** INSCRIÇÃO ********************/

function inscricaoValida() {
	
	var msg = "";
	
	if(window.document.getElementById('cpf').value == ""){
		msg = " - Informe seu CPF;\n";
	}
	
	if(window.document.getElementById('datanascimento').value == ""){
		msg = msg + " - Informe sua Data de Nascimento;\n";
	}

	if(window.document.getElementById('nome').value == ""){
		msg = msg + " - Informe seu Nome.\n";
	}
	
	if(window.document.getElementById('telfixo').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}
	
	if(window.document.getElementById('email').value == ""){
		msg = msg + " - Informe seu E-mail;\n";
	}
	
	if(window.document.getElementById('sexo').value == ""){
		msg = msg + " - Informe seu Sexo;\n";
	}
	
	if(window.document.getElementById('nomepai').value == ""){
		msg = msg + " - Informe o nome do seu Pai;\n";
	}
	
	if(window.document.getElementById('nomemae').value == ""){
		msg = msg + " - Informe o nome da seu Mãe;\n";
	}
	
	if(window.document.getElementById('rg').value == ""){
		msg = msg + " - Informe seu RG;\n";
	}
	
	if(window.document.getElementById('emissor').value == ""){
		msg = msg + " - Informe o Emissor do RG;\n";
	}
	
	
	if(window.document.getElementById('rguf').value == ""){
		msg = msg + " - Informe o UF do RG;\n";
	}
	
	if(window.document.getElementById('logradouro').value == ""){
		msg = msg + " - Informe o Logradouro;\n";
	}
	
	
	if(window.document.getElementById('numero').value == ""){
		msg = msg + " - Informe o Numero do Logradouro;\n";
	}
	
	
	if(window.document.getElementById('complemento').value == ""){
		msg = msg + " - Informe o Complemento do endereço;\n";
	}
	
	
	if(window.document.getElementById('bairro').value == ""){
		msg = msg + " - Informe o Bairro;\n";
	}
	
	
	if(window.document.getElementById('cidade').value == ""){
		msg = msg + " - Informe a sua Cidade;\n";
	}
	
	
	if(window.document.getElementById('uf').value == ""){
		msg = msg + " - Informe o seu Estado;\n";
	}
	
	
	if(window.document.getElementById('cep').value == ""){
		msg = msg + " - Informe o seu CEP;\n";
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.getElementById('cpf_q').value = escape(window.document.getElementById('cpf').value);
		window.document.getElementById('datanascimento_q').value = escape(window.document.getElementById('datanascimento').value);
		window.document.getElementById('nome_q').value = escape(window.document.getElementById('nome').value);
		window.document.getElementById('telfixo_q').value = escape(window.document.getElementById('telfixo').value);
		window.document.getElementById('telcelular_q').value = escape(window.document.getElementById('telcelular').value);
		window.document.getElementById('email_q').value = escape(window.document.getElementById('email').value);
		window.document.getElementById('sexo_q').value = escape(window.document.getElementById('sexo').value);
		window.document.getElementById('nomepai_q').value = escape(window.document.getElementById('nomepai').value);
		window.document.getElementById('nomemae_q').value = escape(window.document.getElementById('nomemae').value);
		window.document.getElementById('rg_q').value = escape(window.document.getElementById('rg').value);
		window.document.getElementById('emissor_q').value = escape(window.document.getElementById('emissor').value);
		window.document.getElementById('rguf_q').value = escape(window.document.getElementById('rguf').value);
		window.document.getElementById('numero_q').value = escape(window.document.getElementById('numero').value);
		window.document.getElementById('logradouro_q').value = escape(window.document.getElementById('logradouro').value);
		window.document.getElementById('complemento_q').value = escape(window.document.getElementById('complemento').value);
		window.document.getElementById('bairro_q').value = escape(window.document.getElementById('bairro').value);
		window.document.getElementById('cidade_q').value = escape(window.document.getElementById('cidade').value);
		window.document.getElementById('uf_q').value = escape(window.document.getElementById('uf').value);
		window.document.getElementById('cep_q').value = escape(window.document.getElementById('cep').value);
		
		window.document.getElementById('deficienciavisual_1_q').value = escape(window.document.getElementById('deficienciavisual_1').value);

		
		window.document.formCadastro.submit();
		return true;
	}
}

function Cursos() {
	
	var msg = "";
	
	if(window.document.getElementById('nome').value == ""){
		msg = " - Informe seu Nome;\n";
	}	
	if(window.document.getElementById('nascimento').value == ""){
		msg = msg + " - Informe sua Data de Nascimento;\n";
	}
	
	if(window.document.getElementById('cpf').value == ""){
		msg = msg + " - Informe seu CPF;\n";
	}
	
	if(window.document.getElementById('escolaridade').value == ""){
		msg = msg + " - Informe seu Escolaridade;\n";
	}
	
	if(window.document.getElementById('celular').value == ""){
		msg = msg + " - Informe seu celular;\n";
	}
	
	if(window.document.getElementById('telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}
	
	if(window.document.getElementById('estadocivil').value == ""){
		msg = msg + " - Informe seu estado civil;\n";
	}
	
	if(window.document.getElementById('Idades').value == ""){
		msg = msg + " - Informe sua Idade;\n";
	}
	
	if(window.document.getElementById('empresa').value == ""){
		msg = msg + " - Informe sua empresa;\n";
	}
	
	if(window.document.getElementById('tempo').value == ""){
		msg = msg + " - Informe o Tempo de Trabalho;\n";
	}
	
	if(window.document.getElementById('atividade').value == ""){
		msg = msg + " - Informe seu Atividades desenvolvidas;\n";
	}
	
	if(window.document.getElementById('mensagem').value == ""){
		msg = msg + " - Digite O que você espera do curso técnico em enfermagem?.\n";
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.formCurso.submit();
		return true;
	}
}


function Pos() {
	
	var msg = "";
	
	if(window.document.getElementById('nome').value == ""){
		msg = " - Informe seu Nome;\n";
	}	
	if(window.document.getElementById('sexo').value == ""){
		msg = msg + " - Informe seu Gênero;\n";
	}
	
	if(window.document.getElementById('nascimento').value == ""){
		msg = msg + " - Informe sua data de Nascimento;\n";
	}
	
	if(window.document.getElementById('telefone').value == ""){
		msg = msg + " - Informe seu telefone;\n";
	}
	
	if(window.document.getElementById('celular').value == ""){
		msg = msg + " - Informe seu celular;\n";
	}
	
	if(window.document.getElementById('email').value == ""){
		msg = msg + " - Informe seu E-mail;\n";
	}
	
	if(window.document.getElementById('mae').value == ""){
		msg = msg + " - Informe Nome da sua Mãe;\n";
	}
	
	if(window.document.getElementById('pai').value == ""){
		msg = msg + " - Informe Nome da seu Pai;\n";
	}
	
	if(window.document.getElementById('rg').value == ""){
		msg = msg + " - Informe a Carteira de identidade;\n";
	}
	
	
	if(window.document.getElementById('emissor').value == ""){
		msg = msg + " - informe o emissor.\n";
	}
	
	if(window.document.getElementById('uf').value == ""){
		msg = msg + " - informe o estado do emissor.\n";
	}
	
	if(window.document.getElementById('cpf').value == ""){
		msg = msg + " - Informe o seu CPF;\n";
	}
	
	
	if(window.document.getElementById('endereco').value == ""){
		msg = msg + " - informe o seu endereco.\n";
	}
	
	if(window.document.getElementById('bairro').value == ""){
		msg = msg + " - informe o seu bairro.\n";
	}
	
	if(window.document.getElementById('cidade').value == ""){
		msg = msg + " - informe o sua cidade.\n";
	}
	
	
	if(msg){
		alert("Atenção!\n\n" + msg);
		return false;
	}else{
		window.document.formPos.submit();
		return true;
	}
}
