47
| <![CDATA[<script>
function iniciaModalidade(QS)
{
document.getElementById("fModalidade").value = QS;
}
function iniciaStatus(QS)
{
if (QS == "")
{
document.getElementById("radioT").checked = false;
document.getElementById("radioI").checked = false;
document.getElementById("radioR").checked = false;
}
else
{
if (QS == "T") {document.getElementById("radioT").checked = true;}
else if (QS == "I") {document.getElementById("radioI").checked = true;}
else if (QS == "R") {document.getElementById("radioR").checked = true;}
}
}
function ValidarCampos(){
if (document.getElementById("radioT").checked == false &&
document.getElementById("radioI").checked == false &&
document.getElementById("radioR").checked == false &&
document.getElementById("fModalidade").value=='0')
{
return false;
}
return true;
}
function Pesquisa()
{
var vCampos = ValidarCampos();
if (vCampos == true)
{
QP = '';
if (document.getElementById("fModalidade").value != '0')
{
QP = '?mod=' + document.getElementById("fModalidade").value;
if (document.getElementById("radioT").checked == true) {QP = QP + '&sta=' + "T";}
else if (document.getElementById("radioI").checked == true) {QP = QP + '&sta=' + "I";}
else if (document.getElementById("radioR").checked == true) {QP = QP + '&sta=' + "R";}
}
else
{
if (document.getElementById("radioT").checked == true) {QP = QP + '?sta=' + "T";}
else if (document.getElementById("radioI").checked == true) {QP = QP + '?sta=' + "I";}
else if (document.getElementById("radioR").checked == true) {QP = QP + '?sta=' + "R";}
}
aLocation = 'http://www.angra.rj.gov.br/sel-calendario.asp' + QP;
document.getElementById("formPesquisa").action = aLocation;
document.getElementById("formPesquisa").submit();
// alert(document.getElementById("fModalidade").value);
// alert(aLocation);
// location.href=aLocation;
}
else
{
alert("Favor preencher todos os campos para pesquisa!!!");
return false;
}
}
</script>]]>
|
372
| <![CDATA[<script>
(function() {
var cx = '016181961034164526103:pzcddwj-gow';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>]]>
|
491
| <![CDATA[<script>iniciaModalidade('0');</script>]]>
|
501
| <![CDATA[<script>iniciaStatus('T');</script>]]>
|