function wopen(w,h)
{
	newWin=window.open("","all","toolbar=0,directories=0,status=1,resizable=1,scrollbars=1,scrolling=1,menubar=0,Width="+w+",Height="+h);
	newWin.focus();
	newWin.window.moveTo(10,10);
	newWin.window.resizeTo(w,h);
}

function wopen_auth(w,h)
{
	newWin=window.open("","fform","toolbar=0,directories=0,status=1,resizable=1,scrollbars=1,scrolling=1,menubar=0,Width="+w+",Height="+h);
	newWin.focus();
	newWin.window.moveTo(20,20);
	newWin.window.resizeTo(w,h);
}

function ctrl_win(url)
{
	if(!window.opener || window.opener.closed)
	{
		this.location.href = url;
	} 
	else
	{ 
		opener.location.href = url;
		opener.focus();
	}

}