//ajaxsearchの検索結果の「x」はtextコントロールがないとエラーになるため、残す
window.onload = function() {
//function searchmodxonload(){
//  document.getElementById("ajaxSearch_input").style.display='none';
  document.getElementById("ajaxSearch_submit").style.display='none';
  document.getElementById("s").style.display='none';
  document.getElementById("searchsubmit").style.display='none';

  if(document.searchselectform.searchradio1[0].checked == true) {
//    /*ブログ*/
  } else if(document.searchselectform.searchradio1[1].checked == true) {
//    /*ブログ外*/
  } else {
//    /*ブログ外に設定*/
    document.searchselectform.searchradio1[0].checked = false;
    document.searchselectform.searchradio1[1].checked = true;
//    /*ブログを隠す*/
    document.getElementById("searchsubmit").style.display='none';
  }
  googleSearchKeyword();
}

function gosubmit(){
  var strTemp;
  AjaxValSetnormal();
  if(document.getElementById){document.getElementById("ajaxSearch_output").style.width = "500px"; //500px;
    document.getElementById("ajaxSearch_output").style.marginLeft = "150px";  //5px 0 15px 150px;
    document.getElementById("ajaxSearch_output").style.backgroundColor = "#ffffff"; //#ffffff;
    document.getElementById("searchClose").style.marginLeft = "100px";}  //100px; 770px
  strTemp = document.getElementById("ajaxSearch_input").value;
  if(document.searchselectform.searchradio1[1].checked == true) {
    document.getElementById("ajaxSearch_submit").click();
  } else {
    document.getElementById("s").value= strTemp;
    document.getElementById("searchsubmit").click();
  }
}
function AjaxValSetnormal(){
  config = 'image';
  //config = 'default';
  as_version = '1.8.0';
  debug = 0;
  //as_language = 'english-utf8';
  as_language = 'japanese-utf8';
  opacity = 1;
  if (navigator.userAgent.indexOf("Safari") != -1){
    advSearch = 'oneword';
  } else {
    advSearch = 'allwords';
  }
  //advSearch = 'oneword';
  //advSearch = 'all';
  whereSearch = 'content,tv';
  order = 'publishedon,pagetitle';
  rank = 'pagetitle:100,extract';
  minChars = 3;
  ajaxMax = 5;             /*hit タイトル数*/
  showMoreResults = 1;
  moreResultsPage = 25;
  extract = '10:content'; /*search文字がhitした数で止める限界*/
  extractLength = 200;  /*search文字がhitしたまわりの表示文字*/
  extractEllips = '...';
  extractSeparator = '<br />';
  formatDate = 'd/m/y : H:i:s';
  liveSearch = 0;
  docgrp = '';
  //listIDs = '61';
  idType = 'parents'; /*all documets*/
  //idType = 'documents'; /*一覧*/
  depth = 10;
  highlightResult = 1;
  hideMenu = 2;
  hideLink = 1;
  as_filter = '';
  tplAjaxResult = '';
  tplAjaxResults = '';
  stripInput = 'defaultStripInput';
  stripOutput = 'saveImage';
  //stripOutput = 'defaultStripOutput';
  breadcrumbs = '0';
  tvPhx = '0';
}

