/*==================================================================*/
/* フォームデータ Validater Ajax                                    */
/*                                                                  */
/* Create Date : 2008/09/24                                         */
/* Update Date : 2008/09/25                                         */
/*==================================================================*/
/*------------------------------------------------------------------*/
/* 資料請求チェック                                                 */
/*------------------------------------------------------------------*/
function checkCatalogFormData() {
  // 初期値設定
  var flg = true;
  var backColor = '#990000';
  var textColor = '#ffffff';
  var formatBackColor = '#ffffff';
  var formatTextColor = '#000000';
  // ターゲット初期化
  $('inputtxt01').style.backgroundColor = formatBackColor;
  $('inputtxt01').style.color = formatTextColor;
  $('inputtxt03').style.backgroundColor = formatBackColor;
  $('inputtxt03').style.color = formatTextColor;
  $('inputtxt05').style.backgroundColor = formatBackColor;
  $('inputtxt05').style.color = formatTextColor;
  $('inputtxt06').style.backgroundColor = formatBackColor;
  $('inputtxt06').style.color = formatTextColor;
  $('inputtxt07').style.backgroundColor = formatBackColor;
  $('inputtxt07').style.color = formatTextColor;
  // 入力チェック
  if(!Field.present('inputtxt01')) {
    $('inputtxt01').style.backgroundColor = backColor;
    $('inputtxt01').style.color = textColor;
    flg = false;
  }
  if(!Field.present('inputtxt03')) {
    $('inputtxt03').style.backgroundColor = backColor;
    $('inputtxt03').style.color = textColor;
    flg = false;
  }
  if(!Field.present('inputtxt05')) {
    $('inputtxt05').style.backgroundColor = backColor;
    $('inputtxt05').style.color = textColor;
    flg = false;
  }
  if(!Field.present('inputtxt06')) {
    $('inputtxt06').style.backgroundColor = backColor;
    $('inputtxt06').style.color = textColor;
    flg = false;
  }
  if(!Field.present('inputtxt07')) {
    $('inputtxt07').style.backgroundColor = backColor;
    $('inputtxt07').style.color = textColor;
    flg = false;
  }
  if(!flg) {
    $('errortxt').innerHTML = '（※）のある必須項目が入力されていません。';
  }
  return flg;
}

/*------------------------------------------------------------------*/
/* お問い合わせチェック                                             */
/*------------------------------------------------------------------*/
function checkMailFormData() {
  // 初期値設定
  var flg = true;
  var backColor = '#990000';
  var textColor = '#ffffff';
  var formatBackColor = '#ffffff';
  var formatTextColor = '#000000';
  // ターゲット初期化
  $('inputtxt02').style.backgroundColor = formatBackColor;
  $('inputtxt02').style.color = formatTextColor;
  $('inputtxt03').style.backgroundColor = formatBackColor;
  $('inputtxt03').style.color = formatTextColor;
  // 入力チェック
  if(!Field.present('inputtxt00')) {
    $('inputtxt00').style.backgroundColor = backColor;
    $('inputtxt00').style.color = textColor;
    flg = false;
  }
  if(!Field.present('inputtxt02')) {
    $('inputtxt02').style.backgroundColor = backColor;
    $('inputtxt02').style.color = textColor;
    flg = false;
  }
  if(!Field.present('inputtxt03')) {
    $('inputtxt03').style.backgroundColor = backColor;
    $('inputtxt03').style.color = textColor;
    flg = false;
  }
  if(!flg) {
    $('errortxt').innerHTML = '（※）のある必須項目が入力されていません。';
  }
  return flg;
}

