var tempodecorrido = 0; function init(){ if( document.all ){ AlertaAguarde.style.visibility = "hidden"; alerta_1.style.visibility = "visible"; document.all( "Relogio" ).SetVariable( "executar", 1 ); } else{ document.getElementById( "AlertaAguarde" ).style.visibility = "hidden"; document.getElementById( "alerta_1" ).style.visibility = "visible"; document.getElementById( "Relogio" ).SetVariable( "executar", 1 ); } } function alerta1(){ if( document.all ){ PopAlerta10.style.visibility = "visible"; } else{ document.getElementById( "PopAlerta10" ).style.visibility = "visible"; } } function alerta2(){ if( document.all ){ PopAlertaFim.style.visibility = "visible"; } else{ document.getElementById( "PopAlertaFim" ).style.visibility = "visible"; } } function cancela(){ if( document.all ){ document.all( "cancelar" ).style.visibility = "hidden"; } else{ document.getElementById( "cancelar" ).style.visibility = "hidden"; } } function enviar(F){ if( document.all ){ alerta_2.style.pixelTop = document.body.scrollTop + 150; alerta_2.style.pixelLeft = 184; botaoenviar.style.visibility = "hidden"; PopAlertaFim.style.visibility = "hidden"; alerta_2.style.visibility = "visible"; } else{ document.getElementById( "alerta_2" ).style.pixelTop = document.body.scrollTop + 150; document.getElementById( "alerta_2" ).style.pixelLeft = 184; document.getElementById( "botaoenviar" ).style.visibility = "hidden"; document.getElementById( "PopAlertaFim" ).style.visibility = "hidden"; document.getElementById( "alerta_2" ).style.visibility = "visible"; } } function tempo( z ){ tempodecorrido = z; //alert( tempodecorrido ); Hora = ( tempodecorrido/3600); HoraInt = Math.floor( Hora ); Minutos = (Hora-HoraInt)*60; MinutosInt = Math.floor(Minutos); Segundos = (Minutos-MinutosInt)*60; SegundosInt = Math.round(Segundos); if( SegundosInt == 60 ){ SegundosInt = 0 } Hora = "0" + HoraInt; Minutos = "0" + MinutosInt; Segundos = "0" + SegundosInt; Hora = Hora.substr( Hora.length - 2, 2 ); Minutos = Minutos.substr( Minutos.length - 2, 2 ); Segundos = Segundos.substr( Segundos.length - 2, 2 ); //alert( Hora + ":" + Minutos + ":" + Segundos ) document.formprova.Ftempo.value = Hora + ":" + Minutos + ":" + Segundos; document.formprova.action = "rprova.asp"; document.formprova.submit(); } function enviar2(F){ if( document.all ){ document.all( "Relogio" ).SetVariable( "executar", 0 ); document.all( "Principal" ).style.visibility = "hidden"; } else{ document.getElementById( "Relogio" ).SetVariable( "executar", 0 ); document.getElementById( "Principal" ).style.visibility = "hidden"; } } function ocultaalerta( dv ){ if( document.all ){ document.all( dv ).style.visibility = "hidden"; } else{ document.getElementById( dv ).style.visibility = "hidden"; } } function exibeinstr(){ if( document.all ){ instrucoes.style.visibility = "visible"; } else{ document.getElementById( "instrucoes" ).style.visibility = "visible"; } } function ocultainstr(){ if( document.all ){ instrucoes.style.visibility = 'hidden' } else{ document.getElementById( "instrucoes" ).style.visibility = "hidden"; } } function fechar(){ cancelar.style.visibility = "visible"; } function certificado( num ){ url = "certificado.asp?mgz=" + num certif = window.open( url , 'certif', 'width=710,height=510,resizable=0,scrollbars=0,menubar=no,status=0' ); certif.moveTo( ( screen.availWidth - 710 ) / 2, ( screen.availHeight - 510 ) /2 ) }