// リンクをランダムピックアップ
function writeRandomPickupLinkList02() {
// ['URL', 'リンク文囓・, '属性値']
// ↑をひとつのまとまりとして、カンマで区切ってください。
// 最後の['URL', 'リンク文囓・, '属性値']の後に、カンマは不要です。
// ['URL', 'リンク文囓・, '属性値']の数はいくつでも可能です。
// 属性値を設定したくない場合は、''としてください(例1)。
// 例1）['http://○○.jugem.cc/?eid=○','○○○○', '']
// 例2）['http://○○.jugem.cc/?eid=○','○○○○', 'class="test"']
var list = [
['/cmp_landing/?cmp_landing=argo','<img src="/topimg/cmp/logo_argo.gif" alt="" height="55" width="118" border="1">', '組込み系を得意とする同社がエンジニアを積極採用'],
['/cmp_landing/?cmp_landing=biomet','<img src="/topimg/cmp/logo_biomet.gif" alt="" height="55" width="118" border="1">', '整形外科分野世界4位の同社がシェアアップのため大募集'],
['/cmp_landing/?cmp_landing=dyflex','<img src="/topimg/cmp/logo_dyflex.gif" alt="" height="55" width="118" border="1">', 'ウレタン防水のリーディングカンパニー'],
['/cmp_landing/?cmp_landing=orix','<img src="/topimg/cmp/logo_orix.gif" alt="" height="55" width="118" border="1">', '総合リース国内シェアＮＯ．１企業'],
['/cmp_landing/?cmp_landing=sojitz','<img src="/topimg/cmp/logo_sojitz.gif" alt="" height="55" width="118" border="1">', '海外取引を含む与信管理業務経験者急募'],
['/cmp_landing/?cmp_landing=stryker','<img src="/topimg/cmp/logo_stryker.gif" alt="" height="55" width="118" border="1">', '人工関節分野世界2位の同社が営業を増員']
//['/cmp_landing/?cmp_landing=mixing','<img src="/topimg/cmp/logo_mixing.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 != 2) ? 'class="vline"' : '';
	document.write('<td ' + cl_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++;
}



}
