function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function popImage(img)
{
	openIT('pop_gl.htm?img='+img,500,400);
}

function openIT(u,W,H, sc) {
	window.open(u, '',"width="+W+",height="+H+",scrollbars="+(sc ? "yes" : "no"));
}

//LeatestNews pop up
var iom = 0;
function popImages(head, ia, icaptions)
{
	iom ++;
	document["obj_"+iom] = new Object();
	document["obj_"+iom].num = -1;
	
	w = window.open("popImages.aspx","","width=650,height=600,scrollbars=yes");
	
	w.arr = ia;
	w.heading = head;
	w.obj = document["obj_"+iom];
	w.captions = icaptions;
	
	if (w.focus)w.focus();
	
}
