// ----------------------------------------------------
// Autor: Santi F.C. 

// ABILBO CONCEPT, s.l.
// --------------------
// Consell de Cent, 303 1er
// 08007 Barcelona
// Tel. 93 323 56 54
 
// info@abilbo.com
// WWW.ABILBO.COM
 
// Copyright 2000 Abilbo Concept, s.l.

// Ultima modificacion : 07/09/2000
// ----------------------------------------------------


// Oberwindow  -> Abre una ventana centrada (NETSCAPE y EXPLORER)
//
//
// Cuando la abramos, en el campo features no debemos incluir el tamaņo, 
// sino en los dos campos siguientes....
//
//
// Ejemplo: oberwindow('{nombre_archivo}','{nombre_pagina}','{features}',{anchura},{altura})">Abre Ventana</a>



function Oberwindow(theURL,winName,features,wwidth,wheight)
{
resx=screen.height;
resy=screen.width;

x=((resy/2)-(wwidth/2))
y=((resx/2)-(wheight/2))


texto=features;
texto+="screenX="+x+",screenY="+y+",width="+wwidth+",height="+wheight+",left="+x+",top="+y


gates=window.open(theURL,winName,texto);
gates.focus();
}


// Centerthis -> Centra la ventana actual (necesita el tamaņo de la ventana);


function Centerthis(wwidth,wheight)
{
resx=screen.height;
resy=screen.width;

x=((resy/2)-(wwidth/2))
y=((resx/2)-(wheight/2))

this.moveTo(x,y)


}


