<!--

var Description_popupWindow;
var Description_creatingPopup = false;
var Description_sourceWindow;

function Description_showPopup( sourceWindow, url, popupWidth, popupHeight, windowAttributes ) 
{
	if(Description_popupWindow != null && !Description_popupWindow.closed)
	{
		Description_closePopup();
	}
	Description_creatingPopup = true;
	if( windowAttributes.length > 0 )
	{
        	windowAttributes = ',' + windowAttributes;
        }
	Description_popupWindow = window.open(url,'popup', 'resizable=yes,scrollable=yes,dependent=yes,' +
		'screenX='+(screen.availWidth-popupWidth)/2+',screenY='+(screen.availHeight-popupHeight-30)/2 +
		',left='+(screen.availWidth-popupWidth)/2+',top='+(screen.availHeight-popupHeight-30)/2+
		',width=' +popupWidth + ',height=' + popupHeight + windowAttributes);

    	Description_sourceWindow = sourceWindow;
	Description_creatingPopup = false;
}

function Description_closePopup() 
{
    	if(!Description_creatingPopup && Description_popupWindow != null && !Description_popupWindow.closed && Description_popupWindow.close )
	{
		Description_popupWindow.close();
	}
    	if(!Description_creatingPopup)
    	{
		Description_popupWindow = null;
	}
}

//-->