window.onload = function () {
  ro();
}

function changeMapImg(url) {
  document.getElementById('map').src = url;
}

function ro() {
  var d = document;
  if(d.images){
    if(!d.MM_p) d.MM_p=new Array();
    var anchorFields = d.getElementsByTagName('A');
    for ( var i =0; i <anchorFields.length ; i++  ) {
      var anchor = anchorFields[i];
      if ( !anchor.firstChild ) continue;
      if ( !anchor.firstChild.src ) continue;
      if ( new String(anchor.firstChild.src).match(/-out-/) ) {
        var src_on  = new String(anchor.firstChild.src).replace(/-out-/,'-on-') ;
        anchor.onmouseover = function () {this.firstChild.src = this.firstChild.src.replace(/-out-/,'-on-')};
        anchor.onmouseout  = function () {this.firstChild.src = this.firstChild.src.replace(/-on-/,'-out-')};
        d.MM_p[i] = new Image;
        d.MM_p[i].src = src_on;
      }
    }
  }
}


//ボタンをおしたときの入れ替え
function changeButton_down(my) {
  if(!my.src.match("-on-.gif")){
    my.src = my.src.replace("-out-.gif","-on-.gif");
  }else if(!my.src.match("-out-.jpg")){
    my.src = my.src.replace("-out-.jpg","-on-.jpg");
  }
}

//ボタンをおしてはなされたときの入れ替え
function changeButton_up(my) {
  if(my.src.match("-on-.gif")){
    my.src = my.src.replace("-on-.gif","-out-.gif");
  }else if(my.src.match("-on-.jpg")){
    my.src = my.src.replace("-on-.jpg","-out-.jpg");
  }
}

function pagejump(){
  window.location.href = "http://www.dreamjourney.jp/dj/search/kensaku?XCD=827189&HOMEN=Y2&BRANCHSH="+document.frmcal.Departure.value+"&YEAR="+document.frmcal.Year.value+"&MONTH="+document.frmcal.Month.value+"&DAY="+document.frmcal.Day.value+"&KEYWORD="+document.frmcal.Keyword.value;
}

function pagejumpTop(){
  window.location.href = "http://www.dreamjourney.jp/dj/search/kensaku?XCD=827189&HOMEN="+document.frmcal.Homen.value+"&BRANCHSH="+document.frmcal.Departure.value+"&YEAR="+document.frmcal.Year.value+"&MONTH="+document.frmcal.Month.value+"&DAY="+document.frmcal.Day.value+"&KEYWORD="+document.frmcal.Keyword.value;
}

