// JavaScript Document

function abrirVentana (URL)
{ 
   window.open(URL,"ventana1","width=720,height=502,scrollbars=NO") 
} 

function abrirVentana(ruta,ancho,alto)
{
	posIzq=0
	posSup=0
		
	if (screen)
	{
		posIzq= (screen.width/2) - (ancho/2)
		posSup= (screen.height/2) - (alto/2)
	}
	
	ancho=ancho+20;
	alto=alto+20;
	
	nuevaVentana=window.open(ruta,"Nueva","width=" + ancho + " ,height=" + alto + " ,left=" + posIzq + ",top=" + posSup);
}
//Informacion inferior

function informacionInferior()
{
	document.write( "Coparma,SL &reg; - Pol&iacute;gono Industrial O Ceao, R&uacute;a da Terra s/n Lugo (Espa&ntilde;a)<br>");
	document.write(" Tel: +34 982209493, +34 982209534 - Fax: +34 982209163");
}

// Barra de estado

function escribirBarraEstado(texto)
{
   window.status="Coparma,SL-Polígono Industrial O Ceao, Rúa da Terra s/n Lugo (España)-Tel: +34 982209493, +34 982209534 - Fax: +34 982209163";
}

//----------------------------------
// Arrays para saber la ficha actual

var mes = new makeArray(12);
mes[0] = "Enero";
mes[1] = "Febrero";
mes[2] = "Marzo";
mes[3] = "Abril";
mes[4] = "Mayo";
mes[5] = "Junio";
mes[6] = "Julio";
mes[7] = "Agosto";
mes[8] = "Septiembre";
mes[9] = "Octubre";
mes[10] = "Noviembre";
mes[11] = "Diciembre";

// Array of day names

var dia = new makeArray(7);
dia[0] = "Domingo";
dia[1] = "Lunes";
dia[2] = "Martes";
dia[3] = "Mi&eacute;rcoles";
dia[4] = "Jueves";
dia[5] = "Viernes";
dia[6] = "S&aacute;bado";

var fecha = new Date();
var ano = fecha.getYear();

if (ano < 2000) ano = ano + 1900;

function makeArray(len) 
{
    for (var i = 0; i < len; i++) this[i] = null;
    this.length = len;
}

