<#
	// ClientEvents
	if (Options["GenerateScriptTag"])
	{
#>

    <script type="text/javascript">
<#
		foreach (var clientEvent in Options["ClientEvents"])
		{
			if (clientEvent["Handled"])
			{
				var eventName=clientEvent["Name"].Replace("OnClient","");
				eventName = eventName.Substring(0, 1).ToLower() + eventName.Substring(1);
#>

        function <#= eventName #>(sender, e) {
            // Implement the event handler for <#= eventName #>.
        }
<#
			}
		}
#>

    </script>
<#
	}
#>