function OpenWindow(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();

return gates;
}

function Centerthis(wwidth,wheight)
{
resx = screen.height;
resy = screen.width;

x = ((resy/2)-(wwidth/2))
y = ((resx/2)-(wheight/2))

self.moveTo(x,y)

}