function openW(mypage,myname,w,h,features) 
{
	if(screen.width)
	{
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
	}
	else
	{
		winl = 0;wint =0;
	}
	
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}

function openPopupWindow(imgSrc,w,h)
{
	var newImg = new Image( );
	newImg.src = imgSrc;
	var width = parseInt(w) + 50;
	var height = parseInt(h) + 50;
	var settings = 'toolbar=0,scrollbars=0,statusbar=0,resizable=0,height=' + height + ',';
	settings += 'width=' + width + ',';
	win = window.open(imgSrc,'Apollo',settings);
	win.window.focus();
}
