function checkis(id){
	for(i=1;i<=7;i++){
		$("#recent"+i).hide();
	}
	$("#"+id).show();
}
function search(url){
	value=encodeURI($('#searchGo').val());
	if(value){
		window.location=url+'search/'+value+'/all-1';
	}
}
function getdata(obj){
	var value1 = obj.value;
	$.ajax({
		type: 	"GET",
 		url: 	"admin/return.php",
 		data:   "action=bookbegin&value1="+value1,
 		success: function(msg){
			alert(msg);
 			//$("#pcontent").html(msg);
 		 } 		
	});
}
/*
	@Ê×Ò³ÐÂÎÅ·ÖÒ³
	@add by yingfeng_yue!
*/
function news_change(page,allpage){
		var i;
		for(i=1;i<=allpage;i++){
		$("#page"+i)[0].className = "";
		}
		$("#page"+page)[0].className = "click";
		$.ajax({
		type: 	"GET",
 		url: 	"./news",
 		data:   "action=newslist&page="+page,
 		success: function(msg){
			//alert(msg);
 			$("#newslist").html(msg);
			//alert($('.listbox').html());
 		 } 		
	});
}

function change_chapter(bookid,page){
	//alert(bookid);
	//alert(page);

		$.ajax({
		type: 	"GET",
 		url: 	"/news",
 		data:   "action=chapter&page="+page+"&bookid="+bookid,
 		success: function(msg){
			//alert(msg);
 			$("#chapter").html(msg);
			//alert($('.listbox').html());
 		 } 		
	});
}

function change_volume(bookid,page){
	//alert(bookid);
	//alert(page);
		$.ajax({
		type: 	"GET",
 		url: 	"../news",
 		data:   "action=volume&page="+page+"&bookid="+bookid,
 		success: function(msg){
			//alert(msg);
 			$("#volume").html(msg);
			//alert($('.listbox').html());
 		 } 		
	});
}