2
function inc(at,al,w,h,mtb,mlr,c,px,cnt){
var incb="";
boxw="width:"+w+'px; ';
boxh="height:"+h+'px; ';
boxm="margin:"+mtb+'px '+mlr+'px; ';
boxbd="border:solid "+c+' '+px+'px; ';
var style_k=boxw+boxh+boxm+boxbd;
allmt="margin-top:"+at+'px; ';
allml="margin-left:"+al+'px; ';
allboxw="width:"+(mlr*2+w+px*2)+'px; ';
allboxh="height:"+(mtb+h*cnt+mtb*cnt+px*(cnt*2))+'px; ';
var style=allmt+allml+allboxw+allboxh+boxbd;
var ban=bana(w,h,cnt,style_k);
incb ='<div style="' + style +'">';
incb +=ban;
incb +='</div>';
document.write(incb);
//alert(incb);
}

function bana(w,h,cnt,style_k){
var imgurl=new Array();
var hp_url=new Array();

var imglist = new Array("http://www.exceed-group.com/banner/img/banner11.jpg","http://www.exceed-group.com/banner/img/banner12.jpg" );
var selectnum = Math.floor((Math.random() * 100)) % imglist.length;
imgurl[0] = imglist[selectnum];
hp_url[0]="http://www.exceed-co.jp/";

var imglist = new Array("http://www.exceed-group.com/banner/img/banner9.jpg","http://www.exceed-group.com/banner/img/banner10.jpg" );
var selectnum = Math.floor((Math.random() * 100)) % imglist.length;
imgurl[1] = imglist[selectnum];
hp_url[1]="http://www.nsmaker.net/";

var imglist = new Array("http://www.exceed-group.com/banner/img/banner1.jpg","http://www.exceed-group.com/banner/img/banner2.jpg" );
var selectnum = Math.floor((Math.random() * 100)) % imglist.length;
imgurl[2] = imglist[selectnum];
hp_url[2]="http://web.exceed-co.jp/";

var imglist = new Array("http://www.exceed-group.com/banner/img/banner3.jpg","http://www.exceed-group.com/banner/img/banner4.jpg" );
var selectnum = Math.floor((Math.random() * 100)) % imglist.length;
imgurl[3] = imglist[selectnum];
hp_url[3]="http://meishi.exceed-co.jp/";

var imglist = new Array("http://www.exceed-group.com/banner/img/banner5.jpg","http://www.exceed-group.com/banner/img/banner6.jpg" );
var selectnum = Math.floor((Math.random() * 100)) % imglist.length;
imgurl[4] = imglist[selectnum];
hp_url[4]="http://design.exceed-co.jp/";

var imglist = new Array("http://www.exceed-group.com/banner/img/banner7.jpg","http://www.exceed-group.com/banner/img/banner8.jpg" );
var selectnum = Math.floor((Math.random() * 100)) % imglist.length;
imgurl[5] = imglist[selectnum];
hp_url[5]="http://www.exceed-group.com/pc/";





var ban="";
for(i=0;i<cnt;i++){
ban+='<div style="' + style_k +'">';
ban+='<a href="'+hp_url[i]+'">';
ban+='<img src="'+ imgurl[i] + '" width='+ w +' height='+ h +' border="0">';
ban+='</a></div>';
}
    return ban;
}
