31
| <![CDATA[<script language="JavaScript" type="text/JavaScript">
/*
* função que chama a rotina de salvamento,
* altere somente o nome da página
*/
function salvar(){
document.frm.action = "index.php?menu=rp";
document.frm.submit();
}
function novaJanela(link)
{
window.open(link, "newWindow");
}
var recaptcha = false;
function recaptchaInformado() {
recaptcha = true;
}
function recaptchaExpirado() {
recaptcha = false;
}
function verificaCamposFaleConosco() {
if (document.form2.email.value == "") {
alert("Favor informar seu e-mail!");
document.form2.email.focus();
return false;
}
if (document.form2.mensagem.value == "") {
alert("Favor informar a mensagem!");
document.form2.mensagem.focus();
return false;
}
if (recaptcha != true) {
alert("Favor informar confirmação humana!");
return false;
}
return true;
}
var timeID=null;
var timerRunning=false;
function stopclock (){
if(timerRunning)clearTimeout(timerID);
timerRunning=false;
}
function startclock (){
stopclock ();
showtime ();
}
var hours = 23;
var minutes = 56;
var seconds = 55;
function showtime() {
//var now=new Date();
//var hours= now.getHours();
//var minutes= now.getMinutes();
//var seconds= now.getSeconds();
seconds++;
if(seconds>59){
seconds=0;
minutes++;
}
if(minutes>59){
minutes=0;
hours++;
}
if(hours>23){
minutes=0;
seconds=0;
hours=0;
}
var timeValue="" + ((hours<10) ? "0" : '') + hours;
// timeValue += ((hours<10) ? "0" : "") + hours
timeValue += ((minutes<10) ? ":0" : ":") + minutes
timeValue += ((seconds<10) ? ":0" : ":") + seconds
document.clock.face.value= timeValue
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function abrir(URL) {
var width = 800;
var height = 600;
var left = 0;
var top = 0;
window.open(URL,'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>]]>
|