function blurLinks(){ lnks=document.getElementsByTagName('a'); for(var i=0;i 800){ l=30; t=30; } url=url.replace(/[ ]/g,'%20'); popup=window.open(url,'pop_'+n,'left='+l+',top='+t+',width='+w+',height='+h+',scrollbars=1'+((other)?','+other:'')); other=other||''; if(is.ie&&other.indexOf('fullscreen')!=-1){popup.moveTo(0,0);popup.resizeTo(screen.width,screen.height)} popup.focus(); } function tiraDuvidas(id){ openPopup('/amilportal/site/tiraduvidas/tira_duvidas.jsp?codigo=ID'+id,'Duvidas',500,350,false,false); } function abreTiraDuvidas(id){ openPopup('/amilportal/site/tiraduvidas/tira_duvidas.jsp?codigo='+id,'Duvidas',600,500,false,false); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) { x=d.all[n]; } for (i=0;!x&&i today.getMonth() ? -1 : (birthDay.getMonth() == today.getMonth() && birthDay.getDate() > today.getDate() ? -1 : 0)); } function validaCpfMaiorIdade(cpfElement,nomeMaeElement,dataNasc){ var result = (String(nomeMaeElement.value) == "" || String(cpfElement.value) == "")&& getAgeFromDate(dataNasc) >= 18 ? false: true; var resultFields = (String(cpfElement.value) == "" && String(nomeMaeElement.value) == "") && getAgeFromDate(dataNasc) < 18 ? false: true; if(!result){ alert ('Os campos CPF e Nome da Mãe são obrigatórios para dependentes maiores de 18 anos.'); cpfElement.focus(); result = false; } if (!resultFields){ alert ('Os campos CPF ou Nome da Mãe são obrigatórios para dependentes menores de 18 anos.'); cpfElement.focus(); result = false; } return result; } /* function validaCpfMaiorIdade(cpfElement,dataNasc){ var result = cpfElement.value == "" && getAgeFromDate(dataNasc) >= 18 ? false: true; if(!result){ alert ('O campo CPF é obrigatório para titulares ou dependentes com idade maior que 18 anos'); cpfElement.focus(); } return result; } */