/**
 * 18900 Javascript File
 * Author: W.Wanping(16199@163.com)
**/


//链接变色
function fuckErrors() {
return true;
}
window.onerror = fuckErrors;

function mOver(){
document.all.tags("a").item(0).style.textDecoration="none";
}


function setTab(name,cursel,n){
for(i=0;i<n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}


function show_rmd(rmd_id){
	var httpr = Ajax.createXMLHttpRequest();
	httpr.open('GET', 'rmd_cate.asp?rmd_id='+rmd_id+'&t='+Math.random(), true);
	httpr.onreadystatechange = function(){
		if(httpr.readyState == 4){
			if(httpr.status == 200){
				document.getElementById('rmd_content').innerHTML = httpr.responseText; 
				if(document.getElementById('four'+tmp_rmd_id)){
					document.getElementById('four'+tmp_rmd_id).className = '';
				}
				document.getElementById('four'+rmd_id).className = 'hover';
				tmp_rmd_id = rmd_id;
			}
		}
	}
	httpr.send(null);
}

//滑动门
function tabit(btn, n){
	var idname = new String(btn.id);
	var s = idname.indexOf("_");
	var e = idname.lastIndexOf("_") + 1;
	var tabName = idname.substr(0, s);
	var id = parseInt(idname.substr(e, 1));
	for (i=1; i<n; i++){
		document.getElementById(tabName + "_div_" + i).style.display = "none"; 
		document.getElementById(tabName + "_btn_" + i).className = '';
	};	
	document.getElementById(tabName+"_div_"+id).style.display = "block"; 
	btn.className = "postion";
};




