// JavaScript Document
function TourList_ShowUI()
{
	WindowOpenCentre("/CustomModules/TourListSelector_Designer.asp", 400, 250, '1', '0', '0');
}

function TourList_Result(TGroupID)
{
	var sGroupTag = '{%tour_list:' + TGroupID + '%}';
	oEdit1.insertHTML(sGroupTag);
}

function ResizeIFrameToContent(IFrame)
{
	var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
	var oBody = null;
	
	// Get IFrame Body:
	if ( document.addEventListener ) 
		oBody = IFrame.contentDocument.body;
	
		// If IE event model is used
	else if ( document.attachEvent )
		oBody = IFrame.contentWindow.document.body;
	
	// Set height:
	IFrame.style.display= 'block';
	$(IFrame).height(oBody.scrollHeight + FFextraHeight);
	//IFrame.height = oBody.scrollHeight + 20 + 'px';
}
