// Este script recoge y transforma en una cadena
// la fecha del sistema para presentarlo en pantalla

function Item(){
this.length = Item.arguments.length 
for (var i = 0; i < this.length; i++)
  this[i] = Item.arguments[i]
}

function Fecha() {

var ahora
var fecha = new Date()
var ano = fecha.getFullYear()
var mes = fecha.getMonth() + 1
var dia = fecha.getDate()

if (dia < 10)
	dia = "0" + dia
	
ahora = dia + "-" + mes + "-" + ano

return ahora

}

function centerPage(){
	var winW = 630, winH = 460;

	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.body.offsetWidth;
	 }
	}
	Value = winW/2 - 379;
	document.write("<style type=\"text/css\">");
	document.write(".center {");
	document.write("padding-left: "+Value+"px;");
	document.write("}");
	document.write("</style>");
	window.onResize=centerPage;
	window.onresize = function() { document.location = document.location; }
}

