var now = new Date();
var now_month = now.getMonth()+1;
var now_hours = now.getHours();

var txt_value2 = " 開館時間は午前９：３０〜午後６：３０です。"
var txt_spacer = "　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　";

var txt2 = txt_spacer + txt_value2;

var move_count = 0;
var max_count = 39;

function disp2(){
  if (move_count < max_count){
    move_count++;
    txt2=txt2.substring(1,txt2.length)+txt2.substring(0,1);
    document.dmy_form.lib_info.value=txt2;
    setTimeout("disp2()",175);
  }
}

function set_focus(){
  document.SEARCH.Param1.focus();
}

function out_topimg(){
  if (now_hours > 7 && now_hours < 19){
    top_img.src = "img/topimg_day.jpg";
  }
  else{
    top_img.src = "img/topimg_night.jpg";
  }
}

function eazy_SubmitCheck(){
  if (document.SEARCH.Param1.value == "" && 
    document.SEARCH.Param2.value == "" && 
    document.SEARCH.Param3.value == "" && 
    document.SEARCH.Param4.value == "" && 
    document.SEARCH.Param5.value == "") {
	alert("検索条件の入力をしてください。全検索はできません。");
	return false;
  }
}

function key_SubmitCheck(){
  if (document.FrmKSearch.Keywrd11.value == "" &&
    document.FrmKSearch.Keywrd12.value == "" &&
    document.FrmKSearch.Keywrd13.value == "" &&
    document.FrmKSearch.Keywrd21.value == "" &&
    document.FrmKSearch.Keywrd22.value == "" &&
    document.FrmKSearch.Keywrd23.value == "" &&
    document.FrmKSearch.Keywrd31.value == "" &&
    document.FrmKSearch.Keywrd32.value == "" &&
    document.FrmKSearch.Keywrd33.value == "" &&
	document.FrmKSearch.Joken1.value == "" &&
	document.FrmKSearch.PrmStymd.value == "" &&
	document.FrmKSearch.PrmEdymd.value == "" &&
	document.FrmKSearch.PrmIsbn.value == ""){
	alert("検索条件を入力してください。全検索はできません。");
	return false;
  }
  return true;
}