Example Code of the Script Tag

The following code is an example of the script tag:

<script>
  <![CDATA[
    function form_open()
    {
      form.NoteType.required = true;
    }
    function form_save()
    {
      if (form.item["Created"] == null)
      {
        form.item["Created"] = (new Date()).getVarDate();
      }
    }
  ]]>
</script>