><A id=declaracaoForm:j_id110:0:j_id112 title="Excluir Valor." onclick="javascript: if (!confirm('Confirma a exclusao?')){ return false;} else {showDIV('aguarde');}; A4J.AJAX.Submit('_viewRoot','declaracaoForm',event, {'parameters':{'declaracaoForm:j_id110:0:j_id112':'declaracaoForm:j_id110:0:j_id112'} , 'actionUrl':'/dsnSPWEB/xhtml/declaracao/inserirDeclaracao.jsf', 'oncomplete': function(request,event,data) {hideDIV('aguarde');showErrMsg();}, 'similarityGroupingId':'declaracaoForm:j_id110:0:j_id112'} ); return false;" href="https://cert01.fazenda.sp.gov.br/dsnSPWEB/xhtml/menu/menu.jsf#" name=declaracaoForm:j_id110:0:j_id112>AC - R$0,01</A> >Why do you need to go through the onClick() event - if you're doing this automated, there's nobody to click around. I'd suggest you call the Ajax submit code directly, i.e. copy that part into a separate function and call it.