// JavaScript Document /* ', ini); // extrai apenas o script codigo = texto.substring(ini,fim); // executa o script //eval(codigo); // //* Alterado por Micox - micoxjcg@yahoo.com.br //* Alterei pois com o eval não executava funções. // novo = document.createElement("script") novo.text = codigo; document.body.appendChild(novo); } } } //retorna TRUE se a string EMAIL for um email sintaticamente válido. function emailValido(email) { //var emailRE = new RegExp("^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$"); emailRE = /^[\w-]+(\.[\w-]+)*@(([\w-]{2,63}\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])$/; return emailRE.test(email); }; //abre uma janela popup function NewWindow(mypage, myname, w, h, scroll) { var winl = (((screen.width - w) / 2) - 7); var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'; win = window.open(mypage, myname, winprops); //win = window.open(mypage,'oxente',winprops); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }; } function swapimg(img,el) { el.src = img; }; //rola a tela para o fundo da página function scrollBottom() { if (document.body.scrollHeight) { window.scrollTo(0, document.body.scrollHeight); } else if (screen.height) { window.scrollTo(0, screen.height); } }; function Tip(text) { //alert(text); }; function UnTip() { }; function eko_dateinput_update(inputName) { var day = document.getElementById(inputName + "_day").item(document.getElementById(inputName + "_day").selectedIndex).value; var month = document.getElementById(inputName + "_month").item(document.getElementById(inputName + "_month").selectedIndex).value; var year = document.getElementById(inputName + "_year").item(document.getElementById(inputName + "_year").selectedIndex).value; document.getElementById(inputName).value= year + "-" + month + "-" + day; }; //input date in format YYYY-MM-DD function eko_dateinput(inputName,date) { var dayID = inputName+"_day"; var monthID = inputName+"_month"; var yearID = inputName+"_year"; var now = new Date(); if(!date||date=="") { date = now; } else { date = date.replace(/-/g,'/'); var date = new Date(date); }; //alert(date.getDate()); //date.setFullYear(year,month,day); document.writeln('
'); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln('
'); eko_dateinput_update(inputName); }; function DateInput(DateName, Required, DateFormat, DefaultDate) { };