var L_UNDEFINED_TEXT="No se encuentra esta definición.";

function AppendPopup(oSource, sPopup)
{
	var sPopupText;
	if (oSource.tagName=="A" && oSource.getAttribute("State")!="On")
	{
		sPopupText= GetGlossaryTerms(sPopup);
		if (sPopupText != L_UNDEFINED_TEXT)
		{
			oSource.insertAdjacentHTML("BeforeEnd", "<SPAN ID='Pop' class='GlossaryDef'>&nbsp;&#40;" + sPopupText + "&#41;</SPAN>");
			oSource.setAttribute("State", "On")
			window.event.returnValue=false;
		}
		else
		{
			alert(L_UNDEFINED_TEXT);
		}
	}
	else if (oSource.tagName=="A" && oSource.getAttribute("State")=="On" )
	{
		oSource.all("Pop").outerHTML=""
		oSource.setAttribute("State", "Off")
		window.event.returnValue=false;
	}
}


function GetGlossaryTerms(sPopup)
{
	sTemp='vista Diseño de impresión: Una vista de un documento u otro objeto tal y como aparecerá cuando lo imprima. Los elementos como encabezados, pies de página, columnas y cuadros de texto, por ejemplo, aparecerán en sus posiciones reales.';
	return sTemp;
}

