﻿

function enviaContato(){
	var intCountForm=0;
	
	arrForms['FORM_OBJECT'][0] = 'document.frmDados';
	var objForm=arrForms['FORM_OBJECT'][0];
	
	arrForms['FORM_FIELDS'][0] = new Array();
	arrForms['FORM_FIELDS_TYPE'][0] = new Array();
	arrForms['FORM_ERROR_MESSAGES'][0] = new Array();
		
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'TRIVIA1';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'trivia 1.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'TRIVIA2';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'trivia 2.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'TRIVIA3';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'trivia 3.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'TRIVIA4';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'trivia 4.';

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'TRIVIA5';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'trivia 5.';

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'NOMBRE';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'nombre.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'TELEFONO';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'number';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'telefono.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'APELLIDO';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'apellido.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'CORREO';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'email';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'correo.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'DIRECCION';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'identidade.';
		
	if(checkForm(0)){
		document.frmDados.submit();
	}else{
		
	}
};
