';
exwin();
function exwin() {
nwin = window.open("", "CAIMST-JSH","width=800,height=600");
nwin.document.open();
nwin.document.write("
");
nwin.document.writeln("CAIMST-JSH");
nwin.document.writeln("");
nwin.document.write(R);
nwin.document.write("");
nwin.document.close();
}
}//prvのおわり
//コース保存 ------------------------------------------------------------------
function save(){
nwin = window.open("", "CAIMST-JSH","width=800,height=600");
nwin.document.open();
nwin.document.write("");
nwin.document.writeln("CAIMST-JSH");
nwin.document.writeln("");
nwin.document.write("コース保存");
nwin.document.write("");
nwin.document.close();
}
//編集画面保存 -----------------------------------------------------------------
function edt(){
for(var j=1;j<=jz;j++){
}
nwin = window.open("", "CAIMST-JSH EDITOR","width=800,height=600");
nwin.document.open();
nwin.document.write("");
nwin.document.writeln("CAIMST-JSH");
nwin.document.writeln("");
nwin.document.write("エディター保存");
nwin.document.write("");
nwin.document.close();
}
function spins(){
var j0=parseInt(document.getElementById("from").value);
var j1=parseInt(document.getElementById("to").value);
if(j199){jlast=99}
for(z=j1+1;z<=jlast;z++){
for(k=1;k<=11;k++){
if(k<10){kk="0"+k.toString()} else{kk=k.toString()}
if(z<10){zz="0"+z.toString()} else{zz=z.toString()}
var x="cell" + zz + kk.toString();
target=document.getElementsByName(x);
target[0].value=hyo[z-j1+j0-1][k];
}
}
}// spins のおわり
function bs(){ //行削除
var j0=parseInt(document.getElementById("from").value);
var j1=parseInt(document.getElementById("to").value);
if(j199){jlast=99}
for(z=j0;z<=jlast;z++){
for(k=1;k<=11;k++){
if(k<10){kk="0"+k.toString()} else{kk=k.toString()}
if(z<10){zz="0"+z.toString()} else{zz=z.toString()}
var x="cell" + zz + kk.toString();
target=document.getElementsByName(x);
target[0].value=hyo[z+j1-j0+1][k];
}
}
}
function cp(){
//問題数
while(j<98){
j++;
if(ji(j,4)==""){break;}
}
jz=j-1;
//表を配列へ読み込み
var j0=parseInt(document.getElementById("from").value);
var j1=parseInt(document.getElementById("to").value);
var z;
var k;
for(z=j0;z<=jz;z++){
hyo[z]=new Array();
for(k=1;k<=11;k++){
hyo[z][k]=ji(z,k);
}
}
}
function cut(){
//問題数
while(j<98){
j++;
if(ji(j,4)==""){break;}
}
jz=j-1;
//表を配列へ読み込み
var j0=parseInt(document.getElementById("from").value);
var j1=parseInt(document.getElementById("to").value);
var z;var zz;
var k;var kk;
var target;
for(z=j0;z<=jz;z++){
hyo[z]=new Array();
for(k=1;k<=11;k++){
hyo[z][k]=ji(z,k);
}
}
//コピーした表を消去
for(z=j0;z<=j1;z++){
for(k=1;k<=11;k++){
if(k<10){kk="0"+k.toString()} else{kk=k.toString()}
if(z<10){zz="0"+z.toString()} else{zz=z.toString()}
var x="cell" + zz + kk.toString();
target=document.getElementsByName(x);
target[0].value="";
}
}
}
function del(){ //行消去
var j0=parseInt(document.getElementById("from").value);
var j1=parseInt(document.getElementById("to").value);
if(j199){jlast=99}
for(z=jto;z<=jlast;z++){
for(k=1;k<=11;k++){
if(k<10){kk="0"+k.toString()} else{kk=k.toString()}
if(z<10){zz="0"+z.toString()} else{zz=z.toString()}
var x="cell" + zz + kk.toString();
target=document.getElementsByName(x);
// alert(x);
target[0].value=hyo[j0+z-jto][k];
}
}
}
function ji(j,i){
if(i<10){ii="0"+i.toString()} else{ii=i.toString()}
if(j<10){jj="0"+j.toString()} else{jj=j.toString()}
z=document.myForm["cell" + jj + ii.toString()].value;
return z;
}