// リンクをランダムピックアップ
function writeRandomPickupLinkList01() {
// ['URL', 'リンク文囓・, '属性値']
// ↑をひとつのまとまりとして、カンマで区切ってください。
// 最後の['URL', 'リンク文囓・, '属性値']の後に、カンマは不要です。
// ['URL', 'リンク文囓・, '属性値']の数はいくつでも可能です。
// 属性値を設定したくない場合は、''としてください(例1)。
// 例1）['http://○○.jugem.cc/?eid=○','○○○○', '']
// 例2）['http://○○.jugem.cc/?eid=○','○○○○', 'class="test"']
var list = [
['/cmp_landing/?cmp_landing=zenrin','<img src="/topimg/cmp/logo_zenrin.gif" alt="" height="55" width="118" border="1">', '地図業界のリーディングカンパニー、カーナビソフトでも先行'],
['/cmp_landing/?cmp_landing=mitsubishi-hi','<img src="/topimg/cmp/logo_mitsubishi-hi.gif" alt="" height="55" width="118" border="1">', '世界の三菱重工が様々な職種を全国で募集'],
['/cmp_landing/?cmp_landing=olympus','<img src="/topimg/cmp/logo_olympus.gif" alt="" height="55" width="118" border="1">', '消化器内視鏡で世界シェア７０％を誇る一兆円企業'],
['/cmp_landing/?cmp_landing=oki','<img src="/topimg/cmp/logo_oki.gif" alt="" height="55" width="118" border="1">', '技術力に定評の通信機器老舗メーカー'],
['/cmp_landing/?cmp_landing=kyocera','<img src="/topimg/cmp/logo_kyocera.gif" alt="" height="55" width="118" border="1">', '半導体用セラミックパッケージでは世界一'],
['/cmp_landing/?cmp_landing=keyence','<img src="/topimg/cmp/logo_keyence.gif" alt="" height="55" width="118" border="1">', '「世界初」「業界初」など高付加価値に特化した企業']
];

// 表ｦするリンクの数
var listNum = 2;

// リンクをクリックした際に、別ウインドウで開くかどうか
// var isBlank = 0：別ウインドウで開かない
// var isBlank = 1：別ウインドウで開く
var isBlank = 0;

// ************ 設定ここまで **************
var selectedId = 0;
var k = 0;
var newList = list;
var tempList = null;
var target = (isBlank == 0) ? '' : ' target="_blank"';
var att = '';

if (list.length < listNum) {
	listNum = list.length;
}
	

//var cli = 1;
while (0 < listNum) {
	
	k = 0;

	selectedId = Math.floor(Math.random() * newList.length);
	//att = (newList[selectedId][2] != '') ? ' ' + newList[selectedId][2] : '';
	
	//<td><img src="topimg/logo_argo.gif"><p>あああああああああああああああ</p></td>

	//var cl_vline = (cli != 4) ? 'class="vline"' : '';
	document.write('<td class="vline" width="118px">');
	//リンク
	document.write('<a href="' + newList[selectedId][0] + '"' + target + att + '>');
	//画像
	document.write(newList[selectedId][1]);
	document.write('</a>');
	//文章
	document.write('<a href="' + newList[selectedId][0] + '"' + target + att + '>');
	document.write('<p>' + newList[selectedId][2] + '</p>');
	document.write('</a>');
	
	document.write('</td>');

	//
	listNum--;
	tempList = new Array(listNum);

	//
	for (i = 0; i < newList.length; i++) {
		if (i != selectedId) {
			tempList[k] = newList[i];
			k++;
		}
	}
	
	newList = null;
	newList = tempList;
	//cli++;
}



}
