function dsp_ad()
{
	document.write(SelectRandomAd());
}

function SelectRandomAd()
{
	var adIdxAry = new Array("0","0","0","1","1","1","2","2","2");

	var adDspAry = new Array(3);

	adDspAry[0] = "<a href=\"https://www.tenshoku-mapx.com/Campaign/Diagnosis/Question.aspx?ad=" +
			location.hostname +
			"&adCd=101\" target=\"_blank\">" +
			"<img src=\"http://www.sigoto-nayami.jp/img/common/banner/diagnosis_banner.gif\"" +
			" alt=\"5分でわかる、きっと見える！中小・ベンチャー適性無料診断実施中！\" border=\"0\">" +
			"</a>";
	
	adDspAry[1] = "<a href=\"http://www.tenshoku-mapx.com/index.aspx?ad=" +
			location.hostname +
			"&adCd=102\" target=\"_blank\">" +
			"<img src=\"http://www.sigoto-nayami.jp/img/common/banner/mapx_banner.gif\"" +
			" alt=\"有名転職サイトの求人は、あなたのためのものでしたか？あなたが大切にされる転職サイト、転職mapx(マップクロス)\" border=\"0\">" +
			"</a>";
	
	adDspAry[2] = "<a href=\"https://www.tenshoku-mapx.com/Campaign/200806/index.aspx?ad=" +
			location.hostname +
			"&adCd=103\" target=\"_blank\">" +
			"<img src=\"http://www.sigoto-nayami.jp/img/common/banner/campaign_banner.gif\"" +
			" alt=\"5分で1万円のチャンス！梅雨こそ転職応援キャンペーン、実施中。\" border=\"0\">" +
			"</a>";
	
	var dspIdx = Math.floor(Math.random()*adIdxAry.length);
	var dspAd = adDspAry[adIdxAry[dspIdx]];
	
	return dspAd;
}