function disp_pr(pCnt, pVHkbn, pPrtn, pCateL, pCateS, pWeight,pWidth, pHeight, pPtnChk){
/*
	-------------------------------------------------------
	パラメータ
	-------------------------------------------------------
	pCnt	:表示するバナーの数
	pVHkbn	:縦横区分（0：横／1：縦）
	pPrtn	:パートナーの特定（0：不問）
	pCateL	:カテゴリ（大分類）指定（0：不問）
	pCateS	:カテゴリ（小分類）指定（0：不問）
	pWeight	:優先度ウェイト（0：不問）
	pWidth	:バナーの幅（必須）
	pHeight	:バナーの高さ（必須）
	pPtnChk	:パートナー重複チェック（0：考慮／1：不問）
	-------------------------------------------------------
*/

Point = new Array
	dsp = document.myForm.idx.value.split(",");
	ptn = document.myForm.ptn.value.split(",");

	for (idx in Group){
		tmp = Group[idx].split(",");
		if (pWidth != tmp[4] || pHeight != tmp[5]){
			Point[idx]=-10;
		} else {
			Point[idx]=Math.random();
			
			//	パートナーの特定	--------------------------
			if ((pPrtn != 0) && (tmp[0] != pPrtn))	Point[idx]=-1;
			//------------------------------------------------

			//	カテゴリ（大分類）指定	----------------------
			if ((pCateL != 0) && (tmp[1] != pCateL))	Point[idx]=-1;
			//------------------------------------------------

			//	カテゴリ（小分類）指定	----------------------
			if ((pCateS != 0) && (tmp[2] != pCateS))	Point[idx]=-1;
			//------------------------------------------------

			//	重複回避(表示済みバナー）	------------------
			for (idx2 in dsp){
				if (dsp[idx2] == idx)	Point[idx]=-1;
			}
			//------------------------------------------------

			//	優先順位指定	------------------------------
			if ((pWeight != 0) && (Point[idx] > 0))		Point[idx]=Point[idx] + (5-tmp[3])*(pWeight/100);
			//------------------------------------------------

			//	重複回避（表示済みパートナー）	--------------
			if (pPrtn == 0) {
				for (idx2 in ptn){
					if ((ptn[idx2] == tmp[0]) && (Point[idx] > 0))	Point[idx] *= .01;
				}
			}
			//------------------------------------------------
		}
	}



	//バナーの実表示	----------------------------------
	document.write('<table>');
	document.write('<tr>');
	
	for (idx2 = 0; idx2 < pCnt; idx2 ++){

		//表示バナー特定処理	--------------------------
		tMax=-1*(idx2+1);
		tIdx=-1;
		for (idx in Group){
			if (tMax < Point[idx]){
				tMax = Point[idx];
				tIdx = idx;
			}
		}
		//------------------------------------------------

		if (tMax < 0) break;

		//特定バナーの表示	------------------------------
		document.write('<td>');

//		document.write(idx2 + 1 + ":" + tIdx + "<BR>");
//		document.write(Group[tIdx] + "<BR>");

		document.write(Line1[tIdx]);
		document.write(Line2[tIdx]);
		if (document.URL.indexOf("\\") == -1){
			document.write(Line3[tIdx]);
		}
//		document.write('  ' + Point[tIdx]);
		document.write('</td>');
		//------------------------------------------------

		//縦／横表示の考慮	------------------------------
		if (pVHkbn == 1){
			document.write('</tr><tr>');
		}
		//------------------------------------------------



		//表示済みバナーのポイントを下げる	--------------
		Point[tIdx]--;
		//------------------------------------------------
		
		//重複表示回避の為の表示済みバナーのID保持	------
		dsp = document.myForm.idx.value;
		if (dsp != "")	dsp = dsp + ",";
		dsp = dsp + tIdx;
		document.myForm.idx.value = dsp;
		//------------------------------------------------



		//表示済みパートナー重複チェック	--------------
		if (pPtnChk == 0) {
			//表示済みパートナーのポイントを下げる	----------
			tmpPtn = Group[tIdx].split(",");
			for (idx in Group){
				tmp = Group[idx].split(",");
				if ((tmpPtn[0] == tmp[0]) && (idx !=tIdx)) Point[idx] -= .8;
			}
			//------------------------------------------------
			
			//重複表示回避の為の表示済みパートナーのID保持	--
			tmp = Group[tIdx].split(",");
			ptn = document.myForm.ptn.value;
			if (ptn != "")	ptn = ptn + ",";
			ptn = ptn + tmp[0];
			document.myForm.ptn.value = ptn;
			//------------------------------------------------
		}
		//------------------------------------------------
	}
	
	document.write('</tr>');
	document.write('</table>');
	//----------------------------------------------------
}


