function RandomAd(x) {
f = 3;

var Num = new Array(f - 1);
var Chk = new Array(f - 1);
var Mess = new Array(f - 1);

//***‚±‚±‚ÉL•\Ž¦HTML‚Ì”z—ñì¬
Mess[0] = 'y“Œ‹ž“sç‘ã“c‹æz<br /><a href="http://www.sigyo.net/kudou/" target="_top"><img src="http://www.sigyo.net/kudou/img/110px.jpg" alt="H“¡@ˆê˜Y" width="110" height="110" border="0" /></a><br />H“¡ˆê˜Y‘Û“Á‹–Ž––±Š';
Mess[1] = 'y“Œ‹ž“s’†‰›‹æz<br /><a href="http://www.sigyo.net/list/archives/benrishi-matsui-shigeru.html" target="_top"><img src="http://www.sigyo.net/matsuipat/img/110px.jpg" alt="¼ˆä –Î" width="110" height="110" border="0" /></a><br />¼ˆä“Á‹–Ž––±Š';
Mess[2] = 'y“Œ‹ž“sç‘ã“c‹æz<br /><a href="http://www.sigyo.net/kurihara-patent/" target="_top"><img src="http://www.sigyo.net/kurihara-patent/img/110px.jpg" alt="ŒIŒ´OK" width="110" height="110" border="0" /></a><br />ŒIŒ´“Á‹–Ž––±Š';

//***
for (i=0;i<f;i++) //
{
	Num[i] = Math.floor(Math.random()*f);
	if (Chk[Num[i]]  == 1){
		while(Chk[Num[i]] == 1){
		Num[i] = Math.floor(Math.random()*f);
			}
			Chk[Num[i]] = 1;
		}
		else {
			Chk[Num[i]] = 1;
		}
	}
	

	for (i=0;i<x;i++) //
	{
		document.write('<div class="samurai">');
		document.write(Mess[Num[i]]);
		document.write("</div>");
	}
document.write('<div class="clear"></div>');
}
