function pophelp(ID)
{

	if (ID == "drughelp"){
		helpmessage("<p><b>Drug</b></p>Select the drug for which you would like tabulations.The list includes all drugs for which there were at least 1000 DAWN mentions(for the entire U.S.) in 2001.  At the top of the list are the most common illicit drugs and drug categories reported to DAWN, as well as lower frequency drugs of particular policy interest.  The remaining drugs are listed alphabetically.");
	}
	if (ID == "startdate"){
		helpmessage("<p><b>Date</b></p>Specify the time period to be covered by the tabulations by selecting a beginning and ending month and year.  Your table will have one column for each month of the selected period, and a total column.");
	}
	if (ID == "enddate"){
		helpmessage("<p><b>Date</b></p>Specify the time period to be covered by the tabulations by selecting a beginning and ending month and year.  Your table will have one column for each month of the selected period, and a total column.");
	}
	if (ID == "patichar"){
		helpmessage("<p><b>Patient Characteristics</b></p>You must select at least one Patient Characteristic or Episode Characteristic variable in order to produce a table.  Check the 'Select All' button if you would like a table for each of the available Patient Characteristics (gender, race/ethnicity, age).  If you want tables for only one or two of these variables, check the box for each variable of interest, which will automatically deselect the 'Select All' button.  If you do not want tables for any of these variables, deselect the 'Select All' button.");
	}
	if (ID == "gender"){
		helpmessage("<p><b>Gender</b></p>Gender includes the following categories:<ul><li>Male</li><li>Female</li><li>Unknown</li></ul>");
	}
	if (ID == "race"){
		helpmessage("<p><b>Race</b></p><p>Race/Ethnicity is tabulated into the following categories:<ul><li>White</li><li>Black</li><li>Hispanic</li><li>Race/ethnicity not tabulated above</li><li>Unknown</li></ul></p> <p>All cases reported to DAWN as Hispanic or Latino ethnicity are tabulated as Hispanic race/ethnicity, regardless of race.  Thus, each DAWN episode is classified into exactly one of the categories listed above.  The category 'Race/ethnicity not tabulated above' is used to tabulate those categories that are too small to report independently.</p><p>The race and ethnicity categories on DAWN data collection forms include more detailed categories for race, permit separate reporting of race and Hispanic ethnicity, and permit more than one race for an individual to be specified. That level of detail is not preserved in tabulations because medical records from which DAWN data are abstracted rarely contain such detailed information on race and ethnicity of patients.  For more detailed information about race and ethnicity data in DAWN, please refer to Appendix A of <a href='http://www.dawninfo.net/pubs_94_02/edpubs/2001final/files/EDTrend2001v6.PDF' target=_blank>Emergency Department Trends from DAWN: Final Estimates 1994-2001</a>.</p>");
	}
	if (ID == "age"){
		helpmessage("<p><b>Age</b></p><p>Age is tabulated into the following categories: <ul><li>6-11 years</li><li>12-17 years</li><li>18-19 years</li><li>20-25 years</li><li>26-29 years</li><li>30-34 years</li><li>35-44 years</li><li>45-54 years</li><li>55 years and older</li><li>Unknown</li></ul></p><p>The DAWN data collection forms collect age in years, which is collapsed into categories.</p>");
	}
	if (ID == "epischar"){
		helpmessage("<p><b>Episode Characteristics</b></p>No help available.");
	}
	if (ID == "drugusemotive"){
		helpmessage("<p><b>Drug Use Motive</b></p>Drug Use Motive (reason for taking substance(s)) includes the following categories:<ul><li>Psychic effects</li><li>Dependence</li><li>Suicide</li><li>Other</li><li>Unknown</li></ul><p>Psychic effects includes the two separate categories for Psychic Effects from the DAWN data collection form:  'Recreational Use' (for experimentation or to enhance social situations or conditions, e.g. to get high or for kicks) and 'Other Psychic Effects' (use of drugs to improve or enhance any mental, emotional or physical state).<p><p>'Suicide' refers to suicide attempts or gestures - successful or unsuccessful actions taken for the purpose of self-destruction or to gain attention.</p>");
	}
	if (ID == "patidisp"){
		helpmessage("<p><b>Patient Disposition</b></p>Patient Disposition (disposition from emergency department) includes the following categories:<ul><li>Treated and released</li><li>Admitted to hospital</li><li>Left against medical advice</li><li>Died</li><li>Unknown</li></ul><p>'Treated and released' includes patients who were referred elsewhere for follow-up care.  'Admitted to hospital' includes patients who were either admitted as an inpatient to the reporting hospital or transferred to another hospital as an inpatient.</p>");
	}
	if (ID == "reason"){
		helpmessage("<p><b>Reason for ED Contact</b></p>Reason for ED Contact includes the following categories:<ul><li>Unexpected reaction</li><li>Overdose</li><li>Chronic effects</li><li>Withdrawal</li><li>Seeking detoxification</li><li>Accident/injury</li><li>Other</li><li>Unknown</li></ul><p>'Chronic Effects' includes conditions such as Hepatitis, Abscess, Cellulitis, Tremors, and HIV/AIDS contracted through IV drug use.</p>");
	}
	if (ID == "route"){
		helpmessage("<p><b>Route of Administration</b></p>Route of Administration includes the following categories:<ul><li>Oral</li><li>Injection</li><li>Inhaled</li><li>Smoked</li><li>Sniffed/snorted</li><li>Other</li><li>Unknown</li></ul><p><b>CAUTION:</b>  Route of administration is frequently unavailable in the ED medical records from which DAWN data are abstracted, so conclusions based on non-missing data may not be valid.</p>");
	}
	if (ID == "dt_metro"){
		helpmessage("<p><b>Metro Area</b></p><p>DAWN produces estimates for 21 metropolitan areas and for the Nation as a whole. You can view tables for a specific metropolitan area, for all metropolitan areas shown together, or for the total U.S.</p><p>If you select a specific metropolitan area (i.e., Atlanta, Baltimore, &#133; Washington DC.), the table will show only the statistics for that area.</p><p>If you select &quot;All Metro Areas,&quot; the table will list each of the 21 metropolitan areas, plus the total U.S., as the row headings. Columns will be years or half-years.</p><p>If you select &quot;Total U.S.,&quot; the table will show aggregated statistics for the coterminous U.S.; you will not see statistics for individual metro areas.</p>");
	}
	if (ID == "dt_totals"){
		helpmessage("<p><b>Totals</b></p><p>In these tables, all of the substances reported to DAWN are aggregated within the table. That is, the tables do not show statistics for individual drugs.</p><blockquote><p><b>Total Drug Mentions</b> - shows the estimated number of times drugs were &quot;mentioned&quot; in relation to emergency department visits. Because there can be multiple drugs involved in an ED visit (episode), the total estimated number of mentions always exceeds the total estimated number of episodes. (Note: When a metro area or the Total U.S. are selected, tables must include patient demographics or episode characteristics.)</p><p><b>Total Drug Episodes</b> - shows the estimated number of ED visits (&quot;episodes&quot;) in which drug abuse was implicated. These tables include all episodes regardless of the number or type of substance involved. (Note: When a metro area or the Total U.S. are selected, tables must include patient demographics or episode characteristics.)</p><p><b>Total ED Visits</b> - shows the total estimated number of ED visits by year, regardless of whether drug abuse was involved. These tables are helpful for seeing the larger context in which drug-related episodes occur. (Note: these tables are available only for &quot;All Metro Areas.&quot;)</p></blockquote>");
	}
	if (ID == "dt_drugtype"){
		helpmessage("<p><b>Drug mentions by type of drug</b> - these tables show mentions for each category as a whole (major substances of abuse, cardiovascular agents, CNS agents, psychotherapeutic agents, and respiratory agents), as well as major subcategories and specific drugs within each subcategory. </p>");
	}
	if (ID == "dt_drugdetail"){
		helpmessage("<p><b>Drug mentions by drug detail</b></p><p><b>Cardiovascular agents</b> - these tables show only mentions for cardiovascular agents (e.g., beta-adrenergic blocking agents), including major subcategories and specific drugs within each category.</p><p><b>Central nervous system agents</b> - these tables show only mentions for CNS agents (e.g., analgesics), including major subcategories and specific drugs within each category.</p><p><b>Major substances of abuse</b> - these tables show only mentions for the 15 major substances of abuse as defined by DAWN, including major drugs (e.g., marijuana), and specific terms for each major drug (e.g., &quot;grass,&quot; cannabinoids, THC).</p><p><b>Psychotherapeutic agents</b> - these tables show only mentions for psychotherapeutic agents (e.g., benzodiazepines), including major subcategories and specific drugs within each category.</p><p><b>Respiratory agents</b> - these tables show only mentions for respiratory agents (e.g., antihistamines), including major subcategories and specific drugs within each category.</p>");
	}
	if (ID == "dt_majorsubs"){
		helpmessage("<p><b>Individual Drugs</b></p><p>Separate tables are produced for 15 major drugs of abuse. If one of these drugs is selected, the rows and columns of the table will show statistics for that drug in the designated geographic area and time period. The 15 drugs are (in alphabetical order):</p><blockquote><p> Alcohol-in-combination<br>Amphetamines<br>Cocaine<br>Combinations of major substances<br>Flunitrazepam (Rohypnol)<br>GHB (gamma hydroxy-butyrate)<br>Heroin<br>Inhalants<br>Ketamine<br>LSD<br>Marijuana<br>MDMA (methylenedioxymethamphetamine, or &quot;ecstasy&quot;)<br>Methamphetamine<br>Miscellaneous hallucinogens<br>PCP</p></blockquote>");
	}
	if (ID == "dt_showwith"){
		helpmessage("<p><b>Show With</b></p><p>All tables show trends over time. Some also show the drug(s) of interest by patient demographics or episode characteristics.</p><blockquote><p><b>Patient Demographics</b> - three variables form the row headings (Gender, Race/Ethnicity, and Age), while time intervals (year or half-year) form the column headings.</p><p><b>Episode Characteristics</b> - four variables form the row headings (Drug Concomitance, Drug Use Motive, Reason for ED Contact, Patient Disposition) while time intervals (year or half-year) form the column headings. (Note: Rates are not available when &quot;episode characteristics&quot; is selected.)</p><p><b>Trends Only</b> - this term describes tables in which neither patient demographics nor episode characteristics are shown. Instead, the table shows statistics for the selected drug(s), within the selected geographic area, over time.</p></blockquote>");
	}
	if (ID == "dt_statistic"){
		helpmessage("<p><b>Statistic</b></p><p>Three types of statistics are available for most tables: estimates, rates, and relative standard errors (RSEs).</p><blockquote><p><b>Estimates</b> - the table shows the estimated number of drug mentions associated with the selected criteria.</p><p><b>Rates</b> - the table shows the estimated rate of drug mentions per 100,000 population. Rates are especially useful when you want to make valid comparisons across metropolitan areas. </p><p><b>RSEs</b> - the table provides the relative standard errors (RSEs) associated with the corresponding &quot;estimates&quot; table.</p></blockquote>");
	}
	if (ID == "dt_period"){
		helpmessage("<p><b>Period</b></p><p>The column headings in each table represent periods of time. If you select &quot;Year,&quot; each column heading is a full year (i.e., 1994, 1995, &#133; 2001). If you select &quot;Half Year,&quot; each column heading will be a 6-month period (Jan-Jun 1997, Jul-Dec 1997&#133; Jul-Dec 2001).</p>");
	}
	}

function helpmessage(st){
	
	myWindow = window.open("", "alerts","'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=400,height=450'");
	myWindow.document.open();
	//myWindow.document.write('<html><head>\n<title>DAWN Help</title>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n</head>\n<body bgcolor="#FFFFFF" text="#000000">');
	//myWindow.document.write('\n<p><a href="javascript:window.close()"><b>CLOSE</b></a></p>');
	//myWindow.document.write('Help Message: ');
	//myWindow.document.write('<p>' + st + '</p>');
	//myWindow.document.write('</body></html>');

	myWindow.document.write('<html>');
	myWindow.document.write('<head>');
	myWindow.document.write('<title>DAWN Help</title>');
	myWindow.document.write('</head>');
	myWindow.document.write('<body bgcolor="#FFFFFF" text="#000000">');
	myWindow.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
	myWindow.document.write('<tr>');
	myWindow.document.write('<td background="/old_dawn/images/helpbanner_bkg.gif"><img src="/old_dawn/images/helpbanner.gif" width="300" height="90"></td>');
	myWindow.document.write('</tr>');
	myWindow.document.write('<tr>');
	myWindow.document.write('<td><img src="/old_dawn/images/helptitle.gif" width="350" height="36"><br>');
	myWindow.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="15">');
	myWindow.document.write('<tr>');
	myWindow.document.write('<td><font face="Arial, Helvetica, sans-serif">' + st + '</font></td>');
	myWindow.document.write('</tr>');
	myWindow.document.write('</table>');
	myWindow.document.write('</td>');
	myWindow.document.write('</tr>');
	myWindow.document.write('<tr>');
	myWindow.document.write('<td align="center"><br><p><font face="Arial, Helvetica, sans-serif"><a href="javascript:window.close()"><b>CLOSE</b></a></p></font><br></td>');
	myWindow.document.write('</tr>');
	myWindow.document.write('<tr>');
    myWindow.document.write('<td align="center" background="/old_dawn/images/helpbanner_bkg.gif">&nbsp;</td>');
	myWindow.document.write('</tr>');
	myWindow.document.write('</table>');
	myWindow.document.write('</body>');
	myWindow.document.write('</html>');
	//myWindow.document.close();
}