
//code to fix the IE issue with the popup code
var lastSrc = "";
var popupTarget = "";

function popupShow( target, targetContainer, src, args, vals, page, query )
{
	popupTarget = target;

	if (src != lastSrc)
	{
		//hide the last one
		Popup.hideAll();

		//load content for the box using ajax
//		alert( "loading data" );
//		doAjax( page, query, 'loadData', 'get', '0' );
//		alert( "data loaded" );

		test = getContent( page, query, targetContainer );

		//show the new one
		Popup.show(target, src, args, vals);

		//set to look at new one
		lastSrc = src;
	}
}

function popupHide()
{
	Popup.hideAll();
	lastSrc = "";
}

function loadData( text )
{
	//load the popup window with returned ajax data
	target.innerHTML = text;

		alert( "data loaded" );
}
