function sign(path,artcid,isSign,title) {
	var XmlHttp=new ActiveXObject("Microsoft.XMLhttp");
    XmlHttp.Open("POST",path+"/templates/show_data/checkArticle.jsp?artcid="+artcid+"&isSign="+isSign+"&title="+title,true);
	XmlHttp.send(null);
	XmlHttp.onreadystatechange = function () {
		if (XmlHttp.readyState == 4) {
			var a =XmlHttp.responseText.replace(/\s+/g, "");
			if(a==1)(
				alert("该文件您已签阅成功！")
			)
		}
	};
}
function showTab(name, num, id) {
	for (i = 1; i <= num; i++) {
		document.getElementById(name + i).style.display = "none";
	}
	document.getElementById(name + id).style.display = "block";
}
function ContentSize(size) {
	var obj = document.all.article;
	obj.style.fontSize = size + "px";
}
function browseCount(path, id) {
	var xmlHttp;
	try {
   // Firefox, Opera 8.0+, Safari
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e) {
  // Internet Explorer
		try {
			xmlHttp = new XMLHttpRequest();
		}
		catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e) {
				alert("\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301AJAX\uff01");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange = function () {
		if (xmlHttp.readyState == 4) {
			document.getElementById("browseCount").firstChild.nodeValue = xmlHttp.responseText.replace(/\s+/g, "");
		}
	};
	xmlHttp.open("GET", path + "/templates/show_data/browseCount.jsp?id=" + id, true);
	xmlHttp.send(null);
}
function showTab1(num,id) {
	for (i = 1; i <= num; i++) {
		document.getElementById("sp" + i).style.display = "none";
		document.getElementById("spt" + i).className = "tag_title4";
	}
	document.getElementById("spt" + id).className = "tag_title5";
	switch(id){
		case 1:
			document.getElementById("spt1").className = "menu0";
			break;
		case 2:
			document.getElementById("spt2").className = "tag_title8";
			break;
		case 6:
			document.getElementById("spt6").className = "tag_title7";
			break;
		default :
		document.getElementById("spt" + id).className = "tag_title5";
	}
	document.getElementById("sp" + id).style.display = "block";
}


