		<script language="JavaScript" type="text/javascript">

			function ShowDiv( tab )
			{
				CloseAllDivs( );
				document.getElementById( tab ).style.display = "block";
				document.getElementById( tab+"Content" ).style.display = "block";
			}

			function ShowSubTab( tab, subTab )
			{
				CloseAllDivs( );
				document.getElementById( tab ).style.display = "block";
				document.getElementById( subTab+"Content" ).style.display = "block";
			}

			function CloseAllDivs( )
			{
				var divsArray = document.getElementsByTagName( 'div' );
				for( var i = 3; i < divsArray.length; i++ )
				{
					divsArray[i].style.display = "none";
				}
			}

			function htmlspecialchars_decode(string, quote_style)
			{
				string = string.toString();

				// Always encode
				string = string.replace('/&amp;/g', '&');
				string = string.replace('/&lt;/g', '<');
				string = string.replace(/&gt;/g, '>');

				// Encode depending on quote_style
				if (quote_style == 'ENT_QUOTES')
				{
					string = string.replace('/&quot;/g', '"');
					string = string.replace('/&#039;/g', '\'');
				}
				else if (quote_style != 'ENT_NOQUOTES')
				{
					// All other cases (ENT_COMPAT, default, but not ENT_NOQUOTES)
					string = string.replace('/&quot;/g', '"');
				}
				return string;
			}
		</script>

