function ChangeHelpSec(help,sec,ChartType)
{

	if (ChartType=='')
	{
		var sec=0;
	};

	var Help1Section0 = ''
		+'<BR><IMG src="images/questionmark.gif" border="0" align="left" width="39" height="62" alt="?">Graphs and charts are great because they communicate information visually. For this reason, graphs are often used in newspapers, magazines and businesses around the world.'
		+'<BR><BR>NCES constantly uses graphs and charts in our publications and on the web. Sometimes, complicated information is difficult to understand and needs an illustration. Graphs or charts can  help impress people by getting your point across quickly and visually.<IMG src="images/piebar_icon.gif" height="76" width="77" border="0" align="right">'
		+'<BR><BR>Here you will find five different graphs and charts for you to consider. Not sure about which graph to use? Confused between bar graphs and pie charts? Read our: <DIV style="margin-top: 12px; text-align: center;"><A href="javascript:tutorial()" style="font-weight: bold; font-size: 11pt;">Create A Graph Tutorial</a></DIV>';

	var Help1Section1 = Help1Section0;

	var Help1Section2 = ''
		+'<BR>Choosing the right look and feel is important when designing a graph.'
		+'<BR>'
		+'<BR><I><B>Show Labels:</B></I> displays the values on the graph'
		+'<BR><I><B>Type:</B></I> is the data-specific value shown with each label'
		+'<BR><I><B>Prefix:</B></I> is added to the beginning of a data label, such as ($)'
		+'<BR><I><B>Suffix:</B></I> is added to the end of a data label, such as (lbs, kg, cm, ft, °, %)'
		+'<BR><I><B>Position:</B></I> where the data labels are displayed on the graph'
		+'<BR><I><B>Label Color:</B></I> the color of the data labels'
		+'<BR><I><B>Background Color:</B></I> the color behind the data labels. By default the background is transparent.'
		+'<HR>'
		+'<I><B>Font:</B></I> sets the font style for all text and values in the graph'
		+'<BR><I><B>Font Color:</B></I> the color of all text and values'
		+'<BR><I><B>Font size:</B></I> the font size of all text and values';
		
	var Help1Section3 = ''
		+'<BR><I><B>Graph Title:</B></I> appears at the top of the graph and should describe the graph'
		if (ChartType=='XY'){
		Help1Section3 = Help1Section3 + '<BR><I><B>X-Axis Label:</B></I> appears at the bottom of the graph, describes the y values'
		+'<BR><I><B>Y-Axis Label:</B></I> appears at the left of the graph, describes the y values'
		}
		Help1Section3 = Help1Section3+ '<BR><I><B>Source:</B></I> appears at the bottom of the graph and can be used to give credit to author of the data'
		+'<HR>'
		+'<I><B>Data Set:</B></I> this defines the number of items and groups of items'
		+'<BR><I><B>Items & Groups:</B></I> graphs consist of a series of data items, some in multiple groups. '
		+'<BR><I><B>Min & Max Values:</B></I> limits the scale of the graph'
		+'';
	var Help1Section4 = ''
		+'<BR><I><B>Graph Preview:</B></I> shows you the current state of your graph. To make changes, click the <I>Design</I>, <I>Labels</I>, and <I>Data</I> tabs. To print or download this graph, click the <I>Print/Save</I> tab.'
		+'<BR><BR><A href="/transfer.asp?location=www.macromedia.com/go/getflashplayer/"><IMG src="images/get_flash_player.gif" width=88 height=31 border=0 align="right"></A>It is recomended that you have <A href="/transfer.asp?location=www.macromedia.com/go/getflashplayer/">Macromedia Flash Player</A> installed for the best quality preview with the fastest loading time.'
	var Help1Section5 = ''
		+'<BR><I><B>Start a new graph:</B></I> starts a new graph project that contains no data or settings.'
		+'<BR><I><B>Erase this graph:</B></I> erases all data or settings from the current graph project.'
		+'<BR><I><B>Copy to new graph:</B></I> copies all data or settings to a new graph project, where changes can be made without affecting the original graph project.'
		+'<HR>'
		+'<I><B>Print:</B></I> display this graph in a format suitable for printing.'
		+'<BR><I><B>Download:</B></I> download this graph to your computer in six different file formats.'
		+'<HR>'
		+'<I><B>Email this Graph:</B></I> send an email with a preview and link to your graph project. Click <I>Send</I> to deliver the email to the valid email address you specified'

	var Help1 = eval('Help1Section'+sec);

	var Help2 = ''
		+'<table border="0" width="100%" cellspacing="1" cellpadding="2" class="HelpListClass">'
		+'<tr>'
		+'<td align="center" colspan="2">'
		+'<p align="left"><b>Education Examples:</b></td>'
		+'</tr>'

		+'<tr>'
		+'<td><img border="0" src="images/xy_style_line.gif" width="21" height="16"></td>'
		+'<td><a href="Javascript:LoadExample(\'9F448A49-58A6-4B9A-8703-9C296E898EDA\');">U.S. Public School Student Membership</a></td>'
		+'</tr>'
		
		+'<tr>'
		+'<td><img border="0" src="images/bar_type_normal.gif" width="21" height="18"></td>'
		+'<td><a href="Javascript:LoadExample(\'74AFB5A3-CA4E-47C2-8FA1-C3FE757A7843\');">Number of Postsecondary Institutions</a></td>'
		+'</tr>'
		+'<tr>'
		+'<td align="center" colspan="2">'
		+'<p align="left"><b>Fun Examples:</b></td>'
		+'</tr>'
		+'<tr>'
		+'<td><img border="0" src="images/xy_style_area.gif" width="21" height="18"></td>'
		+'<td><a href="Javascript:LoadExample(\'1E5E3328-CAB4-49DC-A170-D773140989A5\');">Star Shape with Data</a></td>'
		+'</tr>'
		+'<tr>'
		+'<td><img border="0" src="images/bar_type_horizontal.gif" width="21" height="18"></td>'
		+'<td><a href="Javascript:LoadExample(\'D1709851-9510-428C-9C24-9FF47229A2DF\');">International Per Capita Consumption of Turkey</a></td>'
		+'</tr>'
		+'<tr>'
		+'<td align="center" colspan="2">'
		+'<p align="left"><b>Statistics Examples:</b></td>'
		+'</tr>'
		+'<tr>'
		+'<td><img border="0" src="images/xy_style_line.gif" width="21" height="16"></td>'
		+'<td><a href="Javascript:LoadExample(\'125651F3-AB79-452D-B0FC-6862AFF72BBD\');">U.S. Average Price of Gasoline</a></td>'
		+'</tr>'
		+'<tr>'
		+'<td><img border="0" src="images/bar_style_bar3d.gif" width="21" height="18"></td>'
		+'<td><a href="Javascript:LoadExample(\'892236F6-38F6-4DF3-8DCD-92BB13F87997\');">Percentage of students who reported being bullied at school</a></td>'
		+'</tr>'
		+'<tr>'
		+'<td><img border="0" src="images/pie_type.gif" width="16" height="16"></td>'
		+'<td><a href="Javascript:LoadExample(\'78A0F037-CC3A-4F78-B2CD-21ABE50C7A12\');">Airline On-Time Statistics and Delay Causes</a></td>'
		+'</tr>'
		+'<tr>'
		+'<td><img border="0" src="images/bar_style_cylinder.gif" width="21" height="18"></td>'
		+'<td><a href="Javascript:LoadExample(\'11F64668-597B-4332-B4D3-6E4E4D050BB6\');">Air Passenger Travel Arrivals in the United States</a></td>'
		+'</tr>'
		+'</table>'
		
	var Help3 = 'Templates';
	
	
	if (RecBrowserCheck())
	{
		document.getElementById('Help1').innerHTML = eval('Help'+help);
	}
	else
	{
		document.write(eval('Help'+help));
	};

}; 



function LoadExample(temp)
{
	if(document.form5.ChartType.value!=='')
	{
		var confirmtemp = confirm('Clicking an example graph will start a new graph.\n\nClick OK to continue.');
	}
	else
	{
		var confirmtemp = true
	};

	if(confirmtemp==true)
	{
		window.self.location.href="processform.aspx?ID=" + temp + "&Action=CopyToNewGraph";
	};
};

	function tutorial()
	{
		window.open('../help/user_guide/graph/index.asp' , 'tutorialwin' , 'width=720, height=350, screenX=0, screenY=0, top=0, left=0, scrollbars=yes, resizable=yes'); 
	}