var kazu = 9; // データ数
var hyouji = 2; // 表示データ数
hako = new Array(kazu);
for (i=0;i<=kazu;i++) {hako[i]=0;} // チェックフラグ初期化

// random
jmp = new Array();
anc = new Array();
text = new Array();
url = new Array();
imp = new Array();

// to link
jmp[0] = "/redirect/index.php?id=adecco";
jmp[1] = "/redirect/index.php?id=rikunabi";
jmp[2] = "/redirect/index.php?id=r-staffing";
jmp[3] = "/redirect/index.php?id=indivision-haken";
jmp[4] = "/redirect/index.php?id=panasonic";
jmp[5] = "/redirect/index.php?id=fujistaff";
jmp[6] = "/redirect/index.php?id=ida";
jmp[7] = "/redirect/index.php?id=inte";
jmp[8] = "/redirect/index.php?id=type_it";


// anchor text
anc[0] = "派遣ならアデコ";
anc[1] = "リクナビ派遣 リクルートの人材派遣";
anc[2] = "リクルートスタッフィングの派遣";
anc[3] = "インディビジョン 派遣";
anc[4] = "エンジニアの転職・派遣ならパナソニックエクセルスタッフ";
anc[5] = "人材派遣会社のランスタッド";
anc[6] = "IDA アパレルで派遣登録";
anc[7] = "インテリジェンスの派遣";
anc[8] = "＠typeのIT派遣《公式サイト》";


// text
text[0] = "日本最大級の仕事情報と充実のサポート体制で安心";
text[1] = "リクルートが運営。紹介予定派遣や新卒派遣もあり。";
text[2] = "活かせる経験！あなたの希望にあったお仕事きっと見つかる♪";
text[3] = "日本最大級の派遣情報。一般事務時給1,650円以上、交通費支給など。";
text[4] = "派遣先はパナソニックグループが多く、福利厚生も充実";
text[5] = "就業時間毎にポイントが貯まる。貯まったポイントで買い物ができる。";
text[6] = "憧れのブランドで働く。新しい職場選びをIDAで。メディアに多数掲載";
text[7] = "無料登録！安心のサポート体制、大手・優良企業のお仕事をご紹介します";
text[8] = "長く働きたい、正社員を目指したい方にピッタリの派遣会社です。";


// url
url[0] = "www.adecco.co.jp";
url[1] = "haken.rikunabi.com";
url[2] = "www.r-staffing.co.jp";
url[3] = "www.indivision.jp";
url[4] = "tech-excel.panasonic.co.jp";
url[5] = "randstad.co.jp";
url[6] = "www.ida-mode.com";
url[7] = "haken.inte.co.jp";
url[8] = "haken-it.type.jp";


document.open();
document.write("<div class='ad'><p>PR</p>");
//document.write("<dl><dt><a href='/redirect/index.php?id=adecco' target='_blank'>派遣ならアデコ</a></dt><dd>日本最大級の仕事情報と充実のサポート体制で安心</dd><dd class='url'>www.adecco.co.jp</dd></dl>");

if(hyouji<=kazu) {
for (i=1;i<=hyouji;i++) {
do {
var rand = Math.floor(Math.random()*kazu); 
}
while ( 0<hako[rand] );
//n = Math.floor(Math.random()*jmp.length);
document.write("<dl><dt><a href='"+jmp[rand]+"' target='_blank'>");
document.write(""+anc[rand]+"");
document.write("</a></dt>");
document.write("<dd>"+text[rand]+"</dd>");
document.write("<dd class='url'>"+url[rand]+"</dd>");
document.write("</dl>");
hako[rand]=+1;
}
}
document.write("</div>");
document.close();
