<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: DJ
    $Date: 2013-11-30 下午4:29:15
    $Revision: 1.0
    $Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure><![CDATA[
    ]]></a:init-procedure>
    <a:view>
        <script src="${/request/@context_path}/modules/hls/javascripts/hls.js" type="text/javascript"/>
        <script type="text/javascript"><![CDATA[

			if(!window.f_hls)
            {
                var f_hls = new HLS({
                	context_path : '${/request/@context_path}'
                });
            }

            function hlsCommon_validateCode(record,name,value)
			{
			    if(f_hls.validateCode(value))
			    {
			        return true;
			    }
			    else
			    {
			        return '代码只能包含字母、数字和下划线！';
			    }
			}

        ]]></script>
    </a:view>
</a:screen>
