﻿function focusFunt(obj){
	if(obj.value == "llene todos los campos"){
		obj.value = "";		
	    obj.style.color = "#000"		
	}
}

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] = 'INPUT_NOMBRE';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'nome.';

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_APELLIDO';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'apelidio.';

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_TELEFONO';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'telefone.';

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_EMAIL';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'email';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'email.';

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_DIRECCION';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'endereço.';

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_EDAD';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'idade.';	

	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_PERGUNTA1';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'pergunta.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_PERGUNTA2';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'pergunta.';
	
	intCountForm++
	arrForms['FORM_FIELDS'][0][intCountForm] = 'INPUT_PERGUNTA3';
	arrForms['FORM_FIELDS_TYPE'][0][intCountForm] = 'text';
	arrForms['FORM_ERROR_MESSAGES'][0][intCountForm] = 'pergunta.';

	if(checkForm(0)){
		document.frmDados.submit();
	}else{
		
	}
};

