// JavaScript Document
/*忽略 js error */
function  killErrors(){   
  return  true;}   
window.onerror   =   killErrors;   
 
/*
window.onload=function(){
  var o=document.getElementById('div0');
  var t=setInterval(function(){
  	o.style.display='block';
    o.style.top=o.offsetTop+1+'px';
	//o.style.marginTop='0px';
    if(o.offsetTop>=0){
	  o.style.top=0;
	  o.style.marginTop='0px';
      clearInterval(t);
    }
  },15);
} 
*/

//背投广告代码
/*
var time_out = 35000;
function log_start()
{
window.miman.style.visibility="visible";
window.setTimeout( "real_log_start()", time_out ); 
return false;
}
function real_log_start()
{
window.miman.style.display="none";
}
*/

//var msgall="请在此处输入您感兴趣的项目名称"
var msg  = "输入项目名称，点击 “找一下” 。";
var interval = 200 
var spacelen = 200; 
var space10=" "; 
var seq=0; 
var cont=true

function checklogin(form)
{
	if (form.name.value=="")
	{alert('提示：请填写您的会员名');
	form.name.focus()
	return false;}
	if (form.pass.value=="")
	{alert('提示：请填写登陆密码');
	form.pass.focus()
	return false;}
return true;
}
/*滑动门js*/
function tab(tabId,tabC){
		var len =document.getElementById('getId').getElementsByTagName('li').length;
		for(i=1; i <= len; i++){
			if ("tabId"+i==tabId){
				if(i==5){
					document.getElementById(tabId).className="current1";
					}
				else{
					document.getElementById(tabId).className="current";}
			}else{
				if(i==5){
				document.getElementById("tabId"+i).className="other";}
				else{
				document.getElementById("tabId"+i).className="other";}
			}
			if ("tabC"+i==tabC){
				document.getElementById(tabC).className="show";
			}else{
				document.getElementById("tabC"+i).className="hidden";
			}
		}
	}

function chrank_layer(n,s){
		if (s == 'qz'){
			if (n == '1'){
				document.getElementById('rank_list2').style.display = 'none';
				document.getElementById('rank_list1').style.display = 'block';
				document.getElementById('ranktab1').className = 'l_on'
				document.getElementById('ranktab2').className = 'r_off'
			}else if (n == '2'){
				document.getElementById('rank_list1').style.display = 'none';
				document.getElementById('rank_list2').style.display = 'block';
				document.getElementById('ranktab1').className = 'l_off'
				document.getElementById('ranktab2').className = 'r_on'
			}
		}
		else if (s=='buy'){
			if (n == '1'){
				document.getElementById('list_content2').style.display = 'none';
				document.getElementById('list_content1').style.display = 'block';
				document.getElementById('list1').className = 'l_on'
				document.getElementById('list2').className = 'r_off'
			} else if (n == '2'){
				document.getElementById('list_content1').style.display = 'none';
				document.getElementById('list_content2').style.display = 'block';
				document.getElementById('list1').className = 'l_off'
				document.getElementById('list2').className = 'r_on'
			}
		}
}
				var tab_random = Math.floor(Math.random()*2+1);
				chrank_layer(tab_random);