// JavaScript Document
 
 var newwin = false;
 var width;
 var height;
 var winsize;
 var testx;
 var testy;
 
var popup = false;

function popup_info(id, page, width, height) {

var scw=screen.availWidth;
var sch=screen.availHeight;
var xpos=(scw-width)/2;
var ypos=(sch-height)/2;
var halfheight = height/2;
var halfwidth = width/2;

var screenx = screen.availWidth/2;
var screeny = screen.availHeight/2;

testx = screenx - halfwidth;
testy = screeny - halfheight;

var winheight = "height=" + height;
var winwidth = "width=" + width;
//var wintop = "top=" + testy;
//var winwleft = "left=" + testx;
//winsize = winheight + "," + winwidth + "," + wintop + "," + winleft;
winsize = winheight + "," + winwidth;

if (popup) popup.close();


 popup = window.open(page,'',winsize);
 
 popup.moveTo(testx,testy);
 
 //setTimeout('openWindow(' + id + ')',250);
 }
 

