function fiexNodeText(PN)
{
	if(PN==null)
		return;
	if(PN.nodeType==3)//textNode
	{
		ReplaceText(PN)
		return;
	}
	var n=PN.firstChild;
	
	var ReplaceText=function(txtNode)
	{
	      if(txtNode!=null)
		{
			var p=txtNode.parentNode;
			var span=document.createElement("span");
var re = new RegExp("工伤保险条例");var target = re.exec(txtNode.nodeValue);txtNode.nodeValue=txtNode.nodeValue.replace(/工伤保险条例/g,"<a target=_blank class=test_link_class href='http://db.cworksafety.com/law/zyws/102808/118577.html'>"+target+"</a>");			var re = new RegExp("安全评价机构管理规定");var target = re.exec(txtNode.nodeValue);span.innerHTML=txtNode.nodeValue.replace(/安全评价机构管理规定/g,"<a target=_blank class=test_link_class href='http://db.cworksafety.com/law/aqpj/102817/128559.html' >"+target+"</a>");
			p.insertBefore(span,txtNode);
			txtNode.nodeValue="";
		}
	
	};
	while(n!=null)
	{
		if(n.nodeType==3)//TextNode
		{
			ReplaceText(n);
		}
		else
			fiexNodeText(n);
		n=n.nextSibling;
	}
	
}

window.onload=function()
{
     fiexNodeText(document.getElementById('zoom'));
}
