Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | function validarData(campo) { |
| 2 | var expReg = /^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[1-2][0-9]\d{2})$/; |
||
| 3 | |||
| 4 | if ((campo.value!='') && !(campo.value.match(expReg))) { |
||
| 5 | alert('Formato inválido de data!'); |
||
| 6 | campo.focus(); |
||
| 7 | } |
||
| 8 | } |
||
| 9 | |||
| 10 | function returnNumber(e){ |
||
| 11 | var tecla=(window.event)?event.keyCode:e.which; |
||
| 12 | if((tecla > 47 && tecla < 58)) return true; |
||
| 13 | else{ |
||
| 14 | if ((tecla != 0)&&(tecla !=8)) return false; |
||
| 15 | else return true; |
||
| 16 | } |
||
| 17 | } |
||
| 18 | |||
| 19 | function start() { |
||
| 20 | PF('statusDialogLoading').show(); |
||
| 21 | } |
||
| 22 | |||
| 23 | function stop() { |
||
| 24 | PF('statusDialogLoading').hide(); |
||
| 25 | } |