function cadastroNewsletters(){
	nome	= document.getElementById("nome").value;
	email	= document.getElementById("email").value;	
	ajaxGet("cadastro_newsletters.php?nome="+nome+"&email="+email,document.getElementById("resultadoNewsletters"),true);	
}
function abrirFotosCao(id, div, tabela, fechar){
	ajaxGet("fotos_cao.php?id="+id+"&t="+tabela,document.getElementById(div),true);	
	document.getElementById(div).style.display = "block";	
	document.getElementById(fechar).style.display = "block";
}
function abrirDocumentosCao(id, div, tabela, fechar){
	ajaxGet("documentos_cao.php?id="+id+"&t="+tabela,document.getElementById(div),true);	
	document.getElementById(div).style.display = "block";	
	document.getElementById(fechar).style.display = "block";
}
function abrirTitulosCao(id, div, tabela, fechar){
	ajaxGet("titulos_cao.php?id="+id+"&t="+tabela,document.getElementById(div),true);	
	document.getElementById(div).style.display = "block";	
	document.getElementById(fechar).style.display = "block";
}
function abrirVideosCao(id, div, tabela, fechar){
	ajaxGet("videos_cao.php?id="+id+"&t="+tabela,document.getElementById(div),true);	
	document.getElementById(div).style.display = "block";	
	document.getElementById(fechar).style.display = "block";
}
function fecharDivConteudo(div, fechar){
	document.getElementById(div).style.display = "none";	
	document.getElementById(fechar).style.display = "none";
}
function abrirProgeniaCao(id, tabela){
	window.open("progenia_cao.php?id="+id+"&t="+tabela,"width=7000,height=500");
}

function abrirFormulario(num){
	ajaxGet("formularios_cadastro.php?num="+num,document.getElementById("formulariosCadastro"),false);	
}
function cadastroCurriculo(){
	nome			= document.getElementById("nome").value;
	foto			= document.getElementById("foto").value;
	cpf				= document.getElementById("cpf").value;
	
	rg				= document.getElementById("rg").value;
	data_nasc		= document.getElementById("data_nasc").value;
	filhos			= document.getElementById("filhos").value;
	estado_civil	= document.getElementById("estado_civil").value;
	escolaridade	= document.getElementById("escolaridade").value;
	
	endereco		= document.getElementById("endereco").value;
	cidade			= document.getElementById("cidade").value;
	telefone		= document.getElementById("telefone").value;	
	celular			= document.getElementById("celular").value;
	email			= document.getElementById("email").value;
	experiencia		= document.getElementById("experiencia").value;
	servico			= document.getElementById("servico").value;
	

	ajaxGet("envio_cadastro_curriculo.php?nome="+nome+"&foto="+foto+"&cpf="+cpf+"&rg="+rg+"&data_nasc="+data_nasc+"&filhos="+filhos+"&estado_civil="+estado_civil+"&escolaridade="+escolaridade+"&endereco="+endereco+"&cidade="+cidade+"&telefone="+telefone+"&celular="+celular+"&email="+email+"&experiencia="+experiencia+"&servico="+servico,document.getElementById("resultadoFormulario"),false);	
}
function cadastroFornecedor(){
	razao			= document.getElementById("razao").value;
	fantasia		= document.getElementById("fantasia").value;
	cnpj			= document.getElementById("cnpj").value;
	endereco		= document.getElementById("endereco").value;
	cidade			= document.getElementById("cidade").value;
	telefone		= document.getElementById("telefone").value;	
	celular			= document.getElementById("celular").value;
	email			= document.getElementById("email").value;
	area_atua		= document.getElementById("area_atua").value;
	servico			= document.getElementById("servico").value;
	

	ajaxGet("envio_cadastro_fornecedor.php?razao="+razao+"&fantasia="+fantasia+"&cnpj="+cnpj+"&endereco="+endereco+"&cidade="+cidade+"&telefone="+telefone+"&celular="+celular+"&email="+email+"&area_atua="+area_atua+"&servico="+servico,document.getElementById("resultadoFormulario"),false);	
}
function contatoEnvio(){
	nome			= document.getElementById("nome").value;
	email			= document.getElementById("email").value;
	telefone		= document.getElementById("telefone").value;
	celular			= document.getElementById("celular").value;
	data			= document.getElementById("data").value;
	tipo			= document.getElementById("tipo").value;
	local_cerimonia	= document.getElementById("local_cerimonia").value;
	local_recepcao	= document.getElementById("local_recepcao").value;
	hora_cerimonia	= document.getElementById("hora_cerimonia").value;
	hora_recepcao	= document.getElementById("hora_recepcao").value;
	num_convidados	= document.getElementById("num_convidados").value;
	indicado		= document.getElementById("indicado").value;
	observacoes		= document.getElementById("observacoes").value;

	ajaxGet("contato.php?nome="+nome+"&email="+email+"&telefone="+telefone+"&celular="+celular+"&data="+data+"&tipo="+tipo+"&local_cerimonia="+local_cerimonia+"&local_recepcao="+local_recepcao+"&hora_cerimonia="+hora_cerimonia+"&hora_recepcao="+hora_recepcao+"&num_convidados="+num_convidados+"&indicado="+indicado+"&observacoes="+observacoes+"&post=1",document.getElementById("resultadoContato"),false);	
}
function conteudoDicaEscolhida(id){
	ajaxGet("dicasecuriosidades.php?id="+id,document.getElementById("conteudo"),false);
}
function abrirDicas(id){
	document.getElementById("todasdicas").style.display="none";
	ajaxGet("dicas_completo.php?id="+id,document.getElementById("dadosdicas"),false);	
	document.getElementById("dadosdicas").style.display="block";
}
function abrirServico(id){
	document.getElementById("todosservicos").style.display="none";
	document.getElementById("introdutexto").style.display="none";	
	ajaxGet("servicos_completo.php?id="+id,document.getElementById("dadosservicos"),false);	
	document.getElementById("dadosservicos").style.display="block";
}
function abrirServico_B(id){
	ajaxGet("servicos.php?id="+id,document.getElementById("conteudo"),false);	
}
function conteudoPrincipal(){
	document.getElementById("conteudo").style.display="block";
	ajaxGet("principal.php",document.getElementById("conteudo"),false);	
}
function conteudoEmpresa(){
	ajaxGet("empresa.php",document.getElementById("conteudo"),false);
}
function conteudoServicos(){
	ajaxGet("servicos.php",document.getElementById("conteudo"),false);
}
function conteudoDicas(){
	ajaxGet("dicasecuriosidades.php",document.getElementById("conteudo"),false);
}
function conteudoParceiros(){
	ajaxGet("parceiros.php",document.getElementById("conteudo"),false);
}
function conteudoRSVP(){
	ajaxGet("rsvp.php",document.getElementById("conteudo"),false);
}
function conteudoGaleria(){
	ajaxGet("galeria.php",document.getElementById("conteudo"),false);
}
function abrirGaleriaID(id){
	ajaxGet("galeria_id.php?id="+id,document.getElementById("conteudo"),false);
}
function conteudoCadastro(){
	ajaxGet("cadastro.php",document.getElementById("conteudo"),false);
}
function conteudoContato(){
	ajaxGet("contato.php",document.getElementById("conteudo"),false);
}
function formRSVP(){
	/*OBJETO COMBOBOX*/
	eventoSelect = document.getElementById("id_evento");
	id_evento = eventoSelect.options[eventoSelect.selectedIndex].value;
		
	nome = document.getElementById('nome').value;	
	email = document.getElementById('email').value;	
	telefone = document.getElementById('telefone').value;	
	celular = document.getElementById('celular').value;	
	qtdPessoas = document.getElementById('qtdPessoas').value;
	
	/*OBJETO RADIO*/
	objConfirmacao = document.forms[0].elements['confirmacao'];
    for(i=0; i < objConfirmacao.length; i++ ) {
        if (objConfirmacao[i].checked == true){
			confirmacao = objConfirmacao[i].value;
		}
    }
	
	ajaxGet("confirmarpresenca.php?nome="+nome+"&email="+email+"&telefone="+telefone+"&celular="+celular+"&qtdPessoas="+qtdPessoas+"&confirmacao="+confirmacao+"&id_evento="+id_evento,document.getElementById("conteudo"),false);
}


function enviarFoto_B(id){
	nomeR = document.getElementById('rN').value;	
	emailR = document.getElementById('rE').value;	
	
	nomeD = document.getElementById('dN').value;	
	emailD = document.getElementById('dE').value;	
	
	idfoto = id;
	
	ajaxGet("envia_foto_email.php?nomeR="+nomeR+"&emailR="+emailR+"&nomeD="+nomeD+"&emailD="+emailD+"&idfoto="+idfoto,document.getElementById("envia_foto_email"),false);
}
function compraFOTOOK(){
	nomeR = document.getElementById('rN').value;	
	emailR = document.getElementById('rE').value;	
	
	nomeD = document.getElementById('dN').value;	
	emailD = document.getElementById('dE').value;	
	
	idfoto = "";

	ajaxGet("envia_foto_email.php?nomeR="+nomeR+"&emailR="+emailR+"&nomeD="+nomeD+"&emailD="+emailD+"&idfoto="+idfoto,document.getElementById("envia_foto_email"),false);
}