How can i recieve parameter fron shtml page?

Hi. I new here
In my application i use reference to some shtml page:

int IsNew;
#ximport “refreshpage.shtml” index_html

SSPEC_MIMETABLE_START
SSPEC_MIME_FUNC(“.shtml”, “text/html”, shtml_handler),
SSPEC_MIME(“.html”, “text/html”),
SSPEC_MIME(“.gif”, “image/gif”),
SSPEC_MIME(“.cgi”, “”)
SSPEC_MIMETABLE_END

SSPEC_RESOURCETABLE_START
SSPEC_RESOURCE_XMEMFILE(“/”, index_html),
SSPEC_RESOURCE_XMEMFILE(“/index.shtml”, index_html),
SSPEC_RESOURCE_ROOTVAR(“IsNew”, &IsNew, INT32, “%ld”)
SSPEC_RESOURCETABLE_END

So, i have some questions:

  1. How can i use “IsNew” variable in JavaScript in shtml. For example for if-else statement?
  2. How can i change “IsNew” in JavaScript and return it to Dynamic C application.

Moreover, i can not use JS, but is easy to use it for functions, loops, if-elses

Thank you a lot!!!