var _openWin = null;

function OpenWindow(obj)
{
	event.cancelBubble = true;
	
	var w = obj.all[0];
	
	if ( w != null && w.style.visibility == 'hidden' )
	{
		if ( _openWin != null )
			_openWin.style.visibility = 'hidden';
		
		
		w.style.visibility = 'visible';
		_openWin = w;
	
	}
   
    document.forms[0].onclick = CloseWin; 
	
}

function CloseWin()
{
	if ( _openWin != null )
		_openWin.style.visibility = 'hidden';
		
	document.forms[0].onclick = null;;
}

function CloseWindow(obj)
{ 
		
}
