function openWindow(url)
{
	// width & height & top
	var w = 800;
	var h= 600;
	var top = 50;
	// new window position -- right, left, center
	var position = "left";
	var winX = 50;
	var winY = top;

	bVer = parseInt(navigator.appVersion); 
	if(bVer >= 4)
	{
		if(position=="right")
		{
	        winX = screen.width - w -32;
        }
		if(position=="center")
		{
			winX = (screen.width/2)-(w/2);
			winY = (screen.height/2)-(h/2);
        }
	}
	popupWin = window.open(url,'newwin','toolbar=no,width='+ w +',height= ' + h + ',directories=no,status=no,scrollbars=yes,resizable=yes,top=' + winY + ',left=' + winX +',menubar=no');
	popupWin.focus();
}

function openMyWindow(url,w,h,t,l)
{
	popupWin = window.open(url,'newwin','toolbar=yes,location=yes,width='+ w +',height= ' + h + ',directories=no,status=no,scrollbars=yes,resizable=yes,top=' + t + ',left=' + l +',menubar=no');
	popupWin.focus();
}
