  function GetDate(){
  /**
    * Get the current date
    */

    var now       = new Date();
    var horas     = now.getHours();
    var minutos   = now.getMinutes();
    var segundos  = now.getSeconds();
    var diasemana = now.getDay();
    var diames    = now.getDate();
    var mes       = now.getMonth();
    var ano       = now.getYear();
    var diaarray  = new Array("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado");
    var mesarray  = new Array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro");

    // Bug fix for browsers that returns 100 for 2000 year
    if (ano < 2000) {
      ano = 1900 + now.getYear();
    }

    if (diames < 10){
      diames = "0" + diames;
    }

    if (horas < 10){
	    horas = "0" + horas;
    }

    if (minutos < 10){
      minutos = "0" + minutos;
    }

    if (segundos < 10){
      segundos = "0" + segundos;
    }

    document.write (diaarray[diasemana] + ", " + diames + " de " + mesarray[mes] + " de " + ano);
  }


  function pm_openWindow( strURL, strTitle, strWidth, strHeight ) {
  /**
    * Open another browser window
    * Parameters:
    * o strURL    - URL to open in window;
    * o strTitle  - Window title;
    * o strWidth  - window Width;
    * o strheight - window Height;
    */
    
    window.open( strURL, 'Imagem' /*strTitle*/, "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=" + strWidth + ",height=" + strHeight );
  }

