function RP_WinOpen(u,h)
{
var DetailsWin; 
x=(screen.width-500)/2;
if (x<0)x=0;
h=Math.min(screen.height*0.9,h);
y=(screen.height-h)/2;
ww="=window.open('"+u+"','DetailsWin','width=500,height="+h+",left="+x+",top="+y+",menubar=no,scrollbars=yes')";
if(DetailsWin==null)
	{
	eval("DetailsWin"+ww);
	DetailsWin.focus();
	}
else
	{
	if (DetailsWin.closed)
		{
		eval("DetailsWin"+ww);
		DetailsWin.focus();
		}
	}
}

function RP_WinOpenFull(name,url)
{
var DetailsWin; 
x=0;
if (x<0)x=0;
h=screen.height;
w=screen.width;
y=0;
ww="=window.open('"+url+"','"+name+"','width="+w+",height="+h+",left="+x+",top="+y+",toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')";
if(DetailsWin==null)
	{
	eval(name+ww);
	name.focus();
	}
else
	{
	if (name.closed)
		{
		eval(name+ww);
		name.focus();
		}
	}
}
