<?cs def:print_spelling() ?>
   <?cs if:spelling ?>
   <script type="text/javascript" src="<?cs var:server_name ?><?cs var:image_path ?>spellChecker.js"></script>
   <script type="text/javascript">
     function openSpellChecker(txt) {
     var speller = new spellChecker( txt,'<?cs var:server_name ?><?cs var:image_path ?>spellchecker.html','<?cs var:server_name ?>/<?cs var:bin_alias ?>/spellchecker' );
    speller.openChecker();
    }
  </script>
 <?cs /if ?>
<?cs /def ?>


<?cs def:print_text_value(data) ?>
  <?cs if:modify ?>
   <textarea name="caption" id="caption" cols="40" rows="4"><?cs var:data.caption ?></textarea>
  <?cs else ?>
   <textarea name="caption" id="caption" cols="40" rows="4"></textarea>
  <?cs /if ?>
<?cs /def ?>


<?cs def:print_action(m_action, s_action) ?>
  <?cs if:modify ?>
    <form  method="post" action="<?cs var:m_action ?>"  onsubmit="return alertfunc('<?cs var:lang.shared_survey_form.warning_msg ?>')">
   <?cs else ?>
    <form  method="post" action="<?cs var:s_action ?>"  onsubmit="return alertfunc('<?cs var:lang.shared_survey_form.warning_msg ?>')">
    <?cs /if ?>
<?cs /def ?>

<?cs def:print_back() ?> 
 <div>
  <a href="javascript:history.back()" title="back"><img src="<?cs var:image_path ?>back_arrow.gif" width="50" height="34" alt="Go Back" /></a>
</div>
<?cs /def ?>

<?cs def:print_fade_button(tag) ?>
  [<span class="button_fade"><?cs var:tag ?></span>]
<?cs /def ?>

<?cs def:print_real_button(tag_name, action) ?> 
  <form method="post" action="<?cs var:action ?>">
     <input type="hidden" name="crs" value="<?cs var:Query.crs ?>" /> 
      <input type="hidden" name="id" value="<?cs var:Query.id ?>" /> 
      <input type="hidden" name="count" value="<?cs var:Query.count ?>" /> 
      <input type="hidden" name="pre_id" value="<?cs var:Query.pre_id ?>" /> 
      <input type="submit" name="submit" value="<?cs var:tag_name ?>" />
  </form>
<?cs /def ?>

<?cs def:print_button() ?>
  <div class="center_msg"><?cs var:lang.shared_survey_form.select ?></div>
  <table width="100%">
  <tr><td align="center">
  <div class="button_block">
  <table><tr>
    <td><?cs call:print_fade_button(lang.shared_survey_form.custom) ?></td>
    <td><?cs call:print_real_button(lang.shared_survey_form.likert, "survey_likert_form") ?></td>
    <td><?cs call:print_real_button(lang.shared_survey_form.choice, "survey_choice_form") ?></td> 
    <td><?cs call:print_real_button(lang.shared_survey_form.text, "survey_text_form") ?></td> 
    <td><?cs call:print_real_button(lang.shared_survey_form.memo, "survey_memo_form") ?></td> 
  </tr></table>
  </div>
 </td></tr>
 </table>
<?cs /def ?>

<?cs def:print_submit_button() ?>
      <?cs if:modify ?>
      <input type="submit" value="<?cs var:lang.shared_survey_form.modify ?>" />
      <?cs else ?>
      <input type="submit" value="<?cs var:lang.shared_survey_form.submit ?>" />
      <?cs /if ?>
<?cs /def ?>
 

