var newWin;

function popUp(sSite)
{
	if (newWin)
	{
		newWin.close();
	}
	newWin = window.open('','helpWin','top=10,left=10,width=400,height=250,resizable,scrollbars');
	newWin.document.write('<html><head><title>Sioux Valley Help</title><style>BODY{FONT-WEIGHT: 400;FONT-SIZE: 10pt;COLOR: black;FONT-FAMILY: Verdana;}A{FONT-WEIGHT: 600;FONT-SIZE: 10pt;COLOR: blue;FONT-FAMILY: Verdana;TEXT-DECORATION: underline;}</style></head><body topmargin=10 leftmargin=10>');
	//write the content here
	if (sSite == 'discharges')
	{
		newWin.document.write('<b>Discharges</b><br>');
		newWin.document.write('The number of patients released from the hospital that received the selected diagnosis.');
	}
	if (sSite == 'min')
	{
		newWin.document.write('<b>Minimum</b><br>');
		newWin.document.write('The lowest accumulated charges, shortest length of stay and least amount paid to the hospital by patients for this diagnosis.');
	}
	if (sSite == 'average')
	{
		newWin.document.write('<b>Average</b><br>');
		newWin.document.write('The total accumulated charges, length of stays and amounts paid to the hospital by patients divided by the number of discharges for this diagnosis.  Generally, if the average is not similar to the median, this indicates significant variation from one patient to the next within the diagnosis.  If the average is similar to the median, this usually indicates less variation among discharges within the diagnosis. ');
	}
	if (sSite == 'median')
	{
		newWin.document.write('<b>Median</b><br>');
		newWin.document.write('The midpoint between the highest and lowest accumulated charges, length of stays and amounts paid to the hospital by patients.  If the median varies significantly from the average, this indicates the average may not be a reliable indicator.  If the median is similar to the average, this usually indicates less variation among discharges within the diagnosis. ');
	}
	if (sSite == 'maximum')
	{
		newWin.document.write('<b>Maximum</b><br>');
		newWin.document.write('The highest accumulated charges, longest length of stay and most amount paid to the hospital by patients for this diagnosis.  Charges and length of stay for a patient may range well above the average and median when a more aggressive type of treatment is required to treat the illness or the patient experiences a longer than anticipated time for recovery due to unexpected complications or the development of a new illness.  Additionally, long-standing health conditions such as diabetes or high blood pressure may require more resources than someone without such conditions.');
	}
	if (sSite == 'Charge')
	{
		newWin.document.write('<b>Charge</b><br>');
		newWin.document.write('Charges represent the amount billed by the hospital for a patient discharged for this diagnosis.  <b>Charges do not include physician fees.</b>  Accumulated charges for patients within the same diagnosis can vary greatly due to differences in medical complexity.  Patients with more severe symptoms or complications will generally accumulate more charges.');
	}
	if (sSite == 'LOS')
	{
		newWin.document.write('<b>Length of Stay</b><br>');
		newWin.document.write('Length of stay is the total number of days a patient stays in the hospital (patients discharged on the same day they are admitted are considered to have stayed in the hospital one day).  Length of stay for patients within the same diagnosis can vary greatly due to differences in medical complexity.  Patients with more severe symptoms or complications will generally require longer hospital stays.');
	}
	if (sSite == 'OutOfPocketwCoverage')
	{
		newWin.document.write('<b>Out of Pocket with Coverage</b><br>');
		newWin.document.write('Out of pocket with coverage reflects the amount a patient has paid to the hospital after insurance and/or government program (Medicare, Medicaid, etc.) payments are applied.  The amount a patient paid was influenced by their insurance coverage, the timing of their hospitalization in conjunction with their insurance coverage, their willingness to provide information to qualify for financial assistance and their ability to pay some or all of their obligation on a timely basis.');
	}
	if (sSite == 'OutOfPocketwoCoverage')
	{
		newWin.document.write('<b>Out of Pocket without Coverage</b><br>');
		newWin.document.write('Out of pocket without coverage reflects the amount a patient has paid to the hospital in the event they are not eligible for  government programs (Medicare, Medicaid, etc.) and do not have health insurance coverage.  The amount these patients paid was influenced by their willingness to provide information to qualify for financial assistance and their ability to pay some or all of their obligation on a timely basis.');
	}
	newWin.document.write('<p><center><a style="cursor:hand" onClick="window.close()" title="Close Window">Close Window</a></center></body></html>');
}