49
| <![CDATA[<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
/*//the most commonly used options are likely to be align, size and labels, closely followed
//by fadeIn and inactivity (the other options are probably for the more advanced user)
var opts =
// horizontal Dock with images expanding downwards in the vertical axis...
{ align: 'top'
// set the maximum minor axis (vertical) image dimension to 48px
, size: 40
// add labels..
, labels: false
// swap the GIF extension for PNG extension for the larger image...
, source: function(i){ return this.src.replace(/gif$/,'png'); }
};
jQuery('#menu').jqDock(opts); */
$("a").easyTooltip();
$('.nyroModal').nyroModal();
$('.icon-24-ok').click(function() {
x = $(this).attr("switch");
$.blockUI({ message: $("#confirmOk_"+x), css: { width: '400px' } });
});
$('.icon-24-notok').click(function() {
x = $(this).attr("switch");
$.blockUI({ message: $("#confirmNotOk_"+x), css: { width: '400px' } });
});
$('.clickme').click(function() {
x = $(this).attr("idprojeto");//component id
ident = $(this).attr("ident");//component id
if(($("#"+x).css("display")) == 'none'){
$("#"+x).slideDown('slow', function() { });
$("#"+x).css("display", "block");
$("#"+ident).css({'background-image': 'none'});
$("#"+ident).css('background-image','url(layouts_index/global/theme/image/icon/ok_small.png)');
}
else
{
$("#"+x).slideUp();
$("#"+ident).css('background-image','url(layouts_index/global/theme/image/icon/tick_small.png)');
}
});
});
</script>]]>
|
115
| <![CDATA[<script type="text/javascript"> var ajax = {"__meta":null,"__size":0,"__class":"cadastro","__url":"\/index.php","__uid":"56d20ba928fcd7064ce4682ce4170691","__output":null,"__timeout":null,"__clone":function(obj){xoad.clone(this,obj)},"__serialize":function(){return xoad.serialize(this)},"catchEvent":function(){return xoad.catchEvent(this,arguments)},"ignoreEvent":function(){return xoad.ignoreEvent(this,arguments)},"postEvent":function(){return xoad.postEvent(this,arguments)},"fetchOutput":function(){return this.__output},"setTimeout":function(miliseconds){this.__timeout=miliseconds},"getTimeout":function(){return this.__timeout},"clearTimeout":function(){this.__timeout=null},"removeFoto":function(){return xoad.call(this,"removeFoto",arguments)},"loadCity":function(){return xoad.call(this,"loadCity",arguments)},"loadUnit":function(){return xoad.call(this,"loadUnit",arguments)},"RecuperaUnidades":function(){return xoad.call(this,"RecuperaUnidades",arguments)},"SetaUnidades":function(){return xoad.call(this,"SetaUnidades",arguments)},"insereUnidade":function(){return xoad.call(this,"insereUnidade",arguments)},"apagaUnidade":function(){return xoad.call(this,"apagaUnidade",arguments)},"mostra":function(){return xoad.call(this,"mostra",arguments)},"mostraPrincipal":function(){return xoad.call(this,"mostraPrincipal",arguments)}}; </script>]]>
|
116
| <![CDATA[<script language="JavaScript" type="text/javascript">
function VisualizarPesquisadores()
{
linha = document.getElementById('line');
if(linha.style.display=='none')
linha.style.display = '';
else
linha.style.display = 'none';
}
function Valida()
{
if(document.formcad.confirma.value == 1)
{
// Este if serve para checar se o tipo e pesquisador estrangeiro, se for,
// ele nao valida o cpf.
if(document.getElementById('tipo').value == 140911)
{
return true;
}
else if(Valida_CPF(document.formcad.cpf.value))
{
return true;
}
else
alert("Insira um CPF válido!");
return false;
}
return true;
}
function Valida_CPF (valor)
{
var CPF = new String();
for(i = 0; i < valor.length; i++)
if(String(parseInt(valor.charAt(i))) != "NaN")
CPF = CPF + valor.charAt(i);
if (CPF.length != 11 || CPF == "00000000000" || CPF == "11111111111" ||
CPF == "22222222222" || CPF == "33333333333" || CPF == "44444444444" ||
CPF == "55555555555" || CPF == "66666666666" || CPF == "77777777777" ||
CPF == "88888888888" || CPF == "99999999999")
return false;
soma = 0;
for (i=0; i < 9; i ++)
soma += parseInt(CPF.charAt(i)) * (10 - i);
resto = 11 - (soma % 11);
if (resto == 10 || resto == 11)
resto = 0;
if (resto != parseInt(CPF.charAt(9)))
return false;
soma = 0;
for (i = 0; i < 10; i ++)
soma += parseInt(CPF.charAt(i)) * (11 - i);
resto = 11 - (soma % 11);
if (resto == 10 || resto == 11)
resto = 0;
if (resto != parseInt(CPF.charAt(10)))
return false;
return true;
}
function changeEnterprise (field)
{
if (field.value != 0)
{
$('nova_inst_campo').value = '';
$('nova_inst').style.display = 'none';
$('unidade_div').style.display = '';
unitLoad ();
}
else
{
$('nova_inst').style.display = '';
$('unidade').value = 0;
$('unidade_div').style.display = 'none';
}
}
function OutraInst()
{
if(document.formcad.instituicao.value == 0)
document.getElementById('dinst').style.display = document.getElementbyId('dinst_0').style.display;
else
document.getElementbyId('dinst').style.display = 'none';
}
function Obrigatorios (obj)
{
if(obj.value == 1)
document.getElementById('visualiza').style.display = '';
else
document.getElementById('visualiza').style.display = 'none';
}
function Obrigatorios2 (obj)
{
if(obj.value == 1)
{
document.getElementById('dinst_2').style.display = '';
document.getElementById('dinst_3').style.display = '';
document.getElementById('dinst_4').style.display = '';
document.getElementById('dinst_5').style.display = '';
}
else
{
document.getElementById('dinst_2').style.display = 'none';
document.getElementById('dinst_3').style.display = 'none';
document.getElementById('dinst_4').style.display = 'none';
document.getElementById('dinst_5').style.display = 'none';
}
}
function MudaCampo()
{
if(document.getElementById('tipo').value == 140906)
{
//document.getElementById('teste_1').style.display = 'block'; //alison
//document.getElementById('teste_2').style.display = 'none'; //alison
document.getElementById('teste_3').style.display = 'block';
document.getElementById('pestrang').style.display = 'none';
document.getElementById('divrg').style.display = 'block';
document.getElementById('pesq_bols').style.display = 'block';
///document.getElementById('pesq_bols_1').style.display = 'block';
document.getElementById('teste_3').style.display = '';
document.getElementById('teste_4').style.display = '';
document.getElementById('teste_5').style.display = 'none';
document.getElementById('pestrang').style.display = 'none';
document.getElementById('divrg').style.display = '';
document.getElementById('pesq_bols').style.display = '';
///document.getElementById('pesq_bols_1').style.display = '';
}
else
{
if(document.getElementById('tipo').value == 140911)
{
//document.getElementById('teste_1').style.display = 'block'; alison
//document.getElementById('teste_2').style.display = 'noen'; alison
document.getElementById('teste_3').style.display = 'block';
document.getElementById('pestrang').style.display = 'block';
document.getElementById('divrg').style.display = 'none';
document.getElementById('pesq_bols').style.display = 'none';
///document.getElementById('pesq_bols_1').style.display = 'none';
document.getElementById('teste_3').style.display = '';
document.getElementById('teste_4').style.display = '';
document.getElementById('teste_5').style.display = 'none';
document.getElementById('pestrang').style.display = '';
document.getElementById('divrg').style.display = 'none';
document.getElementById('pesq_bols').style.display = 'none';
///document.getElementById('pesq_bols_1').style.display = 'none';
}
else
{
//eval('document.getElementById(\'teste_2\').style.display = \'block\''); //alison
//eval('document.getElementById(\'teste_1\').style.display = \'none\''); //alison
eval('document.getElementById(\'teste_3\').style.display = \'none\'');
eval('document.getElementById(\'pestrang\').style.display = \'none\'');
eval('document.getElementById(\'divrg\').style.display = \'block\'');
eval('document.getElementById(\'pesq_bols\').style.display = \'block\'');
///eval('document.getElementById(\'pesq_bols_1\').style.display = \'block\'');
document.getElementById('teste_3').style.display = 'none';
document.getElementById('teste_4').style.display = 'none';
document.getElementById('teste_5').style.display = '';
document.getElementById('pestrang').style.display = 'none';
document.getElementById('divrg').style.display = '';
document.getElementById('pesq_bols').style.display = '';
///document.getElementById('pesq_bols_1').style.display = '';
}
}
}
function MudaPais (obj, sufixo)
{
if (sufixo == '_res')
{
var objEstado = document.formcad.estado_res;
var objCidade = document.formcad.cidade_res;
}
else
{
var objEstado = document.formcad.estado;
var objCidade = document.formcad.cidade;
}
if (obj.value == 'BRASIL')
{
objEstado.value = 'PA';
objCidade.value = '';
document.getElementById ('row_estado' + sufixo).style.display = '';
document.getElementById ('row_cidade' + sufixo).style.display = '';
document.getElementById ('row_cep' + sufixo).style.display = '';
document.getElementById ('row_cidade' + sufixo + '_typ').style.display = 'none';
document.getElementById ('row_pais' + sufixo + '_typ').style.display = 'none';
document.getElementById ('row_zip' + sufixo).style.display = 'none';
}
else
{
objEstado.value = 'UU';
objCidade.value = '';
document.getElementById ('row_estado' + sufixo).style.display = 'none';
document.getElementById ('row_cidade' + sufixo).style.display = 'none';
document.getElementById ('row_cep' + sufixo).style.display = 'none';
document.getElementById ('row_cidade' + sufixo + '_typ').style.display = '';
document.getElementById ('row_pais' + sufixo + '_typ').style.display = '';
document.getElementById ('row_zip' + sufixo).style.display = '';
}
}
function Atualiza_Iframe(targ,selObj)
{
aux = document.getElementById("departamento");
tam = document.formcad.elements["departamento"].length;
for(i=tam-1;i>0;i--)
aux.options[i] = null;
//document.bprojeto.elements[tipo].length = 1;
eval(targ+".location='layouts_index/fundect/cadastro/busca.aprovacao.php?id="+selObj.options[selObj.selectedIndex].value+"'");
}
function Inclui(id, nome)
{
aux = document.getElementById("departamento");
tam = aux.length;
aux.options[tam] = new Option(nome,id,false,false);
}
function Verifica_senha ()
{
senha = document.frmSenha.senha_confirma.value;
if (senha_nova.length<6)
alert("Senha deverá conter no mÃnimo 6 caracteres");
return false;
}
function trocaDepartamento(instituicao_id){
if(!instituicao_id)
return false;
obj.listaUnidade(instituicao_id);
return false;
}
function vinculaInstituicao(pesq_id)
{
departamento = document.getElementById("instituicao_unidade");
obj.insereUnidade(pesq_id,departamento.value);
return false;
}
function cityLoad (cityId, stateId)
{
//alert (stateId);
var str, city, state;
state = $(stateId)[$(stateId).selectedIndex].value;
city = $(cityId);
//alert(state);
city.options.length = 0;
optAdd (city, 'Aguarde...', '', false, city.length);
str = ajax.loadCity (state);
//alert("2");
eval (str);
city.focus ();
city.options.length = 0;
optAdd (city, 'Selecione', '', false, city.length);
for (var i = 0 ; i < cityIds.length ; i++)
optAdd (city, cityNames[i], cityIds[i], false, city.length);
}
function unitLoad ()
{
var str, unit, state;
inst = $('instituicao')[$('instituicao').selectedIndex].value;
lunit = $('unidade');
lunit.options.length = 0;
optAdd (lunit, 'Aguarde...', '', false, lunit.length);
str = ajax.loadUnit (inst);
//alert (str);
eval (str);
lunit.focus ();
lunit.options.length = 0;
optAdd (lunit, 'Selecione', '', false, lunit.length);
for (var i = 0 ; i < unitIds.length ; i++)
optAdd (lunit, unitNames[i], unitIds[i], false, lunit.length);
}
function optAdd (obj, strText, strValue, blSel, intPos)
{
var newOpt, i, ArTemp, selIndex;
selIndex = (blSel) ? intPos : obj.selectedIndex;
newOpt = new Option (strText, strValue);
Len = obj.options.length + 1;
if (intPos > Len)
return;
obj.options.length = Len;
if (intPos != Len)
{
ArTemp = new Array();
for(i = intPos ; i < obj.options.length - 1 ; i++)
ArTemp [i] = Array (obj.options[i].text, obj.options[i].value);
for(i = intPos + 1 ; i < Len ; i++)
obj.options [i] = new Option (ArTemp[i-1][0], ArTemp[i-1][1]);
}
obj.options[intPos] = newOpt;
if (selIndex > intPos)
obj.selectedIndex = selIndex + 1;
else
if (selIndex == intPos)
obj.selectedIndex = intPos;
}
</script>]]>
|
485
| <![CDATA[<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1263715']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>]]>
|
531
| <![CDATA[<script type="text/javascript">
//funcao que checa se o caps look esta ativo
function checar_caps_lock(ev) {
var e = ev || window.event;
codigo_tecla = e.keyCode?e.keyCode:e.which;
tecla_shift = e.shiftKey?e.shiftKey:((codigo_tecla == 16)?true:false);
//alert (codigo_tecla);
if(((codigo_tecla >= 65 && codigo_tecla <= 90) && !tecla_shift) || ((codigo_tecla >= 97 && codigo_tecla <= 122) && tecla_shift)) {
document.getElementById('aviso_caps_lock').style.visibility = 'visible';
}
else {
document.getElementById('aviso_caps_lock').style.visibility = 'hidden';
}
}
</script>]]>
|