//
odanf=0;
isbnf=0;

//m()開始
function m(str){
//document.form0.basho.value=1;

if(str!="1"){
//ISBN検索
isbnf=1;
document.form0.yougoi.value=str;

}
else{
//キーワード検索
dty=document.form0.elements[0].value;
document.form0.yougo.value=dty;
if (document.form0.elements[8].checked){
//全店舗
odanf=2;
}
else{
//個別店舗
odanf=1;
}
}

if (odanf==2){
//全店舗
amaf=1;
kinf=1;
rakf=1;
bk1f=1;
boof=1;
sevf=1;
}
else{
//個別店舗
amaf=0;
kinf=0;
rakf=0;
bk1f=0;
boof=0;
sevf=0;
if (document.form0.elements[2].checked) amaf=1;
if (document.form0.elements[3].checked) kinf=1;
if (document.form0.elements[4].checked) rakf=1;
if (document.form0.elements[5].checked) bk1f=1;
if (document.form0.elements[6].checked) boof=1;
if (document.form0.elements[7].checked) sevf=1;
}

if (amaf==1){
pageNo="page1";
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();
}
}
if (isbnf==1){
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){
pageNo="page2";
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();
}
}
if (rakf==1){
pageNo="page3";
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();
}
}
if (bk1f==1){
pageNo="page4";
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();
}
}
if (boof==1){
pageNo="page5";
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();
}
}

if (sevf==1){
pageNo="page6";
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();
}
}

if (document.form0.elements[18].checked){
bashoban=document.form0.basho.value;
pageNo="page11";
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.form0.elements[19].checked){
bashoban=document.form0.daigaku.value;
pageNo="page12";
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;
isbnf=0;
}
//m()終了


function to(){
if (document.form0.elements[18].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.form0.elements[19].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 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();
}


function auto(){
subWin=window.open("../../sa/hyoshi2.html","hyoshi","width=400,height=600,scrollbars=1,resizable=1,left=405,top=75");;subWin.focus();

}


function N(str){
document.form0.yougoi.value=str;
pageNo="rev2";
subWin=window.open(FL+"sa/subwin7h.html",pageNo,"width=480,height=580,scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,left=515,top=0");subWin.focus();
}
