var kazu = 6; // データ数
var hyouji = 3; // 表示データ数
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();

// to link
jmp[0] = "/cashing/redirect/index.php?id=atloan";
jmp[1] = "/cashing/redirect/index.php?id=noloan";
jmp[2] = "/cashing/redirect/index.php?id=promise";
jmp[3] = "/cashing/redirect/index.php?id=o-select";
jmp[4] = "/cashing/redirect/index.php?id=acom";
jmp[5] = "/cashing/redirect/index.php?id=pocketbank";
jmp[6] = "";
jmp[7] = "";
//jmp[8] = "";
//jmp[9] = "";
//jmp[10] = "/cashing/redirect/index.php?id=rakuten";
//jmp[11] = "";
//jmp[12] = "";
//jmp[12] = "/cashing/redirect/index.php?id=mobit";

// anchor text
anc[0] = "アットローン 公式サイト";
anc[1] = "1週間無利息+9.5％〜18.0％";
anc[2] = "プロミス≪公式サイト≫";
anc[3] = "オーナーズ セレクト カード";
anc[4] = "「アコム」新規申込はこちらから";
anc[5] = "ポケットバンク 公式サイト";
anc[6] = "";
anc[7] = "";
//anc[8] = "";
//anc[9] = "";
//anc[10] = "楽天カードローン公式HP";
//anc[11] = "";
//anc[12] = "";
//anc[12] = "モビット / 公式サイト";

// text
text[0] = "三井住友銀行グループのカードローン 年率9.5％〜18.0％。自動審査で5秒で回答";
text[1] = "新生銀行グループのノーローンなら1週間無利息で借りれます。";
text[2] = "≪三井住友銀行グループ≫プロミスならメールで即回答。当日融資可能";
text[3] = "新生銀行グループのシンキが提供する法人代表者・個人事業主向けカードローン";
text[4] = "カンタン５項目入力の３秒診断！お申込当日の融資も可能です";
text[5] = "新規ご契約の方は30日間無利息！24時間お申込OK／ポケットバンク";
text[6] = "";
text[7] = "";
//text[8] = "";
//text[9] = "";
//text[10] = "新金利6.9%から!驚きの最大500万円。 楽天マイワンがさらに低金利で新登場";
//text[11] = "";
//text[12] = "";
//text[12] = "モビットの新規お申込みはこちら 融資限度額300万円 年利15.0～18.0%";

// url
url[0] = "at-loan.jp";
url[1] = "noloan.com";
url[2] = "www.cyber.promise.co.jp";
url[3] = "o-select.jp/";
url[4] = "pr.acom.jp";
url[5] = "www.pocketbank-e.com";
url[6] = "";
url[7] = "";
//url[8] = "";
//url[9] = "";
//url[10] = "rakuten-credit.co.jp";
//url[11] = "";
//url[12] = "";
//url[12] = "www.mobit.ne.jp";

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("<p class='ads'><a href='"+jmp[rand]+"' target='_blank'><span class='adsLink'>");
document.write(""+anc[rand]+"");
document.write("</span><br />");
document.write("<span class='adsTedt'>"+text[rand]+"</span><br />");
document.write("<span class='adsUrl'>"+url[rand]+"</span>");
document.write("</a></p>");
hako[rand]=+1;
}
}