FreeMarker template error!

Expression newsTypeID is undefined on line 40, column 16 in tpl/2009/08/china-quanyou.cn//news_show.htm.
The problematic instruction:
----------
==> ${newsTypeID} [on line 40, column 14 in tpl/2009/08/china-quanyou.cn//news_show.htm]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression newsTypeID is undefined on line 40, column 16 in tpl/2009/08/china-quanyou.cn//news_show.htm.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.Expression.getStringValue(Expression.java:118)
	at freemarker.core.Expression.getStringValue(Expression.java:93)
	at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.Environment.renderElementToString(Environment.java:1564)
	at freemarker.core.StringLiteral.getStringValue(StringLiteral.java:101)
	at freemarker.core.StringLiteral._getAsTemplateModel(StringLiteral.java:86)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.Assignment.accept(Assignment.java:90)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.IfBlock.accept(IfBlock.java:82)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.Environment.process(Environment.java:189)
	at freemarker.template.Template.process(Template.java:241)
	at freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:510)
	at freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:408)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
	at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
	at bamboo.util.tools.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:38)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
	at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
	at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
	at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
	at java.lang.Thread.run(Thread.java:595)