function Imagen(imagen, nombre_ventana, pie, dimensiones, ancho, alto) { 
var codHTML = "";
var aleatorio = "" + Math.random();
aleatorio = aleatorio.substring(1+aleatorio.indexOf("."),aleatorio.length);
var ventana;
ventana = window.open("/blanco.html",aleatorio,dimensiones,"resizable=0");
codHTML += '<HTML><HEAD><TITLE>';
codHTML += nombre_ventana;
codHTML += '</TITLE><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD><BODY onblur="javascript:window.close()" onclick="javascript:window.close()" bgcolor="FFFFFF" leftMargin=0 text=000000 topMargin=0 marginwidth="0" marginheight="0">';
codHTML += '<IMG SRC="' + imagen + '" WIDTH=' + ancho + ' HEIGHT=' + alto + ' ALT="" BORDER="0">';
codHTML += '<BR><table width="' + ancho + '" border="0" cellspacing="0" cellpadding="5"><tr align="right"><td><div align=justify>';
codHTML += '<font size="1" color="#333333" face="Verdana, sans-serif">' + pie;
codHTML += '</font></div>';
codHTML += '</td></tr></table>';
codHTML += '</BODY></HTML>';
ventana.document.open();
ventana.document.write(codHTML);
ventana.document.close();
}

function Ventana(url,w,h)

{
var aleatorio = "" + Math.random();
aleatorio = aleatorio.substring(1+aleatorio.indexOf("."),aleatorio.length);

  Window=window.open(url, aleatorio, 'location=0,resizable=0,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,status=0,screenX=200,screenY=35,width='+w+',height='+h);

  Window.focus();

  onscreen=true;
}

function Item(){
  this.length = Item.arguments.length 
  for (var i = 0; i < this.length; i++)
    this[i] = Item.arguments[i]
}

function Fecha() {
  var nmes  = new Item('enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 
                          'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre')
  var ahora
  var fecha = new Date()
  var ano   = fecha.getYear()
  var mes   = fecha.getMonth()
  var aux   = "" + fecha
  
  if (ano<10) {
    ano2 = "200" + eval(ano)
  }
  else if (ano<80) {                
    ano2 = "20" + ano
  } 
  else if (ano<=99) {               
    ano2 = "19" + ano
  }
  else if (ano<1000) {              
    ano2 = eval(ano) + eval(1900)
  }
  else {
    ano2 = ano                     
  }
  

  ahora = " , " + eval(aux.substring(7, 10)) + " de " + nmes[mes] + " de " + ano2
  return ahora
}