function judgeType(num){
		document.getElementById('H1').value = num;
		ShowTopPic(num);
		ChangePage('1');
		//var str = "888888888"+num;
		//alert(str);
		//ShowPic(parseInt(str));
}
function ChangePage(p)
{
		var PageNo = parseInt(p);
		var ClassID =document.getElementById("H1").value;
		var acid = parseInt(ClassID);
		var PageSize = document.getElementById("H2").value;
		var ps =  parseInt(PageSize);
		BHSoft.BHWeb.WebUI.Ajax.Pager.GetProduct2(acid,ps,PageNo,get_CallBack);
}
function get_CallBack(rel){
		if(rel.value!=""){
			document.getElementById("testPage").innerHTML=rel.value;
		}
		else
		{
			document.getElementById("testPage").innerHTML="";	
			return false;
		}			
	}
	
		//start 显示产品头部图片
function ShowTopPic(classID)
{
		var ClassID =parseInt(classID);
		BHSoft.BHWeb.WebUI.Ajax.Pager.GetTopPicture(ClassID,getShowTopPic_CallBack);
}
function getShowTopPic_CallBack(rel){
		//alert(rel.value);
		if(rel.value!=""){
			document.getElementById("topPic").innerHTML=rel.value;
		}
		else
		{
			document.getElementById("topPic").innerHTML="";	
			return false;
		}			
	}		
	//end结束显示产品头部图片
	
			//start 显示产品头部图片2
function ShowTopPic2(ProductID)
{
	var productID =parseInt(ProductID);
	BHSoft.BHWeb.WebUI.Ajax.Pager.GetTopPictureByClickProdut(productID,getShowTopPic2_CallBack);
}
function getShowTopPic2_CallBack(rel){
	if(rel.value!=""){
		document.getElementById("topPic").innerHTML=rel.value;
	}
	else
	{
		document.getElementById("topPic").innerHTML="";	
		return false;
	}			
	}		
	//end结束显示产品头部图片2
	
	//start 显示产品图片
function ShowPic(numID)
{
		var numid = parseInt(numID);
		ShowTopPic2(numid);
		ShowWebUrl(numid);
		BHSoft.BHWeb.WebUI.Ajax.Pager.GetProductPicture(numid,getPic_CallBack);
}
function getPic_CallBack(rel){
		if(rel.value!=""){
			document.getElementById("picP").innerHTML=rel.value;
		}
		else
		{
			document.getElementById("picP").innerHTML="";	
			return false;
		}			
	}		
	//end结束显示产品图片
	
	
	
	
		//start 显示weburl
function ShowWebUrl(numID)
{
		var numid = parseInt(numID);
		BHSoft.BHWeb.WebUI.Ajax.Pager.ShowWebUrl(numid,getwWebUrl_CallBack);
}
function getwWebUrl_CallBack(rel){
		if(rel.value!=""){
			document.getElementById("weburl").innerHTML=rel.value;
		}
		else
		{
			document.getElementById("weburl").innerHTML="";	
			return false;
		}			
	}		
	//end结束显示weburl
	
			//start 上下页
function ShowPrevAndNext(numID)
{
		var numid = parseInt(numID);
		ShowTopPic2(numid);
		ShowWebUrl(numid);
		ShowPic(numID);
		BHSoft.BHWeb.WebUI.Ajax.Pager.GetPrevAndNext(numid,getPrevAndNext_CallBack);
}
function getPrevAndNext_CallBack(rel){
		if(rel.value!=""){
			document.getElementById("PrevAndNext").innerHTML=rel.value;
		}
		else
		{
			document.getElementById("PrevAndNext").innerHTML="";	
			return false;
		}			
	}		
	
