function externalLinks()
	{
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i < anchors.length; i++)
		{
		var anchor = anchors[i];
		if (anchor.getAttribute("href"))
			{
			// verificam dc este link extern
			temp = anchor.getAttribute("href")
			if ((temp.match("http://") || temp.match("HTTP://") || temp.match("www.") || temp.match("WWW.")) && temp.match("economia-online.ro")==null)
				{
				anchor.target = "_blank";
				if (anchor.title == "")
					{
					anchor.title = "(Legatura catre pagina externa)";
					}
					else
					{
					anchor.title = anchor.title+" \n(Legatura catre pagina externa)";
					}
				}
			}
		}
	}
window.onload = externalLinks;
