	function doubleDelegate(function1, function2)
	{
		return function() 
		{
			if (function1) function1();
			if (function2) function2();
		}
	}
	
	function openPopupWindow(obj)
	{
		var wnd = window.open(obj.href, '_blank', 'width=1000,height=800,scrollbars=yes');
		if (wnd.opener == null) wnd.opener = self;
    }
	
	function checkPopupLink(obj)
	{
		if (opener == null) return true;
		opener.document.location.href = obj.href;
		self.close();
		return false;
	}
	
	
	function showOverlayFrame(url)
	{
		var overlay = $('\
			<div id="overlay">\
				<div id="background"></div>\
				<iframe src="' + url + '"></iframe>\
			</div>\
		');
		$(top.document).find('body').append(overlay);
	}
	
	function hideOverlayFrame()
	{
		$('#overlay').remove();
	}
	
	
