  topdate = new Date();

  topweekday = topdate.getDay();

  topmonth = topdate.getMonth();



  topmonthday = topdate.getDate();

  monthday = topmonthday;



   // dias da semana

  if(topweekday == 0)

       day = " Domingo, "



  else if(topweekday == 1)

    day = " Segunda, "



  else if(topweekday == 2)

    day = " Terça, "



  else if(topweekday == 3)

     day = " Quarta, "



  else if(topweekday == 4)

    day = " Quinta, "



  else if(topweekday == 5)

    day = " Sexta, "



  else if(topweekday == 6)

    day = " Sabado, "



  // mes

  if(topmonth == 0)

    month = "Janeiro "



  else if(topmonth ==1)

    month = "Fevereiro "



  else if(topmonth ==2)

    month = "Março "



  else if(topmonth ==3)

    month = "Abril "



  else if(topmonth ==4)

    month = "Maio "



  else if(topmonth ==5)

    month = "Junho "



  else if(topmonth ==6)

    month = "Julho "



  else if(topmonth ==7)

    month = "Agosto "



  else if(topmonth ==8)

    month = "Setembro "



  else if(topmonth ==9)

    month = "Outubro "



  else if(topmonth ==10)

    month = "Novembro "



  else if(topmonth ==11)

    month = "Dezembro "



  // escrevendo

  document.write(day);

  document.write(topmonthday+" de "+month+ " 2012");


