	function popupcodebox(code)
	{
		b = document.getElementById("codebox");
		if(b)
		{
			c = document.getElementById("codearea");
			if (c)
			{
				c.value = code;
			}

			dialog_obj = b;
			dlg_width = parseInt(dialog_obj.style.width);
			dlg_height = parseInt(dialog_obj.style.height);
			if ( isNaN(dlg_height) )
				dlg_height = dialog_obj.clientHeight;

			if ( isNaN(dlg_width) )
				dlg_width = dialog_obj.clientWidth;

			dlg_left = (document.body.clientWidth-dlg_width)/2;
			dlg_top = (document.body.clientHeight-dlg_height)/2;
			dlg_left += document.body.scrollLeft;
			dlg_top += document.body.scrollTop;
			b.style.left = dlg_left + "px";
			b.style.top = dlg_top + "px";
			b.style.display = "block";
		}
	}

	function showlogocode(u,w,h,c)
	{
		code ='<a href="http://www.countrysidegazebos.com/?' + u + '"><img src="http://www.countrysidegazebos.com/images/logo_';
		code+=w+'_'+h+c+'.gif" border="0" width="'+w+'" height="'+h+'" alt="Countryside Gazebos"></a>';
		popupcodebox(code);
		return false;
	}
	function showtextcode(u,desc)
	{
		code ='<a href="http://www.countrysidegazebos.com/?' + u + '">Countryside Gazebos';
		if ( desc != "" )
		{
			code+=" - " + desc;
		}
		code += '</a>';
		popupcodebox(code);
		return false;
	}

