239
| <![CDATA[<td style="padding-left: 10px;" class="pR6" valign="top" width="50%" align="right">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody align="right">
<tr>
<td background="images/bg_boxes.gif" height="13" valign="top" width="137">
<img src="images/tit_box_buscar2.gif" alt="" border="0" height="13" width="142"></td>
<td align="right" background="images/bg_boxes.gif">
<img src="images/bor_titulo_boxes.gif" alt="" border="0" height="13" width="13"></td>
</tr>
<tr>
<td colspan="2" class="bg_tbl_cinza" valign="top" align="right">
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tx_bold">Preencha
um dos campos abaixo</td>
</tr>
<tr>
<td width="30%"> ;</td>
<td width="70%"> ;</td>
</tr>
<tr>
<td>CPF/CNPJ: ;* ;</td>
<td>
<input name="tbCPF" type="text" class="box" id="tbCPF" style="width: 100%;" onkeypress="return vRemoveCaracteres1(event);" size="14" maxlength="14" /></td>
</tr>
<tr>
<td>PLACA: ;</td>
<td>
<input name="tbPlaca" type="text" class="box" id="tbPlaca" style="width: 100%;" onkeypress="return vRemoveCaracteres2(event);" size="7" maxlength="7" /></td>
</tr>
<tr>
<td> ;</td>
<td height="20" align="right" valign="bottom"><a href="#" onclick="javascript:vValidaCamposObrigatorios();">
<img src="images/bt_buscar.gif" alt="Buscar" width="36" height="15" vspace="5" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<span class="tx9">* digite apenas números</span></td>]]>
|
262
| <![CDATA[<input name="tbCPF" type="text" class="box" id="tbCPF" style="width: 100%;" onkeypress="return vRemoveCaracteres1(event);" size="14" maxlength="14" />]]>
|
267
| <![CDATA[<input name="tbPlaca" type="text" class="box" id="tbPlaca" style="width: 100%;" onkeypress="return vRemoveCaracteres2(event);" size="7" maxlength="7" />]]>
|
316
| <![CDATA[<div style="width: 564px; height: 1px; background-color: rgb(134, 174, 202);">
<div></div>
</div>]]>
|
340
| <![CDATA[<div style="height: 15px;">
<div></div>
</div>]]>
|
108
| <![CDATA[<a class="govsp-acessibilidade" href="http://10.199.23.73/#" id="altocontraste" accesskey="3" onclick="window.toggleContrast()" onkeydown="window.toggleContrast()"><img class="govsp-acessibilidade" src="Skin/Prodesp/barra-govsp/img/contrast.png" alt="Contraste"></a>]]>
|
271
| <![CDATA[<a href="#" onclick="javascript:vValidaCamposObrigatorios();">
<img src="images/bt_buscar.gif" alt="Buscar" width="36" height="15" vspace="5" border="0"></a>]]>
|
17
| <![CDATA[<script type="text/javascript" language="JavaScript">
/*
tarefa: Remove caracteres do campo CPF/CNPJ
*/
function vRemoveCaracteres1(e) {
var tecla = (window.event) ? event.keyCode : e.which;
if (tecla == 13) {
vValidaCamposObrigatorios();
}
else
if ((tecla > 47 && tecla < 58)) return true;
else {
if (tecla != 8 && tecla != 0) return false;
else return true;
}
}
function vRemoveCaracteres2(e) {
var tecla = (window.event) ? event.keyCode : e.which;
if (tecla == 13) {
vValidaCamposObrigatorios();
}
else
if ((tecla > 47 && tecla < 58)) return true;
else if ((tecla > 64 && tecla < 91)) return true;
else if ((tecla > 96 && tecla < 123)) return true;
else {
if (tecla != 8 && tecla != 0) return false;
else return true;
}
}
/*
tarefa: verifica se campos obrigatórios foram preenchidos
pré-requisito: nenhum
*/
function vValidaCamposObrigatorios() {
var cCPF;
var cPlaca;
//var cExercicio;
cCPF = document.frmConsulta.tbCPF.value;
cPlaca = document.frmConsulta.tbPlaca.value;
if (cCPF.length < 5 && cPlaca.length < 5) {
alert('Para realizar a busca deve-se informar pelo menos 5 caracteres do CPF/CNPJ ou a placa do veículo.');
}
else {
document.frmConsulta.submit();
}
}
</script>]]>
|