odanf=0;
odan2f=0;
countg=0;
function odan(flg){
if (document.form2.elements[9].checked){
odanf=1;
odan2f=1;
}
else{
odanf=1;
}
m("test:1234567890");
}
function Rev(str){
odanf=2;
m(str);
}

function shu(str){
countg++;
odanf=2;
m(str);
}

//m()Jn
function m(str){
if (document.form2.elements[9].checked){
odan2f=1;
}
if(odanf!=2){
n=str.length;
s=str.indexOf(":",0);
dt1=str.substr(0,s);
s1=s+1;
n2=n-s1;
dt2=str.substr(s1,n2);
dt2x0=dt2.substr(0,2);
if(dt2x0=="10"){
dt2x1="X";
}
else{
dt2x1=dt2.substr(1,1);
}

dt2x2=dt2.substr(2,1);
dt2x3=dt2.substr(3,1);
dt2x4=dt2.substr(4,1);
dt2x5=dt2.substr(5,1);
dt2x6=dt2.substr(6,1);
dt2x7=dt2.substr(7,1);
dt2x8=dt2.substr(8,1);
dt2x9=dt2.substr(9,1);
dty="4"+dt2x7+dt2x3+dt2x6+dt2x2+dt2x4+dt2x5+dt2x9+dt2x8+dt2x1;
}
else{
dt1=str;
dty=str;
}
if (document.form2.elements[10].checked){
pageNo=dty;
}
else{
pageNo="0";
}
//all
if (odan2f==1){
amaf=1;
kinf=1;
rakf=1;
bk1f=1;
boof=1;
sevf=1;
tsuf=1;
}
else{
amaf=0;
kinf=0;
rakf=0;
bk1f=0;
boof=0;
sevf=0;
tsuf=0;
if (document.form2.elements[2].checked) amaf=1;
if (document.form2.elements[3].checked) kinf=1;
if (document.form2.elements[4].checked) rakf=1;
if (document.form2.elements[5].checked) bk1f=1;
if (document.form2.elements[6].checked) boof=1;
if (document.form2.elements[7].checked) sevf=1;
if (document.form2.elements[8].checked) tsuf=1;
}
if (odanf==1){
document.form0.yougo.value=document.form2.elements[0].value;
}
else{
document.form0.yougo.value=dt1;
}
document.form0.yougoi.value=dty;
if (amaf==1){
if (pageNo=="0"){
pageNo="page1";
}
else{
pageNo=pageNo+"1";
}
if ((odanf==1) || (odanf==2)){
subWin=window.open(FL+"sa/subwin1.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=305,top=25");subWin.focus();
}
else{
subWin=window.open(FL+"sa/subwin1i.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=305,top=25");subWin.focus();
}
}
if (kinf==1){
if (pageNo=="0"){
pageNo="page2";
}
else{
pageNo=pageNo+"2";
}
if ((odanf==1) || (odanf==2)){
subWin=window.open(FL+"sa/subwin5.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=295,top=35");subWin.focus();
}
else{
subWin=window.open(FL+"sa/subwin5i.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=295,top=35");subWin.focus();
}
}
if (rakf==1){
if (pageNo=="0"){
pageNo="page3";
}
else{
pageNo=pageNo+"3";
}
if ((odanf==1) || (odanf==2)){
subWin=window.open(FL+"sa/subwin6.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=285,top=45");subWin.focus();
}
else{
subWin=window.open(FL+"sa/subwin6i.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=285,top=45");subWin.focus();
}
}
if (bk1f==1){
if (pageNo=="0"){
pageNo="page4";
}
else{
pageNo=pageNo+"4";
}
if ((odanf==1) || (odanf==2)){
subWin=window.open(FL+"sa/subwin2.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=275,top=55");subWin.focus();
}
else{
subWin=window.open(FL+"sa/subwin2i.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=275,top=55");subWin.focus();
}
}
if (boof==1){
if (pageNo=="0"){
pageNo="page5";
}
else{
pageNo=pageNo+"5";
}
if ((odanf==1) || (odanf==2)){
subWin=window.open(FL+"sa/subwin3.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=265,top=65");subWin.focus();
}
else{
subWin=window.open(FL+"sa/subwin3i.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=265,top=65");subWin.focus();
}
}

if (sevf==1){
if (pageNo=="0"){
pageNo="page6";
}
else{
pageNo=pageNo+"6";
}
if ((odanf==1) || (odanf==2)){
subWin=window.open(FL+"sa/subwin4.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=255,top=75");subWin.focus();
}
else{
subWin=window.open(FL+"sa/subwin4i.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=255,top=75");subWin.focus();
}
}

if (tsuf==1){
if (pageNo=="0"){
pageNo="page7";
}
else{
pageNo=pageNo+"7";
}
subWin=window.open(FL+"sa/subwin10.html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=245,top=85");subWin.focus();
}


if (document.form2.elements[13].checked){
kenban=document.form0.ken.value;
if (pageNo=="0"){
pageNo="page10";
}
else{
pageNo=pageNo+"10";
}
subWin=window.open(FL+"sa/subwin" + kenban + ".html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=285,top=45");subWin.focus();
}
if (document.form2.elements[14].checked){
bashoban=document.form0.basho.value;
if (pageNo=="0"){
pageNo="page11";
}
else{
pageNo=pageNo+"11";
}
subWin=window.open(FL+"sa/subwin" + bashoban + ".html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=275,top=55");subWin.focus();
}
if (document.form2.elements[15].checked){
bashoban=document.form0.daigaku.value;
if (pageNo=="0"){
pageNo="page12";
}
else{
pageNo=pageNo+"12";
}
subWin=window.open(FL+"sa/dai/subwin" + bashoban + ".html",pageNo,"width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=265,top=65");subWin.focus();
}

odanf=0;
odan2f=0;
}
//m()I


function web(){
if (document.form2.elements[13].checked){
subWin=window.open(FL+"sa/subwinken.html","page17","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=235,top=95");subWin.focus();
}
}

function to(){
if (document.form2.elements[14].checked){
subWin=window.open(FL+"sa/subwinb.html","page18","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=275,top=55");subWin.focus();
}
}

function dai(){
if (document.form2.elements[15].checked){
subWin=window.open(FL+"sa/dai/subwinb2.html","page19","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=265,top=65");subWin.focus();
}
}


function amaPop(){
subWin=window.open(FL+"sa/linkama.html","p1","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=205,top=25");subWin.focus();
}
function kinPop(){
pageNo="page9";
subWin=window.open(FL+"sa/linkkin.html","p2","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=195,top=35");subWin.focus();
}
function rakPop(){
subWin=window.open(FL+"sa/linkrak.html","p3","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=185,top=45");subWin.focus();
}
function bk1Pop(){
subWin=window.open(FL+"sa/linkbk1.html","p4","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=165,top=65");subWin.focus();
}
function booPop(){
subWin=window.open(FL+"sa/linkboo.html","p5","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=155,top=75");subWin.focus();
}

function sevPop(){
subWin=window.open(FL+"sa/linksev.html","p8","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=175,top=55");subWin.focus();
}
function tsuPop(){
subWin=window.open(FL+"sa/linktsu.html","p6","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=135,top=95");subWin.focus();
}

function jboPop(){
subWin=window.open(FL+"sa/linkjbo.html","p10","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=145,top=85");subWin.focus();
}
function furPop(){
subWin=window.open(FL+"sa/linkfur.html","p7","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=135,top=95");subWin.focus();
}
function ehoPop(){
subWin=window.open(FL+"sa/linkeho.html","p9","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=145,top=85");subWin.focus();
}
function kurPop(){
subWin=window.open(FL+"sa/linkkur.html","p11","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=115,top=115");subWin.focus();
}
function eboPop(){
subWin=window.open(FL+"sa/linkebo.html","p12","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=125,top=105");subWin.focus();
}
function gooPop(){
subWin=window.open(FL+"sa/linkgoo.html","p13","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=205,top=25");subWin.focus();
}
function yahPop(){
subWin=window.open(FL+"sa/linkyah.html","p14","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=195,top=35");subWin.focus();
}
function kinPop(){
subWin=window.open(FL+"sa/linkkin.html","p15","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=185,top=45");subWin.focus();
}
function kouPop(){
subWin=window.open(FL+"sa/linkkou.html","p16","width=800,height=640,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=190,top=10");subWin.focus();
}
function daiPop(){
subWin=window.open(FL+"sa/linkdai.html","p17","width=800,height=640,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=190,top=10");subWin.focus();
}
function nacPop(){
subWin=window.open(FL+"sa/linknac.html","p18","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=155,top=75");subWin.focus();
}
function kokPop(){
subWin=window.open(FL+"sa/linkkok.html","p19","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=145,top=85");subWin.focus();
}
function kaijPop(){
subWin=window.open(FL+"sa/linkkaij.html","p20","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=100,top=50");subWin.focus();
}
function kaij2Pop(){
subWin=window.open(FL+"sa/linkkaij2.html","p20","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=100,top=50");subWin.focus();
}
function choPop(){
subWin=window.open(FL+"sa/linkcho.html","p22","width=680,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=300,top=50");subWin.focus();
}
function webPop(){
subWin=window.open(FL+"sa/linkweb.html","p23","width=1024,height=640,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=0,top=0");subWin.focus();
}



function change(adr){
location=adr;
}

function amazonTop(shurui){
shurui=shurui;
subWin=window.open(FL+"sa/amazon" + shurui + ".html","ama1","width=800,height=550,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,status=1,left=100,top=20");subWin.focus();
}

//menu
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function ddm(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clv()
}

function clv(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
dhm()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
dhm()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function dhm(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
//menu end



function auto(){
subWin=window.open("../../sa/hyoshi2.html","hyoshi","width=400,height=600,scrollbars=1,resizable=1,left=405,top=75");;subWin.focus();

}
function m2(str){
strData=a[str];
ii=strData.indexOf(":");
strData=strData.substr(ii+1,10);
dt2=strData;
dt2x0=dt2.substr(0,2);
if(dt2x0=="10"){
dt2x1="X";
}
else{
dt2x1=dt2.substr(1,1);
}

dt2x2=dt2.substr(2,1);
dt2x3=dt2.substr(3,1);
dt2x4=dt2.substr(4,1);
dt2x5=dt2.substr(5,1);
dt2x6=dt2.substr(6,1);
dt2x7=dt2.substr(7,1);
dt2x8=dt2.substr(8,1);
dt2x9=dt2.substr(9,1);
strData="4"+dt2x7+dt2x3+dt2x6+dt2x2+dt2x4+dt2x5+dt2x9+dt2x8+dt2x1;

document.form0.yougoi.value=strData;

subWin=window.open("../../sa/subwintest.html","test","width=400,height=550,scrollbars=1,resizable=1,left=405,top=125");;subWin.focus();

}
function m3(str){
subWin=window.open("../../sa/subwintest.html","test","width=400,height=550,scrollbars=1,resizable=1,left=405,top=125");subWin.close();
//subWin=window.open("../../sa/subwintest.html","test","width=400,height=550,scrollbars=1,resizable=1,left=405,top=25");subWin.blur();

}

function Ken(dt1,dt2){
page=parseInt(dt2)/160;
page=Math.floor(page)+1;
pageStr=""+page;
pageStr="0"+pageStr;
pageStr=pageStr.substr(pageStr.length-2,2);
ich=parseInt(dt2)%160;
if(ich==0){
ich=parseInt(dt2)+1;
dt2=""+ich;
}
location.href=dt1+pageStr+".html#"+dt2;
}

var bb=0;
function dispUp(){
bb=document.form2.imgCount.value-1;
bb=bb+1;
if (bb>9) {bb=9};
dispImage(bb);
//document.form2.imgCount.value="No."+(bb*16+1)+""+(bb+1)*16;
}
function dispDown(){
bb=document.form2.imgCount.value-1;
bb=bb-1;
if (bb<0) {bb=0};
dispImage(bb);
//document.form2.imgCount.value="No."+(bb*16+1)+""+(bb+1)*16;
}
function setNo(){
bb=document.form2.imgCount.value-1;
//document.form2.elements[0].value=data;
dispImage(bb);
}
//copy
bBool=false
var copiedtext=""
var tempstore=""

function initiatecopy() {
bBool=true;
}

function copyit() {
if (bBool) {
tempstore=copiedtext
document.execCommand("Copy")
copiedtext=window.clipboardData.getData("Text");
if (tempstore!=copiedtext) {
document.form2.elements[0].value=copiedtext;
if (document.form2.elements[12].checked){
document.form0.yougo.value=copiedtext;
subWin=window.open("../../sa/subwinXwiki.html","wiki","width=680,height=650,scrollbars=1,resizable=1,left=305,top=25");;subWin.focus();
//document.form2.elements[1].click();
}
//alert(copiedtext);
}
bBool=false;
}
}

document.onselectionchange = initiatecopy
document.onmouseup = copyit
//copy2
function copyit2(theField) {
  var tempval=eval("document."+theField);
  tempval.focus();
  tempval.select();
  therange=tempval.createTextRange();
  therange.execCommand("Copy");
}

function N(str){
n=str.length;
s=str.indexOf(":",0);
dt1=str.substr(0,s);
s1=s+1;
n2=n-s1;
dt2=str.substr(s1,n2);
dt2x0=dt2.substr(0,2);
if(dt2x0=="10"){
dt2x1="X";
}
else{
dt2x1=dt2.substr(1,1);
}

dt2x2=dt2.substr(2,1);
dt2x3=dt2.substr(3,1);
dt2x4=dt2.substr(4,1);
dt2x5=dt2.substr(5,1);
dt2x6=dt2.substr(6,1);
dt2x7=dt2.substr(7,1);
dt2x8=dt2.substr(8,1);
dt2x9=dt2.substr(9,1);
dty="4"+dt2x7+dt2x3+dt2x6+dt2x2+dt2x4+dt2x5+dt2x9+dt2x8+dt2x1;
document.form0.yougoi.value=dty;
pageNo="rev";
subWin=window.open("../../sa/subwin7g.html",pageNo,"width=480,height=580,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,left=515,top=0");subWin.focus();
}
function KAI(str){
n=str.length;
s=str.indexOf(":",0);
dt1=str.substr(0,s);
s1=s+1;
n2=n-s1;
dt2=str.substr(s1,n2);
dt2x0=dt2.substr(0,2);
if(dt2x0=="10"){
dt2x1="X";
}
else{
dt2x1=dt2.substr(1,1);
}

dt2x2=dt2.substr(2,1);
dt2x3=dt2.substr(3,1);
dt2x4=dt2.substr(4,1);
dt2x5=dt2.substr(5,1);
dt2x6=dt2.substr(6,1);
dt2x7=dt2.substr(7,1);
dt2x8=dt2.substr(8,1);
dt2x9=dt2.substr(9,1);
dty="4"+dt2x7+dt2x3+dt2x6+dt2x2+dt2x4+dt2x5+dt2x9+dt2x8+dt2x1;
document.form0.ISBN.value=dty;

mitsu();
//pageNo="rev";
//subWin=window.open("../../rank/mitsu.html",pageNo,"width=480,height=580,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,left=515,top=0");subWin.focus();
}

function mitsu(){

kaia=new Array();
kaiax=new Array();
kaib=new Array();
kaibx=new Array();
kaic=new Array();
kaicx=new Array();

var kaicount=0;
var kaitotal=0;
var kaitotalStr="";

var kaishi=new Array();
var shuryo=new Array();

kaishi[1]=0;
shuryo[1]=6140477;
kaishi[2]=6140478;
shuryo[2]=8775365;
kaishi[3]=8775366;
shuryo[3]=13023029;
kaishi[4]=13023030;
shuryo[4]=26342153;
kaishi[5]=26342154;
shuryo[5]=33160598;
kaishi[6]=33160599;
shuryo[6]=40705048;
kaishi[7]=40705049;
shuryo[7]=48566319;
kaishi[8]=48566320;
shuryo[8]=56001376;
kaishi[9]=56001377;
shuryo[9]=59109421;
kaishi[10]=59109422;
shuryo[10]=75718151;
kaishi[11]=75718152;
shuryo[11]=77410560;
kaishi[12]=77410561;
shuryo[12]=79522169;
kaishi[13]=79522170;
shuryo[13]=81246319;
kaishi[14]=81246320;
shuryo[14]=83428155;
kaishi[15]=83428156;
shuryo[15]=86326049;
kaishi[16]=86326050;
shuryo[16]=88131038;
kaishi[17]=88131039;
shuryo[17]=89311248;
kaishi[18]=89311250;
shuryo[18]=90638840;
kaishi[19]=90638841;
shuryo[19]=99809341;

datax=document.forms[0].ISBN.value;
datax=datax.substring(1,9);

var stopNo=0;
count=0;
while(count<8){
if(datax.charAt(count) != '0'){
stopNo=count;
count=8;
}
count++;
}
datax=datax.substring(stopNo,8);
datay=parseInt(datax);
document.forms[0].ISBNC.value=datay;

count=1;
while(count<20){
dataz=kaishi[19];
if((datay>kaishi[count]) && (datay<shuryo[count])){
//
countStr=""+count;
if(count<10){
countStr="0"+countStr;
}
adr="../../rank/R"+countStr+"/"+"blockx.html";
//location.href=adr;
pageNo="rev";
subWin=window.open(adr,pageNo,"width=480,height=580,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,left=515,top=0");subWin.focus();

}
count++;
}


}
