// JavaScript Document 信息使用
function NavClass()
{
	var xmlClass,num ;
	var nodeName,node_ID,intDepth ;
	var strcontent,strStartTR,strhref;
	var strtemp;
			    
	strcontent="";
	xmlClass = new ActiveXObject( "Microsoft.XMLDOM" );
	xmlClass.async = false;
	num=Math.random()*10000;
	xmlClass.load("/XML/class.xml?num="+num);
	if(xmlClass!=null)
		{ 
			node=xmlClass.selectSingleNode("/Class/PClass[@ClassID=1]/SubClass");
			for(i=0;node!=null;node=node.nextSibling)
				{
					intDepth=node.getAttribute("Depth");
					node_ID=node.getAttribute("ClassID");
					nodeName=node.getAttribute("ClassName");
					strhref	="/info/class.asp?classID="+node_ID;
						
					if (intDepth==1)
						{
							if (i ==0)
								strStartTR=""
							else
								strStartTR="&nbsp; |&nbsp; ";
							strtemp=strStartTR+"<a href="+strhref+" class=font_0>"+nodeName+"</a>";
							strcontent+=strtemp;
							i++;
						}
				}	
		document.write(strcontent);	
		}
	xmlClass=null;	
}
//新的信息分类
function NavClass2(classid,SubClass,SubClass2,topclass)
{
	var xmlClass,num ;
	var nodeName,node_ID,intDepth ;
	var strcontent,strStartTR,strhref;
	var strtemp;
			    
	strcontent="";
	xmlClass = new ActiveXObject( "Microsoft.XMLDOM" );
	xmlClass.async = false;
	num=Math.random()*10000;
	xmlClass.load("/XML/class2.xml?num="+num);
	if(xmlClass!=null)
		{   
			
			if(SubClass!=0&&SubClass2==0)
			{
				node=xmlClass.selectSingleNode("/Class/PClass[@ClassID="+classid+"]/SubClass[@ClassID="+SubClass+"]/SubClass2");
					for(i=0;node!=null;node=node.nextSibling)
					{
						intDepth=node.getAttribute("Depth");
						node_ID=node.getAttribute("ClassID");
						nodeName=node.getAttribute("ClassName");
						strhref	="/info/class/?classID="+node_ID+"&topclass="+topclass;
							
						if (intDepth==1)
							{
								if (i ==0)
									strStartTR=""
								else
									strStartTR="&nbsp; |&nbsp; ";
								strtemp=strStartTR+"<a href="+strhref+" class=font14>"+nodeName+"</a>";
								strcontent+=strtemp;
								i++;
							}
					}
			}
			else
			{
				node=xmlClass.selectSingleNode("/Class/PClass[@ClassID="+classid+"]/SubClass");
						for(i=0;node!=null;node=node.nextSibling)
				{
					intDepth=node.getAttribute("Depth");
					node_ID=node.getAttribute("ClassID");
					nodeName=node.getAttribute("ClassName");
					strhref	="/info/class/?classID="+node_ID+"&topclass="+topclass;
						
					if (intDepth==1)
						{
							if (i ==0)
								strStartTR=""
							else
								strStartTR="&nbsp; |&nbsp; ";
							strtemp=strStartTR+"<a href="+strhref+" class=font14>"+nodeName+"</a>";
							strcontent+=strtemp;
							i++;
						}
				}	
			}
			

		document.write(strcontent);	
		}
	xmlClass=null;	
}