﻿/*                                                           */
/*         youbon.co.jp    Javascript関数定義 [共通]         */
/*                                                           */
/*       2009 (c) e-pokke Inc.  All rights reserved.         */
/*                                                           */



// ----- 送信時の確認 -----
var send_flag = 0;

function check_search_submit() {
  if ( document.search_form.Sword.value == '' ) {
    if ( document.search_form.Stype[0].checked ) {
      alert('検索する「キーワード」を入力してください。');
    }
    else if ( document.search_form.Stype[1].checked ) {
      alert('検索する「品番」を入力してください。');
    }
    document.search_form.Sword.focus();
    return false;
  }

  if ( send_flag == 1 ) {
    alert('ただいま送信中です。\n「OK」ボタンをクリックしてお待ちください。');
    return false;
  }

  send_flag = 1;

  return true;
}

// ---------- End of File ----------
