function insertTab(changeid,cimg1,cimg2,cimg3,cimg4,cimg5,type,w,h,a1,a2,a3,a4,a5,t1,t2,t3,t4,t5){
if (w <130){window.alert("ボックスの幅は130PX以上に設定してください");}
imgw = w - 10;
imgh = h - 10;
tab_all_w   = 80;
title_w   = w - tab_all_w  -2;
view_w   = w - 10;
var document_line = new Array();
document_line[0] = '<div id="tab_box1"   style="border:1px solid #808080;width:'+ w +'px;height:25px;margin-top:5px;">';
document_line[1] = '<div id="' + changeid +'_title"  style="height:25px;margin:0px;padding-top:7px;text-align:center;font-size:10px;float:left;width:'+ title_w +'px;">広告領域</div>';
document_line[2] = '<div class="tab_all" style="width:'+ tab_all_w +'px;height:25px;float:left;">';
document_line[3] = '<div class="tab_cnt" style="margin:6px 3px 0 0px;float:left;"><a href="javascript:outHTML()" onMouseOver="javascript:outHTML('+"'"+ changeid +"'"+",'"+ cimg1 +"'" +",'"+ type +"'"+",'"+ imgw +"'"+",'"+ imgh +"'"+",'"+ a1 +"'"+",'"+ t1 +"'"+');" onFocus="this.blur()"><img src="img/n1.gif" border="0"></a></div>';
document_line[4] = '<div class="tab_cnt" style="margin:6px 3px 0 0px;float:left;"><a href="javascript:outHTML()" onMouseOver="javascript:outHTML('+"'"+ changeid +"'"+",'"+ cimg2 +"'" +",'"+ type +"'"+",'"+ imgw +"'"+",'"+ imgh +"'"+",'"+ a2 +"'"+",'"+ t2 +"'"+');" onFocus="this.blur()"><img src="img/n2.gif" border="0"></a></div>';
document_line[5] = '<div class="tab_cnt" style="margin:6px 3px 0 0px;float:left;"><a href="javascript:outHTML()" onMouseOver="javascript:outHTML('+"'"+ changeid +"'"+",'"+ cimg3 +"'" +",'"+ type +"'"+",'"+ imgw +"'"+",'"+ imgh +"'"+",'"+ a3 +"'"+",'"+ t3 +"'"+');" onFocus="this.blur()"><img src="img/n3.gif" border="0"></a></div>';
document_line[6] = '<div class="tab_cnt" style="margin:6px 3px 0 0px;float:left;"><a href="javascript:outHTML()" onMouseOver="javascript:outHTML('+"'"+ changeid +"'"+",'"+ cimg4 +"'" +",'"+ type +"'"+",'"+ imgw +"'"+",'"+ imgh +"'"+",'"+ a4 +"'"+",'"+ t4 +"'"+');" onFocus="this.blur()"><img src="img/n4.gif" border="0"></a></div>';
document_line[7] = '<div class="tab_cnt" style="margin:6px 0px 0 0px;float:left;"><a href="javascript:outHTML()" onMouseOver="javascript:outHTML('+"'"+ changeid +"'"+",'"+ cimg5 +"'" +",'"+ type +"'"+",'"+ imgw +"'"+",'"+ imgh +"'"+",'"+ a5 +"'"+",'"+ t5 +"'"+');" onFocus="this.blur()"><img src="img/n5.gif" border="0"></a></div>';
document_line[8] = '</div></div>';
document_line[9] = '<div id="tab_box2"  style="border-top:1px solid #808080;border-bottom:1px solid #808080;border-left:1px solid #808080;border-right:1px solid #808080;width:'+ w +'px;">';
document_line[10] = '<div id="' + changeid + '" class="image_view" style="margin:3px 4px;width:'+ view_w +'px;">';
document_line[11]= '<a href="'+a1  +'"><img src="'+ cimg1 + '" width='+ imgw +' height='+ imgh +' border="0"></a>';
document_line[12]= '</div></div>';
for(i=0;i<13;i++){
document.write(document_line[i]);
}
}
