// JavaScript Document
var classid1="";
var classid2="";
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
　　var currNode;
　　xmlDoc.async = false;
function hotinfo(){
if(classid1==""){
xmlurl="/XML/info/hot.xml";
}else{
//xmlurl="/XML/info/info_new.asp?Bclassid="+classid1+"&Sclassid="+classid2;
xmlurl="/XML/info/info_new.asp?Bclassid="+classid1+"&Sclassid=";
	}
//prompt('',xmlurl);
xmlDoc.load(xmlurl);
if (xmlDoc.parseError.errorCode != 0){
htmlout="XML调入错误";
return false;
}
xmlObj=xmlDoc.documentElement; 
nodes = xmlDoc.documentElement.childNodes;
document.writeln("<table width=\"90%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
for(i=0;i<nodes.length-1;i++){
document.writeln("                    <tr class=\"info_show_hot\"> ");
document.writeln("                      <td width=\"8%\" align=\"center\"><img src=\"\/info\/images\/show_020.gif\" width=\"11\" height=\"11\"><\/td>");
document.writeln("                      <td height=\"25\" class=\"info_show_hot\"><a href=\"..\/..\/..\/.."+nodes(i).childNodes(5).text+"\" target=\"_blank\">"+nodes(i).childNodes(1).text.substring(0,15)+"<\/a><\/td>");
document.writeln("                    <\/tr>");
}
document.writeln("                  <\/table>")
}
function newyhj(){
xmlurl="/XML/yhj_new.xml";
xmlDoc.load(xmlurl);
if (xmlDoc.parseError.errorCode != 0){
htmlout+="XML调入错误";
return false;
}
xmlObj=xmlDoc.documentElement; 
nodes = xmlDoc.documentElement.childNodes;
document.writeln("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"f-12-fff\">");
for(i=0;i<nodes.length;i++){
document.writeln("              <tr height=\"20\"> ");
document.writeln("                <td width=\"25\">&nbsp;<\/td>");
document.writeln("                <td><a href=\"..\/..\/..\/.."+nodes(i).childNodes(6).text+"\" target=\"_blank\"><span class=\""+nodes(i).childNodes(4).text+"\">"+nodes(i).childNodes(3).text+"</span>&nbsp;<span class=\"f-12-0200D0\">"+nodes(i).childNodes(0).text.substring(0,14)+"<\/span><\/a><\/td>");
document.writeln("              <\/tr>");
}
document.writeln("            <\/table>")	
	}
function newpl(id){
xmlurl="/info/guest.asp?id="+id;
//prompt("",xmlurl);
xmlDoc.load(xmlurl);
if (xmlDoc.parseError.errorCode != 0){
htmlout+="XML调入错误";
return false;
}
xmlObj=xmlDoc.documentElement; 
nodes = xmlDoc.documentElement.childNodes;
var color="";
htmlout="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"f-12-fff\">";
for(i=0;i<nodes.length;i++){
if(i<=4){
//if(i%2==1){
//color="#fff";
//}else{
//color="#F7F7F7";}
htmlout+="              <tr style=\"background-color:"+color+"\"> ";
htmlout+="                <td width=\"25\" align=\"center\"><img src=\"\/info\/images\/pic-biao2.gif\"><\/td>";
htmlout+="                <td><a href=\"..\/..\/..\/..\/info\/info_pl.asp?id="+id+"\" target=\"_blank\"><span class=\"f-12-0002fe\">"+nodes(i).childNodes(0).text.substring(0,20)+"<\/span><\/a><\/td>";
htmlout+="              <\/tr>";
}
}
htmlout+="            <\/table>";
document.write(htmlout);
}
function newplall(){
xmlurl="/info/guest.asp";
//prompt("",xmlurl);
xmlDoc.load(xmlurl);
if (xmlDoc.parseError.errorCode != 0){
htmlout+="XML调入错误";
return false;
}
xmlObj=xmlDoc.documentElement; 
nodes = xmlDoc.documentElement.childNodes;
htmlout="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"f-12-fff\">";
for(i=0;i<nodes.length;i++){
htmlout+="              <tr> ";
htmlout+="                <td width=\"25\" align=\"center\"><img src=\"\/info\/images\/pic-biao2.gif\"><\/td>";
htmlout+="                <td><a href=\"\/info\/info_pl.asp?id="+nodes(i).getAttribute("infoid")+"\" target=\"_blank\"><span class=\"f-12-0002fe\">"+nodes(i).childNodes(0).text.substring(0,12)+"<\/span><\/a><\/td>";
htmlout+="              <\/tr>";
}
htmlout+="            <\/table>";
document.getElementById("infopl").innerHTML=htmlout;
document.getElementById("lttext").innerHTML="评论";
document.getElementById("pltext").innerHTML="<span style='cursor:hand' onclick=\"newbbs(10,'','','');\">社区</span>";
//document.getElementById("pltext").innerHTML="<span style='cursor:hand' onclick=\"wenzhe(10,400,28,'');\">问折</span>";
//document.getElementById("morelinktext").innerHTML="<a href=\"http:\/\/info\/info_pl.asp?id="+infoid+"\">更多评论<\/a>&nbsp;&nbsp;"
	}
//BBS贴子
function newbbs(nums,boardid,classid,order){
xmlurl="/info/guest_bbs.asp?nums="+nums+"&boardid="+boardid+"&classid="+classid+"&order"+order;
//prompt("",xmlurl);
xmlDoc.load(xmlurl);
if (xmlDoc.parseError.errorCode != 0){
htmlout+="XML调入错误";
return false;
}
xmlObj=xmlDoc.documentElement; 
nodes = xmlDoc.documentElement.childNodes;
htmlout="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"f-12-fff\">";
for(i=0;i<nodes.length;i++){
htmlout+="              <tr> ";
htmlout+="                <td width=\"25\" align=\"center\"><img src=\"\/info\/images\/pic-biao2.gif\"><\/td>";
htmlout+="                <td><a href=\""+nodes(i).childNodes(1).text+"\" target=\"_blank\"><span class=\"f-12-0002fe\">"+nodes(i).childNodes(0).text.substring(0,14)+"<\/span><\/a><\/td>";
htmlout+="              <\/tr>";
}
htmlout+="            <\/table>";
document.getElementById("infopl").innerHTML=htmlout;
document.getElementById("lttext").innerHTML="社区";
document.getElementById("pltext").innerHTML="<span style='cursor:hand' onclick=\"newplall();\">评论</span>";
//document.getElementById("pltext").innerHTML="<span style='cursor:hand' onclick=\"wenzhe(10,400,28,'');\">问折</span>";
//document.getElementById("morelinktext").innerHTML="<a href=\"http:\/\/bbs.icoupon.com.cn\/\">进入社区<\/a>&nbsp;&nbsp;";
	}
	
//问折
function wenzhe(nums,boardid,classid,order){
xmlurl="/info/guest_bbs_wenzhe.asp?nums="+nums+"&boardid="+boardid+"&classid="+classid+"&order"+order;
//prompt("",xmlurl);
xmlDoc.load(xmlurl);
if (xmlDoc.parseError.errorCode != 0){
htmlout+="XML调入错误";
return false;
}
xmlObj=xmlDoc.documentElement; 
nodes = xmlDoc.documentElement.childNodes;
htmlout="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"f-12-fff\">";
for(i=0;i<nodes.length-1;i++){
htmlout+="              <tr> ";
htmlout+="                <td width=\"25\" align=\"center\"><img src=\"\/info\/images\/pic-biao2.gif\"><\/td>";
htmlout+="                <td><a href=\""+nodes(i).childNodes(1).text+"\" target=\"_blank\"><span class=\"f-12-0002fe\">"+nodes(i).childNodes(0).text.substring(0,12)+"<\/span><\/a><\/td>";
htmlout+="              <\/tr>";
}
htmlout+="            <\/table>";
document.getElementById("infopl").innerHTML=htmlout;
temphtml="";
//document.getElementById("lttext").innerHTML="问折";
document.getElementById("wenzhe").innerHTML="<span style='cursor:hand' onclick=\"newbbs(10,'','','');\">社区</span>";
document.getElementById("pltext").innerHTML="<span style='cursor:hand' onclick=\"newplall();\">评论</span>";
//document.getElementById("morelinktext").innerHTML="<a href=\"http:\/\/bbs.icoupon.com.cn\/list.asp?classid=28&boardid=400\">问折圈<\/a>&nbsp;&nbsp;"
	}