var IsNN=(navigator.appName.indexOf("Netscape")>=0)?1:0;
var HTTP = getPARAM(document.URL,"http");
var URLCODE = getPARAM(document.URL,"URLCODE");
if(HTTP == ""){ URLCODE = "1023101"; }
var width=730;
var height=window.screen.height*0.9;
//if(document.referrer.indexOf("yadoyoyaku24.jp")>-1){
//	location.replace("http://www.yadoyoyaku24.jp/");
//}
function getDomain(source){
//引数からドメイン名を取得します
  var point1 = source.indexOf("//");
  var point2 = source.indexOf("/", point1+2);
  var action = source;
  if(point2 != -1){
    action = source.substring(0, point2);
  }
  return action;
}
function getPARAM(source, key){
//引数からkey値を取得します
  var param = "";
  if(key==""){
    var point1 = source.indexOf("?");
    if(point1>-1){
      param = source.substring(point1+1);
    }
  }else{
    var point1 = source.indexOf(key);
    if(point1>-1){
      var point2 = source.indexOf("&", point1+key.length);
      if(point2 > -1){
        param = source.substring(point1+key.length+1, point2);
      }else{
        param = source.substring(point1+key.length+1);
      }
    }
  }
  return param;
}
function Shohin_Click(shohin_code_){
  var href="http://www.i-tel24.com/info/"+shohin_code_+".html?URLCODE="+URLCODE;
  NW = window.open ("","sisetu","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
  NW.location.href = href;
  NW.focus();
}
function Kaki_Click(){
    var form = document.gForm;
    var area = form.kaki_area[form.kaki_area.selectedIndex].value;
    if(area==""){
      alert("エリアを選択してください");
      form.kaki_area.focus();
      return;
    }
    domain = "www.aki-search.jp";
    var href="http://"+domain+"/akiweb/servlet/akiwebServlet?";
    href += "URLCODE="+URLCODE;
    //href += "&NENGETU=200308";
    //if(area.length == 1){
    //  href += "&ACODE="+area;
    //}else{
    //  href += "&FCODE='"+area+"'";
    //}
    href += "&kikan_nen=2003";
    href += "&kikan_tuki=8";
    href += "&kikan_hi=10";
    href += "&kikan_syu=0";
    href += "&kikan_nisu=8";
    href += "&kikan_heyasu=0";
    if(area.length == 1){
      href += "&A="+area;
    }else{
      href += "&T="+area;
    }
    href += "&HCODE=02";
    form.kaki_area.focus();
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Otoku6700_Click(){
    var form = document.oForm;
    var area = form.kaki_area[form.kaki_area.selectedIndex].value;
    if(area==""){
      alert("エリアを選択してください");
      form.kaki_area.focus();
      return;
    }
    domain = "www.aki-search.jp";
    var href="http://"+domain+"/akiweb/servlet/akiwebServlet?";
    href += "URLCODE="+URLCODE;
    if(area.length == 1){
      href += "&ACODE="+area;
    }else{
      href += "&FCODE='"+area+"'";
    }
    href += "&HCODE=00";
    href += "&CCODE=1";
    form.kaki_area.focus();
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Yutori_Click(){
    var href="../info/index_10.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","sisetu","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Gurume_Click(){
    var href="http://www.i-tel24.com/tokutoku/index_0410_gurume.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=820,height="+height);
    NW.location.href = href;
    NW.focus();
}
function Roten_Click(){
    var href="http://www.i-tel24.com/tokutoku/index_0412_roten.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=820,height="+height);
    NW.location.href = href;
    NW.focus();
}
function Resort_Click(){
    width=860;
    var href="../info/index_11.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Dantai_Click(){
    width=860;
    var href="../info/index_24.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Pet_Click(){
    width=860;
    var href="../info/index_23.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Syogatu_Click(){
    width=860;
    domain = "www.aki-search.jp";
    var href="http://"+domain+"/akiweb/servlet/akiwebServlet?";
    href += "URLCODE="+URLCODE;
    href += "&HCODE=05";
    href += "&NENGETU=200312";
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Ski_Click(){
    width=860;
    var href="../info/index_06.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function GW_Click(){
    width=860;
    var href="../info/index_21.html?";
    href += "URLCODE="+URLCODE;
    href += "&NENGETU=200505";
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Mitinoku_Click(){
    width=860;
    var href="index_0409.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Kakenagasi_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/index_0501_kakenagasi.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Zekkei_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/index_0501_zekkei.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Kasikiri_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/index_0501_kasikiri.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Viking_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/index_0501_viking.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Heyashoku_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/index_0001.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Kaigai_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/index_pal_season4.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Sakura_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/sakura/index.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Magiwa_Click(){
    width=860;
    var href="http://www.i-tel24.com/info/index_30.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
    NW.location.href = href;
    NW.focus();
}
function Yama_Click(){
    width=860;
    var href="http://www.i-tel24.com/tokutoku/index_0505_sizen.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height+",top=0,left=0");
    NW.location.href = href;
    NW.focus();
}
function Natu_Click(){
    width=860;
    var href="http://www.i-tel24.com/info/index_70.html?";
    href += "URLCODE="+URLCODE+"&NENGETU=200507";
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height+",top=0,left=0");
    NW.location.href = href;
    NW.focus();
}
function Koyo_Click(){
    width=860;
    var href="http://www.i-tel24.com/info/index_0509_koyo.html?";
    href += "URLCODE="+URLCODE+"&NENGETU=200509";
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height+",top=0,left=0");
    NW.location.href = href;
    NW.focus();
}
function Winter_Click(){
    width=860;
    var href="http://www.i-tel24.com/info/index_0512_winter.html?";
    href += "URLCODE="+URLCODE;
    NW = window.open ("","itiran","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height+",top=0,left=0");
    NW.location.href = href;
    NW.focus();
}
