var myTWin = window.myTWin;
function OpenMyWin (link, winName, w, h, scroll, resizable)
{
    var leftPosition = (document.body.clientWidth / 2)  - (w/2);
	var topPosition  = (document.body.clientHeight / 2) - (h/2);
	
	if (resizable != null)
	{
		var settings = 'height='+ h +', width='+ w +', top='+ topPosition +', left='+ leftPosition +', scroll='+ scroll +', resizable='+ resizable;
	}
	else
	{
		var settings = 'height='+ h +', width='+ w +', top='+ topPosition +', left='+ leftPosition +', scroll='+ scroll;
	}
	
	
    var retValue = true;
    if (myTWin != null && !myTWin.closed)
    {
		myTWin.focus ();
		myTWin.location.href=link.href;
    }
    else
    {
		myTWin=window.open (link.href,winName,settings);
		if (myTWin == null || typeof (myTWin) == "undefined")
		{
			retValue = false;
		}
		else
		{
			link.target = winName;
			myTWin.focus ();
		}
    }
    return retValue;
}
