//Inicio do pedido empresarial

// Tabela de Idiomas
// 1 - Português
// 2 - Inglês
// 3 - Alemão
// 4 - Espanhol
// 5 - Frances
// 6 - Italiano

// Define variável global
var xmlhttp;
var Cod_Idioma;


function form_pedido_emp(varForm, varIdioma){


Cod_Idioma = varIdioma;

//declarando as variaveis locais
//dados rementente

var varRemetente_Usuario;
var varEmail_Usuario;
var varPedido_Usuario;
var varEndentrega_Usuario;
var varNumero_entrega_Usuario;
var varAndar_entrega_Usuario;
var varConjunto_entrega_Usuario;
var varBairro_entrega_Usuario;
var varCidade_entrega_Usuario;
var varEstado_entrega_Usuario;
var varPais_entrega_Usuario;
var varCEP_entrega_Usuario;
var varTelefone_entrega_Usuario;
// dados empresa
var varRazaosocial_emp_Usuario;
var varRazaosocial2_emp_Usuario;
var varRazaosocial3_emp_Usuario;
var varNomefantasia_emp_Usuario;
var varNomefantasia2_emp_Usuario;
var varNomefantasia3_emp_Usuario;
var varLogomarca_emp_Usuario;
var varLogomarca2_emp_Usuario;
var varLogomarca3_emp_Usuario;
var varDataconstituicao_emp_Usuario;
var varRamoatuacao_emp_Usuario;
var varEndereco_emp_Usuario;
var varNumero_emp_Usuario;
var varAndar_emp_Usuario;
var varConjunto_emp_Usuario;
var varBairro_emp_Usuario;
var varCidade_emp_Usuario;
var varEstado_emp_Usuario;
var varPais_emp_Usuario;
var varCEP_emp_Usuario;
var varTelefone_emp_Usuario;
//dados socios - Socio1
var varNome_socio_Usuario;
var varMulher_socio_Usuario;
var varNascimento_socio_Usuario;
var varEndereco_socio_Usuario;
var varNumero_socio_Usuario;
var varAndar_socio_Usuario;
var varCasa_socio_Usuario;
var varBairro_socio_Usuario;
var varCidade_socio_Usuario;
var varEstado_socio_Usuario;
var varPais_socio_Usuario;
var varCEP_socio_Usuario;
var varTelefone_socio_Usuario;
var varProfissao_socio_Usuario;
//Socio2
var varNome_socio_Usuario2;
var varMulher_socio_Usuario2;
var varNascimento_socio_Usuario2;
var varEndereco_socio_Usuario2;
var varNumero_socio_Usuario2;
var varAndar_socio_Usuario2;
var varCasa_socio_Usuario2;
var varBairro_socio_Usuario2;
var varCidade_socio_Usuario2;
var varEstado_socio_Usuario2;
var varPais_socio_Usuario2;
var varCEP_socio_Usuario2;
var varTelefone_socio_Usuario2;
var varProfissao_socio_Usuario2;
//Socio3
var varNome_socio_Usuario3;
var varMulher_socio_Usuario3;
var varNascimento_socio_Usuario3;
var varEndereco_socio_Usuario3;
var varNumero_socio_Usuario3;
var varAndar_socio_Usuario3;
var varCasa_socio_Usuario3;
var varBairro_socio_Usuario3;
var varCidade_socio_Usuario3;
var varEstado_socio_Usuario3;
var varPais_socio_Usuario3;
var varCEP_socio_Usuario3;
var varTelefone_socio_Usuario3;
var varProfissao_socio_Usuario3;
//Socio4
var varNome_socio_Usuario4;
var varMulher_socio_Usuario4;
var varNascimento_socio_Usuario4;
var varEndereco_socio_Usuario4;
var varNumero_socio_Usuario4;
var varAndar_socio_Usuario4;
var varCasa_socio_Usuario4;
var varBairro_socio_Usuario4;
var varCidade_socio_Usuario4;
var varEstado_socio_Usuario4;
var varPais_socio_Usuario4;
var varCEP_socio_Usuario4;
var varTelefone_socio_Usuario4;
var varProfissao_socio_Usuario4;
//Socio5
var varNome_socio_Usuario5;
var varMulher_socio_Usuario5;
var varNascimento_socio_Usuario5;
var varEndereco_socio_Usuario5;
var varNumero_socio_Usuario5;
var varAndar_socio_Usuario5;
var varCasa_socio_Usuario5;
var varBairro_socio_Usuario5;
var varCidade_socio_Usuario5;
var varEstado_socio_Usuario5;
var varPais_socio_Usuario5;
var varCEP_socio_Usuario5;
var varTelefone_socio_Usuario5;
var varProfissao_socio_Usuario5;
//Socio6
var varNome_socio_Usuario6;
var varMulher_socio_Usuario6;
var varNascimento_socio_Usuario6;
var varEndereco_socio_Usuario6;
var varNumero_socio_Usuario6;
var varAndar_socio_Usuario6;
var varCasa_socio_Usuario6;
var varBairro_socio_Usuario6;
var varCidade_socio_Usuario6;
var varEstado_socio_Usuario6;
var varPais_socio_Usuario6;
var varCEP_socio_Usuario6;
var varTelefone_socio_Usuario6;
var varProfissao_socio_Usuario6;
//Socio7
var varNome_socio_Usuario7;
var varMulher_socio_Usuario7;
var varNascimento_socio_Usuario7;
var varEndereco_socio_Usuario7;
var varNumero_socio_Usuario7;
var varAndar_socio_Usuario7;
var varCasa_socio_Usuario7;
var varBairro_socio_Usuario7;
var varCidade_socio_Usuario7;
var varEstado_socio_Usuario7;
var varPais_socio_Usuario7;
var varCEP_socio_Usuario7;
var varTelefone_socio_Usuario7;
var varProfissao_socio_Usuario7;
//Socio8
var varNome_socio_Usuario8;
var varMulher_socio_Usuario8;
var varNascimento_socio_Usuario8;
var varEndereco_socio_Usuario8;
var varNumero_socio_Usuario8;
var varAndar_socio_Usuario8;
var varCasa_socio_Usuario8;
var varBairro_socio_Usuario8;
var varCidade_socio_Usuario8;
var varEstado_socio_Usuario8;
var varPais_socio_Usuario8;
var varCEP_socio_Usuario8;
var varTelefone_socio_Usuario8;
var varProfissao_socio_Usuario8;
//Socio9
var varNome_socio_Usuario9;
var varMulher_socio_Usuario9;
var varNascimento_socio_Usuario9;
var varEndereco_socio_Usuario9;
var varNumero_socio_Usuario9;
var varAndar_socio_Usuario9;
var varCasa_socio_Usuario9;
var varBairro_socio_Usuario9;
var varCidade_socio_Usuario9;
var varEstado_socio_Usuario9;
var varPais_socio_Usuario9;
var varCEP_socio_Usuario9;
var varTelefone_socio_Usuario9;
var varProfissao_socio_Usuario9;
//Socio10
var varNome_socio_Usuario10;
var varMulher_socio_Usuario10;
var varNascimento_socio_Usuario10;
var varEndereco_socio_Usuario10;
var varNumero_socio_Usuario10;
var varAndar_socio_Usuario10;
var varCasa_socio_Usuario10;
var varBairro_socio_Usuario10;
var varCidade_socio_Usuario10;
var varEstado_socio_Usuario10;
var varPais_socio_Usuario10;
var varCEP_socio_Usuario10;
var varTelefone_socio_Usuario10;
var varProfissao_socio_Usuario10;



          var varRemetente_Usuario              = document.frmPedido_emp.field_remetente.value;
          var varEmail_Usuario                  = document.frmPedido_emp.field_email.value;
          var varPedido_Usuario                 = document.frmPedido_emp.field_pedido.value;
          var varEndentrega_Usuario             = document.frmPedido_emp.field_endereco.value;
          var varNumero_entrega_Usuario         = document.frmPedido_emp.field_numero.value;
          var varAndar_entrega_Usuario          = document.frmPedido_emp.field_andar.value;
          var varConjunto_entrega_Usuario       = document.frmPedido_emp.field_sala.value;
          var varBairro_entrega_Usuario         = document.frmPedido_emp.field_bairro.value;
          var varCidade_entrega_Usuario         = document.frmPedido_emp.field_cidade.value;
          var varEstado_entrega_Usuario         = document.frmPedido_emp.field_estado.value;
          var varPais_entrega_Usuario           = document.frmPedido_emp.field_pais.value;
          var varCEP_entrega_Usuario            = document.frmPedido_emp.field_cep.value;
          var varTelefone_entrega_Usuario       = document.frmPedido_emp.field_telefone.value;
         //DADOS EMPRESA
          var varRazaosocial_emp_Usuario        = document.frmPedido_emp.field_razao.value;
          var varRazaosocial2_emp_Usuario       = document.frmPedido_emp.field_razao2.value;
          var varRazaosocial3_emp_Usuario       = document.frmPedido_emp.field_razao3.value;
          var varNomefantasia_emp_Usuario       = document.frmPedido_emp.field_fantasia.value;
          var varNomefantasia2_emp_Usuario      = document.frmPedido_emp.field_fantasia2.value;
          var varNomefantasia3_emp_Usuario      = document.frmPedido_emp.field_fantasia3.value;
          var varLogomarca_emp_Usuario          = document.frmPedido_emp.field_logomarca.value;
          var varLogomarca2_emp_Usuario         = document.frmPedido_emp.field_logomarca2.value;
          var varLogomarca3_emp_Usuario         = document.frmPedido_emp.field_logomarca3.value;
          var varDataconstituicao_emp_Usuario   = document.frmPedido_emp.field_data.value;
          var varRamoatuacao_emp_Usuario        = document.frmPedido_emp.field_ramo.value;
          var varEndereco_emp_Usuario           = document.frmPedido_emp.field_endereco_empresa.value;
          var varNumero_emp_Usuario             = document.frmPedido_emp.field_numero_empresa.value;
          var varAndar_emp_Usuario              = document.frmPedido_emp.field_andar_empresa.value;
          var varConjunto_emp_Usuario           = document.frmPedido_emp.field_conjunto_empresa.value;
          var varBairro_emp_Usuario             = document.frmPedido_emp.field_bairro_empresa.value;
          var varCidade_emp_Usuario             = document.frmPedido_emp.field_cidade_empresa.value;
          var varEstado_emp_Usuario             = document.frmPedido_emp.field_estado_empresa.value;
          var varPais_emp_Usuario               = document.frmPedido_emp.field_pais_empresa.value;
          var varCEP_emp_Usuario                = document.frmPedido_emp.field_cep_empresa.value;
          var varTelefone_emp_Usuario           = document.frmPedido_emp.field_telefone_empresa.value;
          //DADOS SOCIOS - socio1
          var varNome_socio_Usuario             = document.frmPedido_emp.field_nome_socio.value;
          var varMulher_socio_Usuario           = document.frmPedido_emp.field_nome_mulher.value;
          var varNascimento_socio_Usuario       = document.frmPedido_emp.field_nascimento_socio.value;
          var varEndereco_socio_Usuario         = document.frmPedido_emp.field_residencia_socio.value;
          var varNumero_socio_Usuario           = document.frmPedido_emp.field_numero_socio.value;
          var varAndar_socio_Usuario            = document.frmPedido_emp.field_andar_socio.value;
          var varCasa_socio_Usuario             = document.frmPedido_emp.field_casa_socio.value;
          var varBairro_socio_Usuario           = document.frmPedido_emp.field_bairro_socio.value;
          var varCidade_socio_Usuario           = document.frmPedido_emp.field_cidade_socio.value;
          var varEstado_socio_Usuario           = document.frmPedido_emp.field_estado_socio.value;
          var varPais_socio_Usuario             = document.frmPedido_emp.field_pais_socio.value;
          var varCEP_socio_Usuario              = document.frmPedido_emp.field_cep_socio.value;
          var varTelefone_socio_Usuario         = document.frmPedido_emp.field_telefone_socio.value;
          var varProfissao_socio_Usuario        = document.frmPedido_emp.field_profissao_socio.value;
          //Socio2                          
          var varNome_socio_Usuario2            = document.frmPedido_emp.field_nome_socio2.value;
          var varMulher_socio_Usuario2          = document.frmPedido_emp.field_nome_mulher2.value;
          var varNascimento_socio_Usuario2      = document.frmPedido_emp.field_nascimento_socio2.value;
          var varEndereco_socio_Usuario2        = document.frmPedido_emp.field_residencia_socio2.value;
          var varNumero_socio_Usuario2          = document.frmPedido_emp.field_numero_socio2.value;
          var varAndar_socio_Usuario2           = document.frmPedido_emp.field_andar_socio2.value;
          var varCasa_socio_Usuario2            = document.frmPedido_emp.field_casa_socio2.value;
          var varBairro_socio_Usuario2          = document.frmPedido_emp.field_bairro_socio2.value;
          var varCidade_socio_Usuario2          = document.frmPedido_emp.field_cidade_socio2.value;
          var varEstado_socio_Usuario2          = document.frmPedido_emp.field_estado_socio2.value;
          var varPais_socio_Usuario2            = document.frmPedido_emp.field_pais_socio2.value;
          var varCEP_socio_Usuario2             = document.frmPedido_emp.field_cep_socio2.value;
          var varTelefone_socio_Usuario2        = document.frmPedido_emp.field_telefone_socio2.value;
          var varProfissao_socio_Usuario2       = document.frmPedido_emp.field_profissao_socio2.value;
          //Socio3                          
          var varNome_socio_Usuario3            = document.frmPedido_emp.field_nome_socio3.value;
          var varMulher_socio_Usuario3          = document.frmPedido_emp.field_nome_mulher3.value;
          var varNascimento_socio_Usuario3      = document.frmPedido_emp.field_nascimento_socio3.value;
          var varEndereco_socio_Usuario3        = document.frmPedido_emp.field_residencia_socio3.value;
          var varNumero_socio_Usuario3          = document.frmPedido_emp.field_numero_socio3.value;
          var varAndar_socio_Usuario3           = document.frmPedido_emp.field_andar_socio3.value;
          var varCasa_socio_Usuario3            = document.frmPedido_emp.field_casa_socio3.value;
          var varBairro_socio_Usuario3          = document.frmPedido_emp.field_bairro_socio3.value;
          var varCidade_socio_Usuario3          = document.frmPedido_emp.field_cidade_socio3.value;
          var varEstado_socio_Usuario3          = document.frmPedido_emp.field_estado_socio3.value;
          var varPais_socio_Usuario3            = document.frmPedido_emp.field_pais_socio3.value;
          var varCEP_socio_Usuario3             = document.frmPedido_emp.field_cep_socio3.value;
          var varTelefone_socio_Usuario3        = document.frmPedido_emp.field_telefone_socio3.value;
          var varProfissao_socio_Usuario3       = document.frmPedido_emp.field_profissao_socio3.value;
          //Socio4                             
          var varNome_socio_Usuario4            = document.frmPedido_emp.field_nome_socio4.value;
          var varMulher_socio_Usuario4          = document.frmPedido_emp.field_nome_mulher4.value;
          var varNascimento_socio_Usuario4      = document.frmPedido_emp.field_nascimento_socio4.value;
          var varEndereco_socio_Usuario4        = document.frmPedido_emp.field_residencia_socio4.value;
          var varNumero_socio_Usuario4          = document.frmPedido_emp.field_numero_socio4.value;
          var varAndar_socio_Usuario4           = document.frmPedido_emp.field_andar_socio4.value;
          var varCasa_socio_Usuario4            = document.frmPedido_emp.field_casa_socio4.value;
          var varBairro_socio_Usuario4          = document.frmPedido_emp.field_bairro_socio4.value;
          var varCidade_socio_Usuario4          = document.frmPedido_emp.field_cidade_socio4.value;
          var varEstado_socio_Usuario4          = document.frmPedido_emp.field_estado_socio4.value;
          var varPais_socio_Usuario4            = document.frmPedido_emp.field_pais_socio4.value;
          var varCEP_socio_Usuario4             = document.frmPedido_emp.field_cep_socio4.value;
          var varTelefone_socio_Usuario4        = document.frmPedido_emp.field_telefone_socio4.value;
          var varProfissao_socio_Usuario4       = document.frmPedido_emp.field_profissao_socio4.value;
          //Socio5                            
          var varNome_socio_Usuario5            = document.frmPedido_emp.field_nome_socio5.value;
          var varMulher_socio_Usuario5          = document.frmPedido_emp.field_nome_mulher5.value;
          var varNascimento_socio_Usuario5      = document.frmPedido_emp.field_nascimento_socio5.value;
          var varEndereco_socio_Usuario5        = document.frmPedido_emp.field_residencia_socio5.value;
          var varNumero_socio_Usuario5          = document.frmPedido_emp.field_numero_socio5.value;
          var varAndar_socio_Usuario5           = document.frmPedido_emp.field_andar_socio5.value;
          var varCasa_socio_Usuario5            = document.frmPedido_emp.field_casa_socio5.value;
          var varBairro_socio_Usuario5          = document.frmPedido_emp.field_bairro_socio5.value;
          var varCidade_socio_Usuario5          = document.frmPedido_emp.field_cidade_socio5.value;
          var varEstado_socio_Usuario5          = document.frmPedido_emp.field_estado_socio5.value;
          var varPais_socio_Usuario5            = document.frmPedido_emp.field_pais_socio5.value;
          var varCEP_socio_Usuario5             = document.frmPedido_emp.field_cep_socio5.value;
          var varTelefone_socio_Usuario5        = document.frmPedido_emp.field_telefone_socio5.value;
          var varProfissao_socio_Usuario5       = document.frmPedido_emp.field_profissao_socio5.value;
          //Socio6                            
          var varNome_socio_Usuario6            = document.frmPedido_emp.field_nome_socio6.value;
          var varMulher_socio_Usuario6          = document.frmPedido_emp.field_nome_mulher6.value;
          var varNascimento_socio_Usuario6      = document.frmPedido_emp.field_nascimento_socio6.value;
          var varEndereco_socio_Usuario6        = document.frmPedido_emp.field_residencia_socio6.value;
          var varNumero_socio_Usuario6          = document.frmPedido_emp.field_numero_socio6.value;
          var varAndar_socio_Usuario6           = document.frmPedido_emp.field_andar_socio6.value;
          var varCasa_socio_Usuario6            = document.frmPedido_emp.field_casa_socio6.value;
          var varBairro_socio_Usuario6          = document.frmPedido_emp.field_bairro_socio6.value;
          var varCidade_socio_Usuario6          = document.frmPedido_emp.field_cidade_socio6.value;
          var varEstado_socio_Usuario6          = document.frmPedido_emp.field_estado_socio6.value;
          var varPais_socio_Usuario6            = document.frmPedido_emp.field_pais_socio6.value;
          var varCEP_socio_Usuario6             = document.frmPedido_emp.field_cep_socio6.value;
          var varTelefone_socio_Usuario6        = document.frmPedido_emp.field_telefone_socio6.value;
          var varProfissao_socio_Usuario6       = document.frmPedido_emp.field_profissao_socio6.value;
          //Socio7                            
          var varNome_socio_Usuario7            = document.frmPedido_emp.field_nome_socio7.value;
          var varMulher_socio_Usuario7          = document.frmPedido_emp.field_nome_mulher7.value;
          var varNascimento_socio_Usuario7      = document.frmPedido_emp.field_nascimento_socio7.value;
          var varEndereco_socio_Usuario7        = document.frmPedido_emp.field_residencia_socio7.value;
          var varNumero_socio_Usuario7          = document.frmPedido_emp.field_numero_socio7.value;
          var varAndar_socio_Usuario7           = document.frmPedido_emp.field_andar_socio7.value;
          var varCasa_socio_Usuario7            = document.frmPedido_emp.field_casa_socio7.value;
          var varBairro_socio_Usuario7          = document.frmPedido_emp.field_bairro_socio7.value;
          var varCidade_socio_Usuario7          = document.frmPedido_emp.field_cidade_socio7.value;
          var varEstado_socio_Usuario7          = document.frmPedido_emp.field_estado_socio7.value;
          var varPais_socio_Usuario7            = document.frmPedido_emp.field_pais_socio7.value;
          var varCEP_socio_Usuario7             = document.frmPedido_emp.field_cep_socio7.value;
          var varTelefone_socio_Usuario7        = document.frmPedido_emp.field_telefone_socio7.value;
          var varProfissao_socio_Usuario7       = document.frmPedido_emp.field_profissao_socio7.value;
          //Socio8                            
          var varNome_socio_Usuario8            = document.frmPedido_emp.field_nome_socio8.value;
          var varMulher_socio_Usuario8          = document.frmPedido_emp.field_nome_mulher8.value;
          var varNascimento_socio_Usuario8      = document.frmPedido_emp.field_nascimento_socio8.value;
          var varEndereco_socio_Usuario8        = document.frmPedido_emp.field_residencia_socio8.value;
          var varNumero_socio_Usuario8          = document.frmPedido_emp.field_numero_socio8.value;
          var varAndar_socio_Usuario8           = document.frmPedido_emp.field_andar_socio8.value;
          var varCasa_socio_Usuario8            = document.frmPedido_emp.field_casa_socio8.value;
          var varBairro_socio_Usuario8          = document.frmPedido_emp.field_bairro_socio8.value;
          var varCidade_socio_Usuario8          = document.frmPedido_emp.field_cidade_socio8.value;
          var varEstado_socio_Usuario8          = document.frmPedido_emp.field_estado_socio8.value;
          var varPais_socio_Usuario8            = document.frmPedido_emp.field_pais_socio8.value;
          var varCEP_socio_Usuario8             = document.frmPedido_emp.field_cep_socio8.value;
          var varTelefone_socio_Usuario8        = document.frmPedido_emp.field_telefone_socio8.value;
          var varProfissao_socio_Usuario8       = document.frmPedido_emp.field_profissao_socio8.value;
          //Socio9                            
          var varNome_socio_Usuario9            = document.frmPedido_emp.field_nome_socio9.value;
          var varMulher_socio_Usuario9          = document.frmPedido_emp.field_nome_mulher9.value;
          var varNascimento_socio_Usuario9      = document.frmPedido_emp.field_nascimento_socio9.value;
          var varEndereco_socio_Usuario9        = document.frmPedido_emp.field_residencia_socio9.value;
          var varNumero_socio_Usuario9          = document.frmPedido_emp.field_numero_socio9.value;
          var varAndar_socio_Usuario9           = document.frmPedido_emp.field_andar_socio9.value;
          var varCasa_socio_Usuario9            = document.frmPedido_emp.field_casa_socio9.value;
          var varBairro_socio_Usuario9          = document.frmPedido_emp.field_bairro_socio9.value;
          var varCidade_socio_Usuario9          = document.frmPedido_emp.field_cidade_socio9.value;
          var varEstado_socio_Usuario9          = document.frmPedido_emp.field_estado_socio9.value;
          var varPais_socio_Usuario9            = document.frmPedido_emp.field_pais_socio9.value;
          var varCEP_socio_Usuario9             = document.frmPedido_emp.field_cep_socio9.value;
          var varTelefone_socio_Usuario9        = document.frmPedido_emp.field_telefone_socio9.value;
          var varProfissao_socio_Usuario9       = document.frmPedido_emp.field_profissao_socio9.value;
          //Socio10                           
          var varNome_socio_Usuario10           = document.frmPedido_emp.field_nome_socio10.value;
          var varMulher_socio_Usuario10         = document.frmPedido_emp.field_nome_mulher10.value;
          var varNascimento_socio_Usuario10     = document.frmPedido_emp.field_nascimento_socio10.value;
          var varEndereco_socio_Usuario10       = document.frmPedido_emp.field_residencia_socio10.value;
          var varNumero_socio_Usuario10         = document.frmPedido_emp.field_numero_socio10.value;
          var varAndar_socio_Usuario10          = document.frmPedido_emp.field_andar_socio10.value;
          var varCasa_socio_Usuario10           = document.frmPedido_emp.field_casa_socio10.value;
          var varBairro_socio_Usuario10         = document.frmPedido_emp.field_bairro_socio10.value;
          var varCidade_socio_Usuario10         = document.frmPedido_emp.field_cidade_socio10.value;
          var varEstado_socio_Usuario10         = document.frmPedido_emp.field_estado_socio10.value;
          var varPais_socio_Usuario10           = document.frmPedido_emp.field_pais_socio10.value;
          var varCEP_socio_Usuario10            = document.frmPedido_emp.field_cep_socio10.value;
          var varTelefone_socio_Usuario10       = document.frmPedido_emp.field_telefone_socio10.value;
          var varProfissao_socio_Usuario10      = document.frmPedido_emp.field_profissao_socio10.value;
          
    //Atribuindo checagem dos campos do form de pedidoemp    
        
        if (varRemetente_Usuario == "") {
        if (Cod_Idioma == "1"){alert("Informar Remetente");}
        if (Cod_Idioma == "2"){alert("inform Sender");}
        if (Cod_Idioma == "3"){alert("Absender eingeben");}
        if (Cod_Idioma == "4"){alert("Informe el remitente");}
        if (Cod_Idioma == "5"){alert("Introduire l’envoyeur");}
        if (Cod_Idioma == "6"){alert("");}        
        document.frmPedido_emp.field_remetente.focus();
        return false
    }    
        if (varEmail_Usuario == "") {
         if (Cod_Idioma == "1"){alert("Informar o E-mail");}
         if (Cod_Idioma == "2"){alert("To inform the email");}
         if (Cod_Idioma == "3"){alert("E-Mail eingeben");}
         if (Cod_Idioma == "4"){alert("Informe su E-mail");}
         if (Cod_Idioma == "5"){alert("Introduire E-mail");}
         if (Cod_Idioma == "6"){alert("");}         
        document.frmPedido_emp.field_email.focus();
        return false
    }
        if (varEmail_Usuario.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1) {
         if (Cod_Idioma == "1"){alert("E-mail inválido...");}
         if (Cod_Idioma == "2"){alert("Invalid email...");}
         if (Cod_Idioma == "3"){alert("Angaben email...");}
         if (Cod_Idioma == "4"){alert("E-mail inválidos...");}
         if (Cod_Idioma == "5"){alert("E-mail valables...");}
         if (Cod_Idioma == "6"){alert("");} 
        document.frmPedido_emp.field_email.focus();
        return false
    }    
        if (varPedido_Usuario == "") {
         if (Cod_Idioma == "1"){alert("Informar por quem foi feito o pedido");}
         if (Cod_Idioma == "2"){alert("To inform for who was made the order");}
         if (Cod_Idioma == "3"){alert("Adresse für die Lieferung Angaben");}
         if (Cod_Idioma == "4"){alert("Informe por quem foi feito o pedido");}
         if (Cod_Idioma == "5"){alert("Introduire Sollicitation faite par");}
         if (Cod_Idioma == "6"){alert("");} 
         document.frmPedido_emp.field_pedido.focus();
         return false
    }    
      if (varEndentrega_Usuario == "") {
         if (Cod_Idioma == "1"){alert("Informar Endereço de entrega");}
         if (Cod_Idioma == "2"){alert("To inform Address of delivery");}
         if (Cod_Idioma == "3"){alert("Adresse für die Lieferung eingeben");}
         if (Cod_Idioma == "4"){alert("Informe el domicilio de entrega");}
         if (Cod_Idioma == "5"){alert("Introduire adresse de livraison");}
         if (Cod_Idioma == "6"){alert("");} 
         document.frmPedido_emp.field_endereco.focus();
         return false
    }    
      if (varNumero_entrega_Usuario == "") {
         if (Cod_Idioma == "1"){alert("Informar Número");}
         if (Cod_Idioma == "2"){alert("Inform Number");}
         if (Cod_Idioma == "3"){alert("Nummer eingeben");}
         if (Cod_Idioma == "4"){alert("Informe el número");}
         if (Cod_Idioma == "5"){alert("Introduire Numéro");}
         if (Cod_Idioma == "6"){alert("");} 
         document.frmPedido_emp.field_numero.focus();
         return false
    }    
    /*  if (varAndar_entrega_Usuario == "") {
         if (Cod_Idioma == "1"){alert("Informar Andar");}
         if (Cod_Idioma == "2"){alert("To inform To walk");}
         if (Cod_Idioma == "3"){alert("Stockwerk eingeben");}
         if (Cod_Idioma == "4"){alert("Informe el Piso");}
         if (Cod_Idioma == "5"){alert("Introduire Étage");}
         if (Cod_Idioma == "6"){alert("");} 
         document.frmPedido_emp.field_andar.focus();
         return false
    }    
      if (varConjunto_entrega_Usuario == "") {
        if (Cod_Idioma == "1"){alert("Informar Conjunto ou sala");}
        if (Cod_Idioma == "2"){alert("To inform Set or room");}              
        if (Cod_Idioma == "3"){alert("Räume / Raum eingeben");}              
        if (Cod_Idioma == "4"){alert("Informe el oficina");}              
        if (Cod_Idioma == "5"){alert("Introduire Salle");}              
        if (Cod_Idioma == "6"){alert("");}              
        document.frmPedido_emp.field_sala.focus();
        return false
    } */   
      if (varBairro_entrega_Usuario == "") {
       if (Cod_Idioma == "1"){alert("Informar o Bairro");}
       if (Cod_Idioma == "2"){alert("Inform District");}                         
       if (Cod_Idioma == "3"){alert("Stadtteil eingeben");}                         
       if (Cod_Idioma == "4"){alert("Informe el Barrio");}                         
       if (Cod_Idioma == "5"){alert("Introduire Quartier");}                         
       if (Cod_Idioma == "6"){alert("");}                         
       document.frmPedido_emp.field_bairro.focus();
       return false
    }    
      if (varCidade_entrega_Usuario == "") {
        if (Cod_Idioma == "1"){alert("Informar Cidade");}
        if (Cod_Idioma == "2"){alert("Inform City");}                         
        if (Cod_Idioma == "3"){alert("Ort eingeben");}                         
        if (Cod_Idioma == "4"){alert("Informe la Ciudad");}                         
        if (Cod_Idioma == "5"){alert("Introduire Ville");}                         
        if (Cod_Idioma == "6"){alert("");}                         
        document.frmPedido_emp.field_cidade.focus();
        return false
    }    
      if (varEstado_entrega_Usuario == "") {
       if (Cod_Idioma == "1"){alert("Informar Estado");}
       if (Cod_Idioma == "2"){alert("Inform State");}                         
       if (Cod_Idioma == "3"){alert("Staat eingeben");}                         
       if (Cod_Idioma == "4"){alert("Informe el Estado/Provincia");}                         
       if (Cod_Idioma == "5"){alert("Introduire Département");}                         
       if (Cod_Idioma == "6"){alert("");}                         
       document.frmPedido_emp.field_estado.focus();
       return false
    }    
      if (varPais_entrega_Usuario == "") {
       if (Cod_Idioma == "1"){alert("Informar País");}
       if (Cod_Idioma == "2"){alert("Inform Country");}                         
       if (Cod_Idioma == "3"){alert("Land eingeben");}                         
       if (Cod_Idioma == "4"){alert("Informe el País");}                         
       if (Cod_Idioma == "5"){alert("Introduire Pays");}                         
       if (Cod_Idioma == "6"){alert("");}                         
       document.frmPedido_emp.field_pais.focus();
       return false
    }    
      if (varCEP_entrega_Usuario == "") {
       if (Cod_Idioma == "1"){alert("Informar o CEP");}
       if (Cod_Idioma == "2"){alert("Inform Zip Code");}                         
       if (Cod_Idioma == "3"){alert("PLZ eingeben");}                         
       if (Cod_Idioma == "4"){alert("Informe el código postal");}                         
       if (Cod_Idioma == "5"){alert("Introduire Code Postal");}                         
       if (Cod_Idioma == "6"){alert("");}            
       document.frmPedido_emp.field_cep.focus();
       return false
    }    
     if (varTelefone_entrega_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Telefone");}
      if (Cod_Idioma == "2"){alert("Inform telephone");}                         
      if (Cod_Idioma == "3"){alert("Telefon eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe su número de teléfono");}                         
      if (Cod_Idioma == "5"){alert("Introduire Téléphone");}                         
      if (Cod_Idioma == "6"){alert("");}                         
      document.frmPedido_emp.field_telefone.focus();
      return false
    }
    //dados da empresa
    
     if (varRazaosocial_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a Razão Social");}
      if (Cod_Idioma == "2"){alert("Inform Corporate name");}                         
      if (Cod_Idioma == "3"){alert("Firmenname eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la razón social");}                         
      if (Cod_Idioma == "5"){alert("Introduire Raison sociale");}                         
      if (Cod_Idioma == "6"){alert("");}  
      document.frmPedido_emp.field_razao.focus();
      return false
    }
/*     if (varRazaosocial2_emp_Usuario == "") {
        if (Cod_Idioma == "1"){alert("Informar a 2ª opção da Razão Social");}
        if (Cod_Idioma == "2"){alert("Inform 2ª option Corporate name");}                         
        if (Cod_Idioma == "3"){alert("Firmenname 2ª Wahl eingeben");}                         
        if (Cod_Idioma == "4"){alert("Informe la 2º opción razón social");}                         
        if (Cod_Idioma == "5"){alert("Introduire 2º option Raison sociale");}                         
        if (Cod_Idioma == "6"){alert("");}    
        document.frmPedido_emp.field_razao2.focus();
        return false
    }    
     if (varRazaosocial3_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a 3ª opção da Razão Social");}
      if (Cod_Idioma == "2"){alert("Inform 3ª option Corporate name");}                         
      if (Cod_Idioma == "3"){alert("Firmenname 3ª Wahl eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la 3º opción razón social");}                         
      if (Cod_Idioma == "5"){alert("Introduire 3º option Raison sociale");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_razao3.focus();
        return false
    }      
     if (varNomefantasia_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a Fantasia");}
      if (Cod_Idioma == "2"){alert("Inform Assumed name");}                         
      if (Cod_Idioma == "3"){alert("Fantasiename eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el nombre de fantasía");}                         
      if (Cod_Idioma == "5"){alert("Introduire Nom fantaisie");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_fantasia.focus();
        return false
    }    
    if (varNomefantasia2_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a 2ª opção do Nome Fantasia");}
      if (Cod_Idioma == "2"){alert("Inform 2º option Assumed name");}                         
      if (Cod_Idioma == "3"){alert("Fantasiename 2ª Wahl eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el 2º opción nombre de fantasía");}                         
      if (Cod_Idioma == "5"){alert("Introduire Nom 2º option fantaisie");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_fantasia2.focus();
        return false
    }    
    if (varNomefantasia2_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a 3ª opção do Nome Fantasia");}
      if (Cod_Idioma == "2"){alert("Inform 3ª option Assumed name");}                         
      if (Cod_Idioma == "3"){alert("Fantasiename 3ª Wahl eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el 3º opción nombre de fantasía");}                         
      if (Cod_Idioma == "5"){alert("Introduire Nom 3º option fantaisie");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_fantasia3.focus();
        return false
    }    
     if (varLogomarca_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar LogoMarca");}
      if (Cod_Idioma == "2"){alert("Inform Logo");}                         
      if (Cod_Idioma == "3"){alert("Logo eingeben"");}                         
      if (Cod_Idioma == "4"){alert("Informe la Logo de la marca");}                         
      if (Cod_Idioma == "5"){alert("Introduire Logomarque");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_logomarca.focus();
        return false
    }   
     if (varLogomarca2_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a 2ª opção da LogoMarca");}
      if (Cod_Idioma == "2"){alert("Inform 2ª option Logo");}                         
      if (Cod_Idioma == "3"){alert("Logo 2ª Wahl eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la 2º opción Logo de la marca");}                         
      if (Cod_Idioma == "5"){alert("Introduire 2º option Logomarque");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_logomarca2.focus();
        return false
    }   
     if (varLogomarca2_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a 3ª opção da LogoMarca");}
      if (Cod_Idioma == "2"){alert("Inform 3ª option Logo");}                         
      if (Cod_Idioma == "3"){alert("Logo 3ª Wahl eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la 3º opción Logo de la marca");}                         
      if (Cod_Idioma == "5"){alert("Introduire 3º option Logomarque");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_logomarca3.focus();
        return false
    }*/   
     if (varDataconstituicao_emp_Usuario == "") { 
      if (Cod_Idioma == "1"){alert("Informar Data da Constituição");}
      if (Cod_Idioma == "2"){alert("Inform Company establishment date");}                         
      if (Cod_Idioma == "3"){alert("Gründungstag eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la data de fundación");}                         
      if (Cod_Idioma == "5"){alert("Introduire Date d’Enregistrement des Statuts");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_data.focus();
        return false
    }    
     if (varRamoatuacao_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Ramo de Atuação");}
      if (Cod_Idioma == "2"){alert("Inform Area of performance");}                         
      if (Cod_Idioma == "3"){alert("Geschäftszweig eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe su ramo de actuación");}                         
      if (Cod_Idioma == "5"){alert("");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_ramo.focus();
        return false
    }    
     if (varEndereco_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Endereço da empresa");}
      if (Cod_Idioma == "2"){alert("Inform companie address");}                         
      if (Cod_Idioma == "3"){alert("Unternehmen des Gesellschafters eingeben");}                         
      if (Cod_Idioma == "4"){alert("informe el domicilio empresa");}                         
      if (Cod_Idioma == "5"){alert("Introduire Secteur d’Activité");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_endereco_empresa.focus();
        return false
    }    
     if (varNumero_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Número");}
      if (Cod_Idioma == "2"){alert("Inform Number");}                         
      if (Cod_Idioma == "3"){alert("Nummer eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el número");}                         
      if (Cod_Idioma == "5"){alert("Introduire Numéro");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_numero_empresa.focus();
        return false
    }    
    /* if (varAndar_emp_Usuario == "") { 
        if (Cod_Idioma == "1"){alert("Informar Andar");}
        if (Cod_Idioma == "2"){alert("Inform Floor");}                         
        if (Cod_Idioma == "3"){alert("Stockwerk eingeben");}                         
        if (Cod_Idioma == "4"){alert("Informe el Piso");}                         
        if (Cod_Idioma == "5"){alert("Introduire Étage");}                         
        if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_andar_empresa.focus();
        return false
    }    
     if (varConjunto_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Conjunto ou Sala");}
      if (Cod_Idioma == "2"){alert("Inform Block / Room");}                         
      if (Cod_Idioma == "3"){alert("Räume / Raum eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el oficina");}                         
      if (Cod_Idioma == "5"){alert("Introduire Salle");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_conjunto_empresa.focus();
        return false
    } */   
     if (varBairro_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Bairro");}
      if (Cod_Idioma == "2"){alert("Inform District");}                         
      if (Cod_Idioma == "3"){alert("Stadtteil eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el Barrio");}                         
      if (Cod_Idioma == "5"){alert("Introduire Quartier");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_bairro_empresa.focus();
        return false
    }    
     if (varCidade_emp_Usuario == "") { 
     if (Cod_Idioma == "1"){alert("Informar Cidade");}
      if (Cod_Idioma == "2"){alert("Inform City");}                         
      if (Cod_Idioma == "3"){alert("Ort eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la Ciudad");}                         
      if (Cod_Idioma == "5"){alert("Introduire Ville");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_cidade_empresa.focus();
        return false
    }    
     if (varEstado_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Estado");}
      if (Cod_Idioma == "2"){alert("Inform State");}                         
      if (Cod_Idioma == "3"){alert("Staat eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el Estado/Provincia");}                         
      if (Cod_Idioma == "5"){alert("Introduire Département");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_estado_empresa.focus();
        return false
    }    
     if (varPais_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Pais");}
      if (Cod_Idioma == "2"){alert("Inform Country");}                         
      if (Cod_Idioma == "3"){alert("Land eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el País");}                         
      if (Cod_Idioma == "5"){alert("Introduire Pays");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_pais_empresa.focus();
        return false
    }    
    if (varCEP_emp_Usuario == "") {
     if (Cod_Idioma == "1"){alert("Informar CEP");}
      if (Cod_Idioma == "2"){alert("Inform Zip Code");}                         
      if (Cod_Idioma == "3"){alert("PLZ eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el código postal");}                         
      if (Cod_Idioma == "5"){alert("Introduire Code Postal");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_cep_empresa.focus();
        return false
    }    
    if (varTelefone_emp_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar Telefone");}
      if (Cod_Idioma == "2"){alert("Inform telephone");}                         
      if (Cod_Idioma == "3"){alert("Telefon eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe su número de teléfono");}                         
      if (Cod_Idioma == "5"){alert("Introduire Téléphone");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_telefone_empresa.focus();
        return false
    }   
    //dados dos sócios   
    
     if (varNome_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Nome do primeiro Sócio");}
      if (Cod_Idioma == "2"){alert("Inform Partner’s name");}                         
      if (Cod_Idioma == "3"){alert("Name des Gesellschafters eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el nombre de socio");}                         
      if (Cod_Idioma == "5"){alert("Introduire Nom de l’associé");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_nome_socio.focus();
        return false
    }    
    /* if (varMulher_socio_Usuario == "") {
       if (Cod_Idioma == "1"){alert("Informar Nome da Mulher Nome solteira e de casada");}
      if (Cod_Idioma == "2"){alert("Inform Woman – single and married name");}                         
      if (Cod_Idioma == "3"){alert(": Frau -  Mädchen- und Ehename eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el nombre de soltera y de casada");}                         
      if (Cod_Idioma == "5"){alert("Introduire Femme – nom de jeune fille et nom de femme mariée");}                         
      if (Cod_Idioma == "6"){alert("");} 
        document.frmPedido_emp.field_nome_mulher.focus();
        return false
    } */   
     if (varNascimento_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a Data de Nascimento do primeiro sócio");}
      if (Cod_Idioma == "2"){alert("Inform partner date of birth");}                         
      if (Cod_Idioma == "3"){alert("Geburtstag des Gesellschafters eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la fecha de nacimiento del socio");}                         
      if (Cod_Idioma == "5"){alert("Introduire Date de naissance du associé");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_nascimento_socio.focus();
        return false
    }    
     if (varEndereco_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Endereço de Residência do primeiro sócio");}
      if (Cod_Idioma == "2"){alert("Inform Partner address");}                         
      if (Cod_Idioma == "3"){alert("Wohnadresse des Gesellschafters eingeben");}                         
      if (Cod_Idioma == "4"){alert("informe el domicilio residencial del socio");}                         
      if (Cod_Idioma == "5"){alert("Introduire Adresse résidentielle du associé");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_residencia_socio.focus();
        return false
    }    
     if (varNumero_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Número");}
      if (Cod_Idioma == "2"){alert("Inform Number");}                         
      if (Cod_Idioma == "3"){alert("Nummer eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el número");}                         
      if (Cod_Idioma == "5"){alert("Introduire Numéro");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_numero_socio.focus();
        return false
    }    
     /*if (varAndar_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Andar");}
      if (Cod_Idioma == "2"){alert("Inform Floor");}                         
      if (Cod_Idioma == "3"){alert("Stockwerk eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el Piso");}                         
      if (Cod_Idioma == "5"){alert("Introduire Étage");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_andar_socio.focus();
        return false
    }    
     if (varCasa_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a casa ou Apto");}
      if (Cod_Idioma == "2"){alert("To inform the house or Apartment");}                         
      if (Cod_Idioma == "3"){alert("Haus/Appartment eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe Casa / Apto");}                         
      if (Cod_Idioma == "5"){alert("Introduire Salle");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_casa_socio.focus();
        return false
    }  */  
     if (varBairro_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Bairro");}
      if (Cod_Idioma == "2"){alert("Inform District");}                         
      if (Cod_Idioma == "3"){alert("Stadtteil eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el Barrio");}                         
      if (Cod_Idioma == "5"){alert("Introduire Quartier");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_bairro_socio.focus();
        return false
    }    
     if (varCidade_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a Cidade");}
      if (Cod_Idioma == "2"){alert("Inform City");}                         
      if (Cod_Idioma == "3"){alert("Ort eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe la Ciudad");}                         
      if (Cod_Idioma == "5"){alert("Introduire Ville");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_cidade_socio.focus();
        return false
    }    
     if (varEstado_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Estado");}
      if (Cod_Idioma == "2"){alert("Inform State");}                         
      if (Cod_Idioma == "3"){alert("Staat eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el Estado/Provincia");}                         
      if (Cod_Idioma == "5"){alert("");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_estado_socio.focus();
        return false
    }    
     if (varPais_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o País");}
      if (Cod_Idioma == "2"){alert("Inform Country");}                         
      if (Cod_Idioma == "3"){alert("Land eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el País");}                         
      if (Cod_Idioma == "5"){alert("Introduire Département");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_pais_socio.focus();
        return false
    }    
     if (varCEP_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o CEP");}
      if (Cod_Idioma == "2"){alert("Inform Zip Code");}                         
      if (Cod_Idioma == "3"){alert("PLZ eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe el código postal");}                         
      if (Cod_Idioma == "5"){alert("Introduire Code Postal");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_cep_socio.focus();
        return false
    }    
     if (varTelefone_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar o Telefone");}
      if (Cod_Idioma == "2"){alert("Inform telephone");}                         
      if (Cod_Idioma == "3"){alert("Telefon eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe su número de teléfono");}                         
      if (Cod_Idioma == "5"){alert("Introduire Téléphone");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_telefone_socio.focus();
        return false
    }    
    if (varProfissao_socio_Usuario == "") {
      if (Cod_Idioma == "1"){alert("Informar a Profissão do primeiro sócio");}
      if (Cod_Idioma == "2"){alert("To inform the Profession of the first partner");}                         
      if (Cod_Idioma == "3"){alert("Beruf des Gesellschafters eingeben");}                         
      if (Cod_Idioma == "4"){alert("Informe Profesión del socio");}                         
      if (Cod_Idioma == "5"){alert("Introduire Profession du premier associé");}                         
      if (Cod_Idioma == "6"){alert("");}
        document.frmPedido_emp.field_profissao_socio.focus();
        return false
    }    
    
    
       // Instancia o objeto, dependendo do navagador
    if (window.XMLHttpRequest) {
 	      xmlhttp = new XMLHttpRequest();  
    } else if (window.ActiveXObject) {
  	    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");  
    } else {
 	      alert("Seu navegador n&atilde;o suporta XMLHttpRequest.");
 	      return;
    }

   xmlhttp.open("POST", "pedido_emp.php", true);    
  
   xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
   xmlhttp.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
   xmlhttp.setRequestHeader("Cache-Control", "post-check=0, pre-check=0");
   xmlhttp.setRequestHeader("Pragma", "no-cache");
   
   xmlhttp.onreadystatechange = processReqChangePedemp;

   xmlhttp.send("field_remetente=" + varRemetente_Usuario + "&field_email=" + varEmail_Usuario + "&field_pedido=" + varPedido_Usuario + "&field_endereco=" + varEndentrega_Usuario + "&field_numero=" + varNumero_entrega_Usuario + "&field_andar=" + varAndar_entrega_Usuario + "&field_sala=" + varConjunto_entrega_Usuario + "&field_bairro=" + varBairro_entrega_Usuario + "&field_cidade=" + varCidade_entrega_Usuario + "&field_estado=" + varEstado_entrega_Usuario + "&field_pais=" + varPais_entrega_Usuario + "&field_cep=" + varCEP_entrega_Usuario + "&field_telefone=" + varTelefone_entrega_Usuario + "&field_razao=" + varRazaosocial_emp_Usuario + "&field_razao2=" + varRazaosocial2_emp_Usuario + "&field_razao3=" + varRazaosocial3_emp_Usuario + "&field_fantasia=" + varNomefantasia_emp_Usuario + "&field_fantasia2=" + varNomefantasia2_emp_Usuario + "&field_fantasia3=" + varNomefantasia3_emp_Usuario + "&field_logomarca=" + varLogomarca_emp_Usuario + "&field_logomarca2=" + varLogomarca2_emp_Usuario + "&field_logomarca3=" + varLogomarca3_emp_Usuario + "&field_data=" + varDataconstituicao_emp_Usuario + "&field_ramo=" + varRamoatuacao_emp_Usuario + "&field_endereco_empresa=" + varEndereco_emp_Usuario + "&field_numero_empresa=" + varNumero_emp_Usuario + "&field_andar_empresa=" + varAndar_emp_Usuario + "&field_conjunto_empresa=" + varConjunto_emp_Usuario + "&field_bairro_empresa=" + varBairro_emp_Usuario + "&field_cidade_empresa=" + varCidade_emp_Usuario + "&field_estado_empresa=" + varEstado_emp_Usuario + "&field_pais_empresa=" + varPais_emp_Usuario + "&field_cep_empresa=" + varCEP_emp_Usuario + "&field_telefone_empresa=" + varTelefone_emp_Usuario + "&field_nome_socio=" + varNome_socio_Usuario + "&field_nome_mulher=" + varMulher_socio_Usuario + "&field_nascimento_socio=" + varNascimento_socio_Usuario + "&field_residencia_socio=" + varEndereco_socio_Usuario + "&field_numero_socio=" + varNumero_socio_Usuario + "&field_andar_socio=" + varAndar_socio_Usuario + "&field_casa_socio=" + varCasa_socio_Usuario + "&field_bairro_socio=" + varBairro_socio_Usuario + "&field_cidade_socio=" + varCidade_socio_Usuario + "&field_estado_socio=" + varEstado_socio_Usuario + "&field_pais_socio=" + varPais_socio_Usuario + "&field_cep_socio=" + varCEP_socio_Usuario + "&field_telefone_socio=" + varTelefone_socio_Usuario + "&field_profissao_socio=" + varProfissao_socio_Usuario + "&field_nome_socio2=" + varNome_socio_Usuario2 + "&field_nome_mulher2=" + varMulher_socio_Usuario2 + "&field_nascimento_socio2=" + varNascimento_socio_Usuario2 + "&field_residencia_socio2=" + varEndereco_socio_Usuario2 + "&field_numero_socio2=" + varNumero_socio_Usuario2 + "&field_andar_socio2=" + varAndar_socio_Usuario2 + "&field_casa_socio2=" + varCasa_socio_Usuario2 + "&field_bairro_socio2=" + varBairro_socio_Usuario2 + "&field_cidade_socio2=" + varCidade_socio_Usuario2 + "&field_estado_socio2=" + varEstado_socio_Usuario2 + "&field_pais_socio2=" + varPais_socio_Usuario2 + "&field_cep_socio2=" + varCEP_socio_Usuario2 + "&field_telefone_socio2=" + varTelefone_socio_Usuario2 + "&field_profissao_socio2=" + varProfissao_socio_Usuario2 + "&field_nome_socio3=" + varNome_socio_Usuario3 + "&field_nome_mulher3=" + varMulher_socio_Usuario3 + "&field_nascimento_socio3=" + varNascimento_socio_Usuario3 + "&field_residencia_socio3=" + varEndereco_socio_Usuario3 + "&field_numero_socio3=" + varNumero_socio_Usuario3 + "&field_andar_socio3=" + varAndar_socio_Usuario3 + "&field_casa_socio3=" + varCasa_socio_Usuario3 + "&field_bairro_socio3=" + varBairro_socio_Usuario3 + "&field_cidade_socio3=" + varCidade_socio_Usuario3 + "&field_estado_socio3=" + varEstado_socio_Usuario3 + "&field_pais_socio3=" + varPais_socio_Usuario3 + "&field_cep_socio3=" + varCEP_socio_Usuario3 + "&field_telefone_socio3=" + varTelefone_socio_Usuario3 + "&field_profissao_socio3=" + varProfissao_socio_Usuario3 + "&field_nome_socio4=" + varNome_socio_Usuario4 + "&field_nome_mulher4=" + varMulher_socio_Usuario4 + "&field_nascimento_socio4=" + varNascimento_socio_Usuario4 + "&field_residencia_socio4=" + varEndereco_socio_Usuario4 + "&field_numero_socio4=" + varNumero_socio_Usuario4 + "&field_andar_socio4=" + varAndar_socio_Usuario4 + "&field_casa_socio4=" + varCasa_socio_Usuario4 + "&field_bairro_socio4=" + varBairro_socio_Usuario4 + "&field_cidade_socio4=" + varCidade_socio_Usuario4 + "&field_estado_socio4=" + varEstado_socio_Usuario4 + "&field_pais_socio4=" + varPais_socio_Usuario4 + "&field_cep_socio4=" + varCEP_socio_Usuario4 + "&field_telefone_socio4=" + varTelefone_socio_Usuario4 + "&field_profissao_socio4=" + varProfissao_socio_Usuario4 + "&field_nome_socio5=" + varNome_socio_Usuario5 + "&field_nome_mulher5=" + varMulher_socio_Usuario5 + "&field_nascimento_socio5=" + varNascimento_socio_Usuario5 + "&field_residencia_socio5=" + varEndereco_socio_Usuario5 + "&field_numero_socio5=" + varNumero_socio_Usuario5 + "&field_andar_socio5=" + varAndar_socio_Usuario5 + "&field_casa_socio5=" + varCasa_socio_Usuario5 + "&field_bairro_socio5=" + varBairro_socio_Usuario5 + "&field_cidade_socio5=" + varCidade_socio_Usuario5 + "&field_estado_socio5=" + varEstado_socio_Usuario5 + "&field_pais_socio5=" + varPais_socio_Usuario5 + "&field_cep_socio5=" + varCEP_socio_Usuario5 + "&field_telefone_socio5=" + varTelefone_socio_Usuario5 + "&field_profissao_socio5=" + varProfissao_socio_Usuario5 + "&field_nome_socio6=" + varNome_socio_Usuario6 + "&field_nome_mulher6=" + varMulher_socio_Usuario6 + "&field_nascimento_socio6=" + varNascimento_socio_Usuario6 + "&field_residencia_socio6=" + varEndereco_socio_Usuario6 + "&field_numero_socio6=" + varNumero_socio_Usuario6 + "&field_andar_socio6=" + varAndar_socio_Usuario6 + "&field_casa_socio6=" + varCasa_socio_Usuario6 + "&field_bairro_socio6=" + varBairro_socio_Usuario6 + "&field_cidade_socio6=" + varCidade_socio_Usuario6 + "&field_estado_socio6=" + varEstado_socio_Usuario6 + "&field_pais_socio6=" + varPais_socio_Usuario6 + "&field_cep_socio6=" + varCEP_socio_Usuario6 + "&field_telefone_socio6=" + varTelefone_socio_Usuario6 + "&field_profissao_socio6=" + varProfissao_socio_Usuario6 + "&field_nome_socio7=" + varNome_socio_Usuario7 + "&field_nome_mulher7=" + varMulher_socio_Usuario7 + "&field_nascimento_socio7=" + varNascimento_socio_Usuario7 + "&field_residencia_socio7=" + varEndereco_socio_Usuario7 + "&field_numero_socio7=" + varNumero_socio_Usuario7 + "&field_andar_socio7=" + varAndar_socio_Usuario7 + "&field_casa_socio7=" + varCasa_socio_Usuario7 + "&field_bairro_socio7=" + varBairro_socio_Usuario7 + "&field_cidade_socio7=" + varCidade_socio_Usuario7 + "&field_estado_socio7=" + varEstado_socio_Usuario7 + "&field_pais_socio7=" + varPais_socio_Usuario7 + "&field_cep_socio7=" + varCEP_socio_Usuario7 + "&field_telefone_socio7=" + varTelefone_socio_Usuario7 + "&field_profissao_socio7=" + varProfissao_socio_Usuario7 + "&field_nome_socio8=" + varNome_socio_Usuario8 + "&field_nome_mulher8=" + varMulher_socio_Usuario8 + "&field_nascimento_socio8=" + varNascimento_socio_Usuario8 + "&field_residencia_socio8=" + varEndereco_socio_Usuario8 + "&field_numero_socio8=" + varNumero_socio_Usuario8 + "&field_andar_socio8=" + varAndar_socio_Usuario8 + "&field_casa_socio8=" + varCasa_socio_Usuario8 + "&field_bairro_socio8=" + varBairro_socio_Usuario8 + "&field_cidade_socio8=" + varCidade_socio_Usuario8 + "&field_estado_socio8=" + varEstado_socio_Usuario8 + "&field_pais_socio8=" + varPais_socio_Usuario8 + "&field_cep_socio8=" + varCEP_socio_Usuario8 + "&field_telefone_socio8=" + varTelefone_socio_Usuario8 + "&field_profissao_socio8=" + varProfissao_socio_Usuario8 + "&field_nome_socio9=" + varNome_socio_Usuario9 + "&field_nome_mulher9=" + varMulher_socio_Usuario9 + "&field_nascimento_socio9=" + varNascimento_socio_Usuario9 + "&field_residencia_socio9=" + varEndereco_socio_Usuario9 + "&field_numero_socio9=" + varNumero_socio_Usuario9 + "&field_andar_socio9=" + varAndar_socio_Usuario9 + "&field_casa_socio9=" + varCasa_socio_Usuario9 + "&field_bairro_socio9=" + varBairro_socio_Usuario9 + "&field_cidade_socio9=" + varCidade_socio_Usuario9 + "&field_estado_socio9=" + varEstado_socio_Usuario9 + "&field_pais_socio9=" + varPais_socio_Usuario9 + "&field_cep_socio9=" + varCEP_socio_Usuario9 + "&field_telefone_socio9=" + varTelefone_socio_Usuario9 + "&field_profissao_socio9=" + varProfissao_socio_Usuario9 + "&field_nome_socio10=" + varNome_socio_Usuario10 + "&field_nome_mulher10=" + varMulher_socio_Usuario10 + "&field_nascimento_socio10=" + varNascimento_socio_Usuario10 + "&field_residencia_socio10=" + varEndereco_socio_Usuario10 + "&field_numero_socio10=" + varNumero_socio_Usuario10 + "&field_andar_socio10=" + varAndar_socio_Usuario10 + "&field_casa_socio10=" + varCasa_socio_Usuario10 + "&field_bairro_socio10=" + varBairro_socio_Usuario10 + "&field_cidade_socio10=" + varCidade_socio_Usuario10 + "&field_estado_socio10=" + varEstado_socio_Usuario10 + "&field_pais_socio10=" + varPais_socio_Usuario10 + "&field_cep_socio10=" + varCEP_socio_Usuario10 + "&field_telefone_socio10=" + varTelefone_socio_Usuario10 + "&field_profissao_socio10=" + varProfissao_socio_Usuario10);
   
   //xmlhttp.send("field_remetente=" + varRemetente_Usuario + "&field_email=" + varEmail_Usuario);
     
   
}

function processReqChangePedemp() {

   //document.getElementById("resposta_cadastro").innerHTML = "<img src='loading.gif' />";
   
   
  
   if (xmlhttp.readyState == 4) {
        if (xmlhttp.status == 200) {
       // xmlhttp.responseText, recebe o valor da variavel $msg de cadastro.php
          if(xmlhttp.responseText == 1) {
          //document.getElementById("resposta_cadastro").innerHTML = "Cadastrado com Sucesso!";
          /*    document.frmCadastrar.cadastra_nome.value = "";
              document.frmCadastrar.cadastra_cpf.value = "";
              document.frmCadastrar.cadastra_telefone.value = "";
              document.frmCadastrar.cadastra_email.value = "";
              document.frmCadastrar.cadastra_login.value = "";
              document.frmCadastrar.cadastra_senha.value = "";
              document.frmCadastrar.confirma_senha.value = "";
              document.frmCadastrar.cadastra_nome.focus();              
              setTimeout("limpa_resposta_cadastro()",2000);*/
              if (Cod_Idioma == "1"){ alert("Seu Pedido foi Enviado com Sucesso");}
              if (Cod_Idioma == "2"){ alert("Its Order Was sent successfully");}
              if (Cod_Idioma == "3"){ alert("Sein Auftrag wurde erfolgreich gesendet");}
              if (Cod_Idioma == "4"){ alert("Su orden fue enviada con éxito");}
              if (Cod_Idioma == "5"){ alert("Sa Demande A été envoyée avec succès");}
              if (Cod_Idioma == "6"){ alert("Informar Remetente italiano");}
             
              
                  document.frmPedido_emp.field_remetente.value="";             
                  document.frmPedido_emp.field_email.value="";                 
                  document.frmPedido_emp.field_pedido.value="";                
                  document.frmPedido_emp.field_endereco.value="";              
                  document.frmPedido_emp.field_numero.value="";                
                  document.frmPedido_emp.field_andar.value="";                 
                  document.frmPedido_emp.field_sala.value="";                  
                  document.frmPedido_emp.field_bairro.value="";                
                  document.frmPedido_emp.field_cidade.value="";                
                  document.frmPedido_emp.field_estado.value="";                
                  document.frmPedido_emp.field_pais.value="";                  
                  document.frmPedido_emp.field_cep.value="";                   
                  document.frmPedido_emp.field_telefone.value="";          
                                                             
                  document.frmPedido_emp.field_razao.value="";     
                  document.frmPedido_emp.field_razao2.value="";  
                  document.frmPedido_emp.field_razao3.value="";                  
                  document.frmPedido_emp.field_fantasia.value="";  
                  document.frmPedido_emp.field_fantasia2.value=""; 
                  document.frmPedido_emp.field_fantasia3.value="";             
                  document.frmPedido_emp.field_logomarca.value=""; 
                  document.frmPedido_emp.field_logomarca2.value="";
                  document.frmPedido_emp.field_logomarca3.value="";             
                  document.frmPedido_emp.field_data.value="";                  
                  document.frmPedido_emp.field_ramo.value="";                  
                  document.frmPedido_emp.field_endereco_empresa.value="";      
                  document.frmPedido_emp.field_numero_empresa.value="";        
                  document.frmPedido_emp.field_andar_empresa.value="";         
                  document.frmPedido_emp.field_conjunto_empresa.value="";      
                  document.frmPedido_emp.field_bairro_empresa.value="";        
                  document.frmPedido_emp.field_cidade_empresa.value="";        
                  document.frmPedido_emp.field_estado_empresa.value="";        
                  document.frmPedido_emp.field_pais_empresa.value="";          
                  document.frmPedido_emp.field_cep_empresa.value="";           
                  document.frmPedido_emp.field_telefone_empresa.value="";   
                  
                  
              //Verifico qual a quantidade de sócios
                             
              var qtd_max_pedido_empresarial = getCookie('qtd_cons_pedido');
              
              if (qtd_max_pedido_empresarial == "1" || qtd_max_pedido_empresarial == "1_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
               //   document.frmPedido_emp.field_remetente.focus();
              }
              
              if (qtd_max_pedido_empresarial == "2" || qtd_max_pedido_empresarial == "2_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
            //      document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
                 // document.frmPedido_emp.field_remetente2.focus();
              }
              
              if (qtd_max_pedido_empresarial == "3" || qtd_max_pedido_empresarial == "3_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
                //  document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
                //  document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
                 // document.frmPedido_emp.field_remetente3.focus();
              }
              
              if (qtd_max_pedido_empresarial == "4" || qtd_max_pedido_empresarial == "4_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
                //  document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
                 // document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
                 // document.frmPedido_emp.field_remetente3.focus();
                  
                  document.frmPedido_emp.field_nome_socio4.value="";            
                  document.frmPedido_emp.field_nome_mulher4.value="";           
                  document.frmPedido_emp.field_nascimento_socio4.value="";      
                  document.frmPedido_emp.field_residencia_socio4.value="";      
                  document.frmPedido_emp.field_numero_socio4.value="";          
                  document.frmPedido_emp.field_andar_socio4.value="";           
                  document.frmPedido_emp.field_casa_socio4.value="";            
                  document.frmPedido_emp.field_bairro_socio4.value="";          
                  document.frmPedido_emp.field_cidade_socio4.value="";          
                  document.frmPedido_emp.field_estado_socio4.value="";          
                  document.frmPedido_emp.field_pais_socio4.value="";            
                  document.frmPedido_emp.field_cep_socio4.value="";             
                  document.frmPedido_emp.field_telefone_socio4.value="";        
                  document.frmPedido_emp.field_profissao_socio4.value="";  
                 // document.frmPedido_emp.field_remetente4.focus();
        } 
        
         if (qtd_max_pedido_empresarial == "5" || qtd_max_pedido_empresarial == "5_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
                 // document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
                //  document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
                 // document.frmPedido_emp.field_remetente3.focus();
                  
                  document.frmPedido_emp.field_nome_socio4.value="";            
                  document.frmPedido_emp.field_nome_mulher4.value="";           
                  document.frmPedido_emp.field_nascimento_socio4.value="";      
                  document.frmPedido_emp.field_residencia_socio4.value="";      
                  document.frmPedido_emp.field_numero_socio4.value="";          
                  document.frmPedido_emp.field_andar_socio4.value="";           
                  document.frmPedido_emp.field_casa_socio4.value="";            
                  document.frmPedido_emp.field_bairro_socio4.value="";          
                  document.frmPedido_emp.field_cidade_socio4.value="";          
                  document.frmPedido_emp.field_estado_socio4.value="";          
                  document.frmPedido_emp.field_pais_socio4.value="";            
                  document.frmPedido_emp.field_cep_socio4.value="";             
                  document.frmPedido_emp.field_telefone_socio4.value="";        
                  document.frmPedido_emp.field_profissao_socio4.value="";  
                  //document.frmPedido_emp.field_remetente4.focus();
                  
                  document.frmPedido_emp.field_nome_socio5.value="";            
                  document.frmPedido_emp.field_nome_mulher5.value="";           
                  document.frmPedido_emp.field_nascimento_socio5.value="";      
                  document.frmPedido_emp.field_residencia_socio5.value="";      
                  document.frmPedido_emp.field_numero_socio5.value="";          
                  document.frmPedido_emp.field_andar_socio5.value="";           
                  document.frmPedido_emp.field_casa_socio5.value="";            
                  document.frmPedido_emp.field_bairro_socio5.value="";          
                  document.frmPedido_emp.field_cidade_socio5.value="";          
                  document.frmPedido_emp.field_estado_socio5.value="";          
                  document.frmPedido_emp.field_pais_socio5.value="";            
                  document.frmPedido_emp.field_cep_socio5.value="";             
                  document.frmPedido_emp.field_telefone_socio5.value="";        
                  document.frmPedido_emp.field_profissao_socio5.value="";  
                //  document.frmPedido_emp.field_remetente5.focus();
              
                  
              }
                if (qtd_max_pedido_empresarial == "6" || qtd_max_pedido_empresarial == "6_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
                //  document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
               //   document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
               //   document.frmPedido_emp.field_remetente3.focus();
                  
                  document.frmPedido_emp.field_nome_socio4.value="";            
                  document.frmPedido_emp.field_nome_mulher4.value="";           
                  document.frmPedido_emp.field_nascimento_socio4.value="";      
                  document.frmPedido_emp.field_residencia_socio4.value="";      
                  document.frmPedido_emp.field_numero_socio4.value="";          
                  document.frmPedido_emp.field_andar_socio4.value="";           
                  document.frmPedido_emp.field_casa_socio4.value="";            
                  document.frmPedido_emp.field_bairro_socio4.value="";          
                  document.frmPedido_emp.field_cidade_socio4.value="";          
                  document.frmPedido_emp.field_estado_socio4.value="";          
                  document.frmPedido_emp.field_pais_socio4.value="";            
                  document.frmPedido_emp.field_cep_socio4.value="";             
                  document.frmPedido_emp.field_telefone_socio4.value="";        
                  document.frmPedido_emp.field_profissao_socio4.value="";  
               //   document.frmPedido_emp.field_remetente4.focus();
                  
                  document.frmPedido_emp.field_nome_socio5.value="";            
                  document.frmPedido_emp.field_nome_mulher5.value="";           
                  document.frmPedido_emp.field_nascimento_socio5.value="";      
                  document.frmPedido_emp.field_residencia_socio5.value="";      
                  document.frmPedido_emp.field_numero_socio5.value="";          
                  document.frmPedido_emp.field_andar_socio5.value="";           
                  document.frmPedido_emp.field_casa_socio5.value="";            
                  document.frmPedido_emp.field_bairro_socio5.value="";          
                  document.frmPedido_emp.field_cidade_socio5.value="";          
                  document.frmPedido_emp.field_estado_socio5.value="";          
                  document.frmPedido_emp.field_pais_socio5.value="";            
                  document.frmPedido_emp.field_cep_socio5.value="";             
                  document.frmPedido_emp.field_telefone_socio5.value="";        
                  document.frmPedido_emp.field_profissao_socio5.value="";  
                //  document.frmPedido_emp.field_remetente5.focus();  
                  
                  document.frmPedido_emp.field_nome_socio6.value="";            
                  document.frmPedido_emp.field_nome_mulher6.value="";           
                  document.frmPedido_emp.field_nascimento_socio6.value="";      
                  document.frmPedido_emp.field_residencia_socio6.value="";      
                  document.frmPedido_emp.field_numero_socio6.value="";          
                  document.frmPedido_emp.field_andar_socio6.value="";           
                  document.frmPedido_emp.field_casa_socio6.value="";            
                  document.frmPedido_emp.field_bairro_socio6.value="";          
                  document.frmPedido_emp.field_cidade_socio6.value="";          
                  document.frmPedido_emp.field_estado_socio6.value="";          
                  document.frmPedido_emp.field_pais_socio6.value="";            
                  document.frmPedido_emp.field_cep_socio6.value="";             
                  document.frmPedido_emp.field_telefone_socio6.value="";        
                  document.frmPedido_emp.field_profissao_socio6.value="";  
               //   document.frmPedido_emp.field_remetente6.focus();   
                  
                                   
              }
              
              if (qtd_max_pedido_empresarial == "7" || qtd_max_pedido_empresarial == "7_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
               //   document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
              //    document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
              //    document.frmPedido_emp.field_remetente3.focus();
                  
                  document.frmPedido_emp.field_nome_socio4.value="";            
                  document.frmPedido_emp.field_nome_mulher4.value="";           
                  document.frmPedido_emp.field_nascimento_socio4.value="";      
                  document.frmPedido_emp.field_residencia_socio4.value="";      
                  document.frmPedido_emp.field_numero_socio4.value="";          
                  document.frmPedido_emp.field_andar_socio4.value="";           
                  document.frmPedido_emp.field_casa_socio4.value="";            
                  document.frmPedido_emp.field_bairro_socio4.value="";          
                  document.frmPedido_emp.field_cidade_socio4.value="";          
                  document.frmPedido_emp.field_estado_socio4.value="";          
                  document.frmPedido_emp.field_pais_socio4.value="";            
                  document.frmPedido_emp.field_cep_socio4.value="";             
                  document.frmPedido_emp.field_telefone_socio4.value="";        
                  document.frmPedido_emp.field_profissao_socio4.value="";  
               //   document.frmPedido_emp.field_remetente4.focus();
                  
                  document.frmPedido_emp.field_nome_socio5.value="";            
                  document.frmPedido_emp.field_nome_mulher5.value="";           
                  document.frmPedido_emp.field_nascimento_socio5.value="";      
                  document.frmPedido_emp.field_residencia_socio5.value="";      
                  document.frmPedido_emp.field_numero_socio5.value="";          
                  document.frmPedido_emp.field_andar_socio5.value="";           
                  document.frmPedido_emp.field_casa_socio5.value="";            
                  document.frmPedido_emp.field_bairro_socio5.value="";          
                  document.frmPedido_emp.field_cidade_socio5.value="";          
                  document.frmPedido_emp.field_estado_socio5.value="";          
                  document.frmPedido_emp.field_pais_socio5.value="";            
                  document.frmPedido_emp.field_cep_socio5.value="";             
                  document.frmPedido_emp.field_telefone_socio5.value="";        
                  document.frmPedido_emp.field_profissao_socio5.value="";  
               //   document.frmPedido_emp.field_remetente5.focus();  
                  
                  document.frmPedido_emp.field_nome_socio6.value="";            
                  document.frmPedido_emp.field_nome_mulher6.value="";           
                  document.frmPedido_emp.field_nascimento_socio6.value="";      
                  document.frmPedido_emp.field_residencia_socio6.value="";      
                  document.frmPedido_emp.field_numero_socio6.value="";          
                  document.frmPedido_emp.field_andar_socio6.value="";           
                  document.frmPedido_emp.field_casa_socio6.value="";            
                  document.frmPedido_emp.field_bairro_socio6.value="";          
                  document.frmPedido_emp.field_cidade_socio6.value="";          
                  document.frmPedido_emp.field_estado_socio6.value="";          
                  document.frmPedido_emp.field_pais_socio6.value="";            
                  document.frmPedido_emp.field_cep_socio6.value="";             
                  document.frmPedido_emp.field_telefone_socio6.value="";        
                  document.frmPedido_emp.field_profissao_socio6.value="";  
               //   document.frmPedido_emp.field_remetente6.focus();   
                  
                  document.frmPedido_emp.field_nome_socio7.value="";            
                  document.frmPedido_emp.field_nome_mulher7.value="";           
                  document.frmPedido_emp.field_nascimento_socio7.value="";      
                  document.frmPedido_emp.field_residencia_socio7.value="";      
                  document.frmPedido_emp.field_numero_socio7.value="";          
                  document.frmPedido_emp.field_andar_socio7.value="";           
                  document.frmPedido_emp.field_casa_socio7.value="";            
                  document.frmPedido_emp.field_bairro_socio7.value="";          
                  document.frmPedido_emp.field_cidade_socio7.value="";          
                  document.frmPedido_emp.field_estado_socio7.value="";          
                  document.frmPedido_emp.field_pais_socio7.value="";            
                  document.frmPedido_emp.field_cep_socio7.value="";             
                  document.frmPedido_emp.field_telefone_socio7.value="";        
                  document.frmPedido_emp.field_profissao_socio7.value="";  
                //  document.frmPedido_emp.field_remetente7.focus(); 
                   
                             
              } 
              
              
               if (qtd_max_pedido_empresarial == "8" || qtd_max_pedido_empresarial == "8_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
                //  document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
               //   document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
              //    document.frmPedido_emp.field_remetente3.focus();
                  
                  document.frmPedido_emp.field_nome_socio4.value="";            
                  document.frmPedido_emp.field_nome_mulher4.value="";           
                  document.frmPedido_emp.field_nascimento_socio4.value="";      
                  document.frmPedido_emp.field_residencia_socio4.value="";      
                  document.frmPedido_emp.field_numero_socio4.value="";          
                  document.frmPedido_emp.field_andar_socio4.value="";           
                  document.frmPedido_emp.field_casa_socio4.value="";            
                  document.frmPedido_emp.field_bairro_socio4.value="";          
                  document.frmPedido_emp.field_cidade_socio4.value="";          
                  document.frmPedido_emp.field_estado_socio4.value="";          
                  document.frmPedido_emp.field_pais_socio4.value="";            
                  document.frmPedido_emp.field_cep_socio4.value="";             
                  document.frmPedido_emp.field_telefone_socio4.value="";        
                  document.frmPedido_emp.field_profissao_socio4.value="";  
              //    document.frmPedido_emp.field_remetente4.focus();
                  
                  document.frmPedido_emp.field_nome_socio5.value="";            
                  document.frmPedido_emp.field_nome_mulher5.value="";           
                  document.frmPedido_emp.field_nascimento_socio5.value="";      
                  document.frmPedido_emp.field_residencia_socio5.value="";      
                  document.frmPedido_emp.field_numero_socio5.value="";          
                  document.frmPedido_emp.field_andar_socio5.value="";           
                  document.frmPedido_emp.field_casa_socio5.value="";            
                  document.frmPedido_emp.field_bairro_socio5.value="";          
                  document.frmPedido_emp.field_cidade_socio5.value="";          
                  document.frmPedido_emp.field_estado_socio5.value="";          
                  document.frmPedido_emp.field_pais_socio5.value="";            
                  document.frmPedido_emp.field_cep_socio5.value="";             
                  document.frmPedido_emp.field_telefone_socio5.value="";        
                  document.frmPedido_emp.field_profissao_socio5.value="";  
             //     document.frmPedido_emp.field_remetente5.focus();  
                  
                  document.frmPedido_emp.field_nome_socio6.value="";            
                  document.frmPedido_emp.field_nome_mulher6.value="";           
                  document.frmPedido_emp.field_nascimento_socio6.value="";      
                  document.frmPedido_emp.field_residencia_socio6.value="";      
                  document.frmPedido_emp.field_numero_socio6.value="";          
                  document.frmPedido_emp.field_andar_socio6.value="";           
                  document.frmPedido_emp.field_casa_socio6.value="";            
                  document.frmPedido_emp.field_bairro_socio6.value="";          
                  document.frmPedido_emp.field_cidade_socio6.value="";          
                  document.frmPedido_emp.field_estado_socio6.value="";          
                  document.frmPedido_emp.field_pais_socio6.value="";            
                  document.frmPedido_emp.field_cep_socio6.value="";             
                  document.frmPedido_emp.field_telefone_socio6.value="";        
                  document.frmPedido_emp.field_profissao_socio6.value="";  
              //    document.frmPedido_emp.field_remetente6.focus();   
                  
                  document.frmPedido_emp.field_nome_socio7.value="";            
                  document.frmPedido_emp.field_nome_mulher7.value="";           
                  document.frmPedido_emp.field_nascimento_socio7.value="";      
                  document.frmPedido_emp.field_residencia_socio7.value="";      
                  document.frmPedido_emp.field_numero_socio7.value="";          
                  document.frmPedido_emp.field_andar_socio7.value="";           
                  document.frmPedido_emp.field_casa_socio7.value="";            
                  document.frmPedido_emp.field_bairro_socio7.value="";          
                  document.frmPedido_emp.field_cidade_socio7.value="";          
                  document.frmPedido_emp.field_estado_socio7.value="";          
                  document.frmPedido_emp.field_pais_socio7.value="";            
                  document.frmPedido_emp.field_cep_socio7.value="";             
                  document.frmPedido_emp.field_telefone_socio7.value="";        
                  document.frmPedido_emp.field_profissao_socio7.value="";  
             //     document.frmPedido_emp.field_remetente7.focus(); 
                  
                  document.frmPedido_emp.field_nome_socio8.value="";            
                  document.frmPedido_emp.field_nome_mulher8.value="";           
                  document.frmPedido_emp.field_nascimento_socio8.value="";      
                  document.frmPedido_emp.field_residencia_socio8.value="";      
                  document.frmPedido_emp.field_numero_socio8.value="";          
                  document.frmPedido_emp.field_andar_socio8.value="";           
                  document.frmPedido_emp.field_casa_socio8.value="";            
                  document.frmPedido_emp.field_bairro_socio8.value="";          
                  document.frmPedido_emp.field_cidade_socio8.value="";          
                  document.frmPedido_emp.field_estado_socio8.value="";          
                  document.frmPedido_emp.field_pais_socio8.value="";            
                  document.frmPedido_emp.field_cep_socio8.value="";             
                  document.frmPedido_emp.field_telefone_socio8.value="";        
                  document.frmPedido_emp.field_profissao_socio8.value="";  
              //    document.frmPedido_emp.field_remetente8.focus();
                   
                             
              }
              
               if (qtd_max_pedido_empresarial == "9" || qtd_max_pedido_empresarial == "9_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";  
              //    document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
              //    document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
            //      document.frmPedido_emp.field_remetente3.focus();
                  
                  document.frmPedido_emp.field_nome_socio4.value="";            
                  document.frmPedido_emp.field_nome_mulher4.value="";           
                  document.frmPedido_emp.field_nascimento_socio4.value="";      
                  document.frmPedido_emp.field_residencia_socio4.value="";      
                  document.frmPedido_emp.field_numero_socio4.value="";          
                  document.frmPedido_emp.field_andar_socio4.value="";           
                  document.frmPedido_emp.field_casa_socio4.value="";            
                  document.frmPedido_emp.field_bairro_socio4.value="";          
                  document.frmPedido_emp.field_cidade_socio4.value="";          
                  document.frmPedido_emp.field_estado_socio4.value="";          
                  document.frmPedido_emp.field_pais_socio4.value="";            
                  document.frmPedido_emp.field_cep_socio4.value="";             
                  document.frmPedido_emp.field_telefone_socio4.value="";        
                  document.frmPedido_emp.field_profissao_socio4.value="";  
              //    document.frmPedido_emp.field_remetente4.focus();
                  
                  document.frmPedido_emp.field_nome_socio5.value="";            
                  document.frmPedido_emp.field_nome_mulher5.value="";           
                  document.frmPedido_emp.field_nascimento_socio5.value="";      
                  document.frmPedido_emp.field_residencia_socio5.value="";      
                  document.frmPedido_emp.field_numero_socio5.value="";          
                  document.frmPedido_emp.field_andar_socio5.value="";           
                  document.frmPedido_emp.field_casa_socio5.value="";            
                  document.frmPedido_emp.field_bairro_socio5.value="";          
                  document.frmPedido_emp.field_cidade_socio5.value="";          
                  document.frmPedido_emp.field_estado_socio5.value="";          
                  document.frmPedido_emp.field_pais_socio5.value="";            
                  document.frmPedido_emp.field_cep_socio5.value="";             
                  document.frmPedido_emp.field_telefone_socio5.value="";        
                  document.frmPedido_emp.field_profissao_socio5.value="";  
             //     document.frmPedido_emp.field_remetente5.focus();  
                  
                  document.frmPedido_emp.field_nome_socio6.value="";            
                  document.frmPedido_emp.field_nome_mulher6.value="";           
                  document.frmPedido_emp.field_nascimento_socio6.value="";      
                  document.frmPedido_emp.field_residencia_socio6.value="";      
                  document.frmPedido_emp.field_numero_socio6.value="";          
                  document.frmPedido_emp.field_andar_socio6.value="";           
                  document.frmPedido_emp.field_casa_socio6.value="";            
                  document.frmPedido_emp.field_bairro_socio6.value="";          
                  document.frmPedido_emp.field_cidade_socio6.value="";          
                  document.frmPedido_emp.field_estado_socio6.value="";          
                  document.frmPedido_emp.field_pais_socio6.value="";            
                  document.frmPedido_emp.field_cep_socio6.value="";             
                  document.frmPedido_emp.field_telefone_socio6.value="";        
                  document.frmPedido_emp.field_profissao_socio6.value="";  
             //     document.frmPedido_emp.field_remetente6.focus();   
                  
                  document.frmPedido_emp.field_nome_socio7.value="";            
                  document.frmPedido_emp.field_nome_mulher7.value="";           
                  document.frmPedido_emp.field_nascimento_socio7.value="";      
                  document.frmPedido_emp.field_residencia_socio7.value="";      
                  document.frmPedido_emp.field_numero_socio7.value="";          
                  document.frmPedido_emp.field_andar_socio7.value="";           
                  document.frmPedido_emp.field_casa_socio7.value="";            
                  document.frmPedido_emp.field_bairro_socio7.value="";          
                  document.frmPedido_emp.field_cidade_socio7.value="";          
                  document.frmPedido_emp.field_estado_socio7.value="";          
                  document.frmPedido_emp.field_pais_socio7.value="";            
                  document.frmPedido_emp.field_cep_socio7.value="";             
                  document.frmPedido_emp.field_telefone_socio7.value="";        
                  document.frmPedido_emp.field_profissao_socio7.value="";  
            //      document.frmPedido_emp.field_remetente7.focus(); 
                  
                  document.frmPedido_emp.field_nome_socio8.value="";            
                  document.frmPedido_emp.field_nome_mulher8.value="";           
                  document.frmPedido_emp.field_nascimento_socio8.value="";      
                  document.frmPedido_emp.field_residencia_socio8.value="";      
                  document.frmPedido_emp.field_numero_socio8.value="";          
                  document.frmPedido_emp.field_andar_socio8.value="";           
                  document.frmPedido_emp.field_casa_socio8.value="";            
                  document.frmPedido_emp.field_bairro_socio8.value="";          
                  document.frmPedido_emp.field_cidade_socio8.value="";          
                  document.frmPedido_emp.field_estado_socio8.value="";          
                  document.frmPedido_emp.field_pais_socio8.value="";            
                  document.frmPedido_emp.field_cep_socio8.value="";             
                  document.frmPedido_emp.field_telefone_socio8.value="";        
                  document.frmPedido_emp.field_profissao_socio8.value="";  
            //      document.frmPedido_emp.field_remetente8.focus();
                  
                  document.frmPedido_emp.field_nome_socio9.value="";            
                  document.frmPedido_emp.field_nome_mulher9.value="";           
                  document.frmPedido_emp.field_nascimento_socio9.value="";      
                  document.frmPedido_emp.field_residencia_socio9.value="";      
                  document.frmPedido_emp.field_numero_socio9.value="";          
                  document.frmPedido_emp.field_andar_socio9.value="";           
                  document.frmPedido_emp.field_casa_socio9.value="";            
                  document.frmPedido_emp.field_bairro_socio9.value="";          
                  document.frmPedido_emp.field_cidade_socio9.value="";          
                  document.frmPedido_emp.field_estado_socio9.value="";          
                  document.frmPedido_emp.field_pais_socio9.value="";            
                  document.frmPedido_emp.field_cep_socio9.value="";             
                  document.frmPedido_emp.field_telefone_socio9.value="";        
                  document.frmPedido_emp.field_profissao_socio9.value="";  
          //        document.frmPedido_emp.field_remetente9.focus(); 
                             
              }
              
               if (qtd_max_pedido_empresarial == "10" || qtd_max_pedido_empresarial == "10_") {
     
                  document.frmPedido_emp.field_nome_socio.value="";            
                  document.frmPedido_emp.field_nome_mulher.value="";           
                  document.frmPedido_emp.field_nascimento_socio.value="";      
                  document.frmPedido_emp.field_residencia_socio.value="";      
                  document.frmPedido_emp.field_numero_socio.value="";          
                  document.frmPedido_emp.field_andar_socio.value="";           
                  document.frmPedido_emp.field_casa_socio.value="";            
                  document.frmPedido_emp.field_bairro_socio.value="";          
                  document.frmPedido_emp.field_cidade_socio.value="";          
                  document.frmPedido_emp.field_estado_socio.value="";          
                  document.frmPedido_emp.field_pais_socio.value="";            
                  document.frmPedido_emp.field_cep_socio.value="";             
                  document.frmPedido_emp.field_telefone_socio.value="";        
                  document.frmPedido_emp.field_profissao_socio.value="";                    
           //       document.frmPedido_emp.field_remetente.focus();
                  
                  document.frmPedido_emp.field_nome_socio2.value="";            
                  document.frmPedido_emp.field_nome_mulher2.value="";           
                  document.frmPedido_emp.field_nascimento_socio2.value="";      
                  document.frmPedido_emp.field_residencia_socio2.value="";      
                  document.frmPedido_emp.field_numero_socio2.value="";          
                  document.frmPedido_emp.field_andar_socio2.value="";           
                  document.frmPedido_emp.field_casa_socio2.value="";            
                  document.frmPedido_emp.field_bairro_socio2.value="";          
                  document.frmPedido_emp.field_cidade_socio2.value="";          
                  document.frmPedido_emp.field_estado_socio2.value="";          
                  document.frmPedido_emp.field_pais_socio2.value="";            
                  document.frmPedido_emp.field_cep_socio2.value="";             
                  document.frmPedido_emp.field_telefone_socio2.value="";        
                  document.frmPedido_emp.field_profissao_socio2.value="";  
             //     document.frmPedido_emp.field_remetente2.focus();
                  
                  document.frmPedido_emp.field_nome_socio3.value="";            
                  document.frmPedido_emp.field_nome_mulher3.value="";           
                  document.frmPedido_emp.field_nascimento_socio3.value="";      
                  document.frmPedido_emp.field_residencia_socio3.value="";      
                  document.frmPedido_emp.field_numero_socio3.value="";          
                  document.frmPedido_emp.field_andar_socio3.value="";           
                  document.frmPedido_emp.field_casa_socio3.value="";            
                  document.frmPedido_emp.field_bairro_socio3.value="";          
                  document.frmPedido_emp.field_cidade_socio3.value="";          
                  document.frmPedido_emp.field_estado_socio3.value="";          
                  document.frmPedido_emp.field_pais_socio3.value="";            
                  document.frmPedido_emp.field_cep_socio3.value="";             
                  document.frmPedido_emp.field_telefone_socio3.value="";        
                  document.frmPedido_emp.field_profissao_socio3.value="";  
           //       document.frmPedido_emp.field_remetente3.focus();
                  
                  document.frmPedido_emp.field_nome_socio4.value="";            
                  document.frmPedido_emp.field_nome_mulher4.value="";           
                  document.frmPedido_emp.field_nascimento_socio4.value="";      
                  document.frmPedido_emp.field_residencia_socio4.value="";      
                  document.frmPedido_emp.field_numero_socio4.value="";          
                  document.frmPedido_emp.field_andar_socio4.value="";           
                  document.frmPedido_emp.field_casa_socio4.value="";            
                  document.frmPedido_emp.field_bairro_socio4.value="";          
                  document.frmPedido_emp.field_cidade_socio4.value="";          
                  document.frmPedido_emp.field_estado_socio4.value="";          
                  document.frmPedido_emp.field_pais_socio4.value="";            
                  document.frmPedido_emp.field_cep_socio4.value="";             
                  document.frmPedido_emp.field_telefone_socio4.value="";        
                  document.frmPedido_emp.field_profissao_socio4.value="";  
            //      document.frmPedido_emp.field_remetente4.focus();
                  
                  document.frmPedido_emp.field_nome_socio5.value="";            
                  document.frmPedido_emp.field_nome_mulher5.value="";           
                  document.frmPedido_emp.field_nascimento_socio5.value="";      
                  document.frmPedido_emp.field_residencia_socio5.value="";      
                  document.frmPedido_emp.field_numero_socio5.value="";          
                  document.frmPedido_emp.field_andar_socio5.value="";           
                  document.frmPedido_emp.field_casa_socio5.value="";            
                  document.frmPedido_emp.field_bairro_socio5.value="";          
                  document.frmPedido_emp.field_cidade_socio5.value="";          
                  document.frmPedido_emp.field_estado_socio5.value="";          
                  document.frmPedido_emp.field_pais_socio5.value="";            
                  document.frmPedido_emp.field_cep_socio5.value="";             
                  document.frmPedido_emp.field_telefone_socio5.value="";        
                  document.frmPedido_emp.field_profissao_socio5.value="";  
            //      document.frmPedido_emp.field_remetente5.focus();  
                  
                  document.frmPedido_emp.field_nome_socio6.value="";            
                  document.frmPedido_emp.field_nome_mulher6.value="";           
                  document.frmPedido_emp.field_nascimento_socio6.value="";      
                  document.frmPedido_emp.field_residencia_socio6.value="";      
                  document.frmPedido_emp.field_numero_socio6.value="";          
                  document.frmPedido_emp.field_andar_socio6.value="";           
                  document.frmPedido_emp.field_casa_socio6.value="";            
                  document.frmPedido_emp.field_bairro_socio6.value="";          
                  document.frmPedido_emp.field_cidade_socio6.value="";          
                  document.frmPedido_emp.field_estado_socio6.value="";          
                  document.frmPedido_emp.field_pais_socio6.value="";            
                  document.frmPedido_emp.field_cep_socio6.value="";             
                  document.frmPedido_emp.field_telefone_socio6.value="";        
                  document.frmPedido_emp.field_profissao_socio6.value="";  
             //     document.frmPedido_emp.field_remetente6.focus();   
                  
                  document.frmPedido_emp.field_nome_socio7.value="";            
                  document.frmPedido_emp.field_nome_mulher7.value="";           
                  document.frmPedido_emp.field_nascimento_socio7.value="";      
                  document.frmPedido_emp.field_residencia_socio7.value="";      
                  document.frmPedido_emp.field_numero_socio7.value="";          
                  document.frmPedido_emp.field_andar_socio7.value="";           
                  document.frmPedido_emp.field_casa_socio7.value="";            
                  document.frmPedido_emp.field_bairro_socio7.value="";          
                  document.frmPedido_emp.field_cidade_socio7.value="";          
                  document.frmPedido_emp.field_estado_socio7.value="";          
                  document.frmPedido_emp.field_pais_socio7.value="";            
                  document.frmPedido_emp.field_cep_socio7.value="";             
                  document.frmPedido_emp.field_telefone_socio7.value="";        
                  document.frmPedido_emp.field_profissao_socio7.value="";  
         //         document.frmPedido_emp.field_remetente7.focus(); 
                  
                  document.frmPedido_emp.field_nome_socio8.value="";            
                  document.frmPedido_emp.field_nome_mulher8.value="";           
                  document.frmPedido_emp.field_nascimento_socio8.value="";      
                  document.frmPedido_emp.field_residencia_socio8.value="";      
                  document.frmPedido_emp.field_numero_socio8.value="";          
                  document.frmPedido_emp.field_andar_socio8.value="";           
                  document.frmPedido_emp.field_casa_socio8.value="";            
                  document.frmPedido_emp.field_bairro_socio8.value="";          
                  document.frmPedido_emp.field_cidade_socio8.value="";          
                  document.frmPedido_emp.field_estado_socio8.value="";          
                  document.frmPedido_emp.field_pais_socio8.value="";            
                  document.frmPedido_emp.field_cep_socio8.value="";             
                  document.frmPedido_emp.field_telefone_socio8.value="";        
                  document.frmPedido_emp.field_profissao_socio8.value="";  
          //        document.frmPedido_emp.field_remetente8.focus();
                  
                  document.frmPedido_emp.field_nome_socio9.value="";            
                  document.frmPedido_emp.field_nome_mulher9.value="";           
                  document.frmPedido_emp.field_nascimento_socio9.value="";      
                  document.frmPedido_emp.field_residencia_socio9.value="";      
                  document.frmPedido_emp.field_numero_socio9.value="";          
                  document.frmPedido_emp.field_andar_socio9.value="";           
                  document.frmPedido_emp.field_casa_socio9.value="";            
                  document.frmPedido_emp.field_bairro_socio9.value="";          
                  document.frmPedido_emp.field_cidade_socio9.value="";          
                  document.frmPedido_emp.field_estado_socio9.value="";          
                  document.frmPedido_emp.field_pais_socio9.value="";            
                  document.frmPedido_emp.field_cep_socio9.value="";             
                  document.frmPedido_emp.field_telefone_socio9.value="";        
                  document.frmPedido_emp.field_profissao_socio9.value="";  
         //         document.frmPedido_emp.field_remetente9.focus();
                  
                  document.frmPedido_emp.field_nome_socio10.value="";            
                  document.frmPedido_emp.field_nome_mulher10.value="";           
                  document.frmPedido_emp.field_nascimento_socio10.value="";      
                  document.frmPedido_emp.field_residencia_socio10.value="";      
                  document.frmPedido_emp.field_numero_socio10.value="";          
                  document.frmPedido_emp.field_andar_socio10.value="";           
                  document.frmPedido_emp.field_casa_socio10.value="";            
                  document.frmPedido_emp.field_bairro_socio10.value="";          
                  document.frmPedido_emp.field_cidade_socio10.value="";          
                  document.frmPedido_emp.field_estado_socio10.value="";          
                  document.frmPedido_emp.field_pais_socio10.value="";            
                  document.frmPedido_emp.field_cep_socio10.value="";             
                  document.frmPedido_emp.field_telefone_socio10.value="";        
                  document.frmPedido_emp.field_profissao_socio10.value="";  
                  document.frmPedido_emp.field_remetente .focus(); 
                             
              }
              
     }         
     else if (xmlhttp.responseText == 2){
       //document.getElementById("resposta_cadastro").innerHTML = "Usuário já existente!";
         /*     document.frmCadastrar.cadastra_nome.value = "";
              document.frmCadastrar.cadastra_cpf.value = "";
              document.frmCadastrar.cadastra_telefone.value = "";
              document.frmCadastrar.cadastra_email.value = "";
              document.frmCadastrar.cadastra_login.value = "";
              document.frmCadastrar.cadastra_senha.value = "";
              document.frmCadastrar.confirma_senha.value = "";
              document.frmCadastrar.cadastra_nome.focus();
              setTimeout("limpa_resposta_cadastro()",2000);*/
             // alert("Erro ao Enviar dados");
             if (Cod_Idioma == "1"){ alert("Erro ao Enviar dados");}
             if (Cod_Idioma == "2"){ alert("Given error to send");}
             if (Cod_Idioma == "3"){ alert("Gegebene zu senden Störung");}
             if (Cod_Idioma == "4"){ alert("Erro dado a enviar");}
             if (Cod_Idioma == "5"){ alert("Erreur à Enviar données");}
             if (Cod_Idioma == "6"){ alert("Informar Remetente italiano");}
              
     }
     else {
           //alert("Problemas ao carregar o arquivo");
           if (Cod_Idioma == "1"){ alert("Problemas ao carregar o arquivo");}
           if (Cod_Idioma == "2"){ alert("Problems when loading the archive");}
           if (Cod_Idioma == "3"){ alert("Probleme, wenn das Archiv geladen wird");}
           if (Cod_Idioma == "4"){ alert("Problemas al cargar el archivo");}
           if (Cod_Idioma == "5"){ alert("Problèmes au à chargement l'archive");}
           if (Cod_Idioma == "6"){ alert("Informar Remetente italiano");}
           //document.frmCadastrar.cadastra_nome.focus();
       }
   }

}

}
