var now = new Date();
 
if(0 == now.getMonth())
var Month = (" Janeiro")
else if(1 == now.getMonth())
var Month = (" Fevereiro")
else if(2 == now.getMonth())
var Month = (" Março")
else if(3 == now.getMonth())
var Month = (" Abril")
else if(4 == now.getMonth())
var Month = (" Maio")
else if(5 == now.getMonth())
var Month = (" Junho")
else if(6 == now.getMonth())
var Month = (" Julho")
else if(7 == now.getMonth())
var Month = (" Agosto")
else if(8 == now.getMonth())
var Month = (" Setembro")
else if(9 == now.getMonth())
var Month = (" Outubro")
else if(10 == now.getMonth())
var Month = (" Novembro")
else if(11 == now.getMonth())
var Month = (" Dezembro")
 
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = now.getDate();
var yearNr=now.getYear();
 
var hora = now.getHours();
var minutos       = now.getMinutes();
var segundos= now.getSeconds();
 
 
if (hora < "10"){  hora = "0"+hora; }
if (minutos < "10"){        minutos = "0"+minutos; }
if (segundos < "10"){      segundos = "0"+segundos; }
 
 
if(dName==1) Day = "Domingo";
if(dName==2) Day = "Segunda-feira";
if(dName==3) Day = "Ter&ccedil;a-feira";
if(dName==4) Day = "Quarta-feira";
if(dName==5) Day = "Quinta-feira";
if(dName==6) Day = "Sexta-feira";
if(dName==7) Day = "S&aacute;bado";
if(yearNr < 2000) Year = 1900 + yearNr;
else Year = yearNr;
 
// String to display current date.
var todaysDate =(Day + "," + " " + dayNr + " de " + Month + " de " +
Year);
 
// String to display current time.
var todaysTime =(hora + ":" + minutos + "h");

// Date 
<!--- data --->
// 		<script language="">
//		document.write("<font face='verdana' size='1' color='000000'>" + todaysDate + "</font>");
//		</script>
<!--- fim data --->

// Function new window
	var win = null;
	function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
	}