$err_mes['tantou_name'][$index] = $err->check($v['tantou_name'], $tantou_chk['tantou_name']);
         $err_mes['mail_address'][$index] = $err->check($v['mail_address'], $tantou_chk['mail_address']);
         $index = $index + 1;
     }
 }
 // corporate_name virification check
 if ($err_mes['corporate_name'] == '') {
     if ($forms['id'] == '') {
         $where = sprintf("corporate_name = '%s'", $forms['corporate_name']);
     } else {
         if (!empty($forms['mutirow'])) {
             $err_mes['mutirow'] = $err->check($forms['mutirow'], array("EXIST"));
         }
         $where = sprintf("corporate_name = '%s' AND id <> %s", $forms['corporate_name'], $forms['id']);
     }
     if ($corporate_dao->exits($where)) {
         $err->clear = false;
         $err_mes['corporate_name'] = "<p class='error'>この会社名は重複しています</p>";
     }
 }
 // if err, reset values to page
 $smarty->assign('region', $forms['region']);
 $smarty->assign('branch', $forms['branch']);
 $smarty->assign('area_code', $forms['area_code']);
 $smarty->assign('office_number', $forms['office_number']);
 $smarty->assign('called_number', $forms['called_number']);
 $smarty->assign('tantou_forms', $forms['mutirow']);
 $smarty->assign('corporate_forms', $forms);
 $smarty->assign('forms', $forms);
 $smarty->assign('account_id', $account_id);
 // if err check ok