<!DOCTYPE html >
<html lang="en">
<head>
  <title><%site_title%></title>
  <script type="text/javascript">
    //<![CDATA[
    function init() {
      var sc = parent.sc;
      if (typeof(sc) == 'undefined') return;

      if (sc.loaded) {
        clearInterval(interval_handle);
        sc.objects.checkForm = document.getElementById('result_form');

        sc.words = [
        <%~loop words%>
          {
            word       : '<%escape_js unescape_html word%>',
            oword      : '<%escape_js unescape_html word%>',
            misspelled : <%if misspelled%>true<%else%>false<%endif%>
          }<%unless last%>,<%endunless%>
        <%~endloop%>
        ];
        sc.corrections = {
        <%~loop corrections%>
          '<%escape_js unescape_html word%>' : [<%loop corrections%>'<%escape_js unescape_html correction%>'<%unless last%>,<%endunless%><%endloop%>]<%unless last%>,<%endunless%>
        <%~endloop%>
        };
      <%~if corrections.length%>
        sc.misspelled = true;
      <%~else%>
        sc.misspelled = false;
      <%~endif%>
      <%~unless in.just_load%>
        sc.processCheck();
      <%~endunless%>
        sc.formLoaded = true;
      }
    }

    var interval_handle = setInterval(init, 250);
    //]]>
  </script>
</head>
<body class="page-<%page_id%>">
  <form id="result_form" action="<%GForum::SEO::url()%>" method="post">
    <%hidden_form%>
    <input id="do" name="do" type="hidden" value="<%if this_do starts spellcheck_inline_%><%this_do%><%else%><%in.prev_do%><%endif%>" />
    <input type="hidden" name="prev_do" value="<%this_do%>" />
    <input id="advanced_editor" name="advanced_editor" type="hidden" value="0" />
    <input id="post_style" name="post_style" type="hidden" value="0" />
    <input id="msg_style" name="msg_style" type="hidden" value="0" />
    <input id="content" name="content" type="hidden" value="" />
    <input id="temp_id" name="temp_id" type="hidden" value="" />
    <input id="post_id" name="post_id" type="hidden" value="" />
  </form>
</body>
</html>
