﻿ //<![CDATA[
 
 function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
};
/*==========v6.0悬浮提示函数================= */
function MM_showHideLayers() {
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
};
/*===========显示匿名用户填写呢称窗口//此功能暂时在页面中删除================ */
function fdsp(){
	if (mmz.style.display=="none"){
	        mmz.style.display="";
	        ymz.style.display="none";
	}else{
	        ymz.style.display="";
	        mmz.style.display="none";
	}
};
/*===========对比页面层的位置================ */
var history_div = null;
var history_id = null;

function changeDiv(obj_id){
 	var displace_div = document.getElementById("displace_div");
 	
 	if(history_id!=null){
	 	var displace_divxx = document.getElementById(history_id+"x"); 
	 	displace_divxx.style.color="#004E7A";
 	}
 	
 	var displace_divx = document.getElementById(obj_id+"x"); 
 	history_id=obj_id; 	
 	
 	displace_divx.style.color="#ff6600";
 	/*displace_divx.style.font="bold";*/
  var obj = document.getElementById(obj_id);
  
  if(history_div != null)
		history_div.innerHTML = displace_div.innerHTML;
  displace_div.innerHTML = obj.innerHTML;
  obj.innerHTML = "";
  history_div = obj;
  
};
/**最终显示页面---功能，价位切换*/
var flag="1";
function secBoardxxx(n){
	for(i=1;i<4;i++){
		eval("document.getElementById('cl0"+i+"').className='newbj2'");
	}
	eval("document.getElementById('cl0"+n+"').className='newbj1'");
	for(i=1;i<4;i++){
		eval("document.getElementById('Layer"+i+"').style.display='none'");
	}
	eval("document.getElementById('Layer"+n+"').style.display='block'");
};
function secnewBoardxxx(n){
	for(i=1;i<3;i++){
		eval("document.getElementById('cl0xx"+i+"').className='newbj2_2'");
	}
	eval("document.getElementById('cl0xx"+n+"').className='newbj1_2'");
	for(i=1;i<3;i++){
		eval("document.getElementById('Layerxx"+i+"').style.display='none'");
	}
	eval("document.getElementById('Layerxx"+n+"').style.display='block'");
};
function popcomment(n){
	for(i=1;i<4;i++){
		eval("document.getElementById('listx"+i+"').className='this1'");
		eval("document.getElementById('popcommentdivx"+i+"').style.display='none'");
	}
	eval("document.getElementById('listx"+n+"').className='onthis'");
	eval("document.getElementById('popcommentdivx"+n+"').style.display='block'");
};
function traitshow(n,div,li,num){
	for(i=1;i<num;i++){
		eval("document.getElementById('"+li+i+"').className=''");
		eval("document.getElementById('"+div+i+"').style.display='none'");
	}
	eval("document.getElementById('"+li+n+"').className='on'");
	eval("document.getElementById('"+div+n+"').style.display='block'");
};

/*最终显示页面---分值显示的不同颜色控制*/	
var tcolor_ID=0;
function ShowColor(ID){
  if(ID!=tcolor_ID){
    /*TabTitle[tID].className='menu_soft_title1';*/
    /*TabTitle[ID].className='menu_soft_title2';*/
    Tcolor[tcolor_ID].style.color='#000000';
    Tcolor[ID].style.color='#ff6600';
    tcolor_ID=ID;
    return null;
  };
   Tcolor[tcolor_ID].style.color='#000000';
   Tcolor[ID].style.color='#ff6600';
   tcolor_ID=ID;
};

/*最终显示页面---功能显示层可见性 控制*/	
var tID=0;
function ShowTabs(ID){
  if(ID!=tID){
    /*TabTitle[tID].className='menu_soft_title1';*/
    /*TabTitle[ID].className='menu_soft_title2';*/
    Tabs[tID].style.display='none';
    Tabs[ID].style.display='';
    tID=ID;
  };
};

function 	is91bi(){
	var span_arr = document.getElementsByTagName("span");
	for(i=0;i<span_arr.length;i++){
		if(span_arr[i].id=='ybscorsuning'){
			if(location.href.indexOf("suning")>=0){
			  span_arr[i].innerHTML=span_arr[i].innerHTML.substring(span_arr[i].innerHTML.indexOf("-")+1);
			}else {
			  span_arr[i].innerHTML=span_arr[i].innerHTML.substring(0,span_arr[i].innerHTML.indexOf("-"));
			}
	   }
	 }
};

/*快比通道的增强功能选择*/
function kb_content(id){
	document.getElementById("content_kb"+id).style.display="";
	document.getElementById("link"+id).style.color="#fff";
	document.getElementById('list_bg_'+id).className="list_bg_2";
	document.getElementById("link"+id).style.bgcolor="#fff";
    for(var j=1;j<=6;j++){
		 if(j!=id){
      		document.getElementById('content_kb'+j).style.display="none";
      		document.getElementById('link'+j).style.color="#000";
			document.getElementById('list_bg_'+j).className="list_bg_1";
			}
	}
};
/*-------参数详解--------*/
function hidediv(Name){
	document.getElementById(Name).style.display = '';
};
/*参数详解,显示，精简*/
function hidediv_(Name){
	var o=document.getElementById(Name);
	
	if(o.style.display=="none"){
		o.style.display ='';
		document.getElementById('tex2').style.display ='';
		document.getElementById('tex1').style.display ='none'
	}else{
		o.style.display ='none';
		document.getElementById('tex1').style.display ='';
		document.getElementById('tex2').style.display ='none'
	}
};