58
| <![CDATA[<script language="JavaScript">
function mostra(ID, IDTipo){
// Separa id_pessoa e id_tabela passados como parâmetro
if (resposta.style.display == 'none') {
resposta.style.display = 'block';
inicial.style.display = 'none';
}
var doc = document.escolhabusca;
for(i=0;i<doc.localidades1.length;i++){
if(doc.localidades1.options[i].value==ID) doc.localidades1.options[i].selected=true;
}
// Submete documento
ocultaExibeLocal(1);
loadXMLDoc("localidades_corpo.asp?ID="+ID+"&IDTipo="+IDTipo);
}
</script>]]>
|
77
| <![CDATA[<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>]]>
|
345
| <![CDATA[<script>
function resizeSigs(id_ifr){
if(parent.document.getElementById(id_ifr))parent.alturaIframeMiolo(id_ifr);
}
function ocultaExibeLocal(num){
document.getElementById("div_exibe").style.display = (num != 0) ? "none" : "";
document.getElementById("div_oculta").style.display = (num != 0) ? "" : "none";
document.getElementById("div_local").style.display = (num != 0) ? "" : "none";
}
var xmlhttp;
function loadXMLDoc(url)
{
xmlhttp=null;
if (window.XMLHttpRequest)
{// code for all new browsers
xmlhttp=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{// code for IE5 and IE6
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlhttp!=null)
{
xmlhttp.onreadystatechange=state_Change;
xmlhttp.open("GET",url,true);
xmlhttp.setRequestHeader('content-type', 'text/xml');
xmlhttp.send(null);
}
else
{
document.getElementById("resposta").innerHTML = "<b style='color:red'>Erro no objeto XMLHTTP</b>";
}
}
function state_Change()
{
if (xmlhttp.readyState==4)
{// 4 = "loaded"
if (xmlhttp.status==200)
{// 200 = OK
document.getElementById("resposta").innerHTML = xmlhttp.responseText;
}
else
{
document.getElementById("resposta").innerHTML = "<b style='color:red'>Erro no carregamento dos dados</b>";
}
}
}
</script>]]>
|