function neoCast_ChPage(comboSelect, section, jsSearchString){ if(section==1) url = "conteudo.php?pagina=neocast/list.php&page=" + comboSelect[comboSelect.selectedIndex].value +"§ion="+ section + jsSearchString+"&classTitulo=conteudo_titulo_news"; else url = "conteudo.php?pagina=neocast/list.php&page=" + comboSelect[comboSelect.selectedIndex].value +"§ion="+ section + jsSearchString+"&classTitulo=conteudo_titulo_newsloyalty"; ajaxSendRequest('conteudo', url, null); } function neoCast_SearchByKeyCode(KeyCode,section){ if (KeyCode==13) { if(section==1) ajaxSendRequest('conteudo','conteudo.php?pagina=neocast/list.php&castSearchInput='+document.getElementById('castSearchInput').value+'§ion='+section+'&classTitulo=conteudo_titulo_news',null); else ajaxSendRequest('conteudo','conteudo.php?pagina=neocast/list.php&castSearchInput='+document.getElementById('castSearchInput').value+'§ion='+section+'&classTitulo=conteudo_titulo_newsloyalty',null); } } function ajaxOnEnter(evt) { var obj = document.getElementById('email'); if (evt.keyCode == 13) { openSubscriberWindow(obj) } return false } /*Cadastra-se newsLetter*/ function openSubscriberWindow(obj) { var regex = new RegExp('^([\.a-zA-Z0-9_-]+)@([\.a-zA-Z0-9_-]){1,}[\.]{1,1}[a-zA-Z]{2,3}$'); if(!regex.test(obj.value)) { alert('Endereço de email inválido!'); return false; } window.open('/neocast/subscriber.php?view=$view&subscriberMail='+obj.value, '', 'width=400, height=320, scrollbars=yes, resizable:no, scroll:no, location:no'); }