<!--
	// Johnny Cison

	var mremValue=new Array(24);
	for (var i=0; i<24; i++)
	{	mremValue[i]=0;	}
	mremValue[4]=40; mremValue[5]=200; mremValue[6]=1;

	function RecalcDose()
	{
		if (document.getElementById)
		{
			var i,temp,tempImg,tempImgW,tempImgR,tempImgSrc;

			mremValue[0]=document.DoseChart.fElevation.options[document.DoseChart.fElevation.selectedIndex].value;

			for (i=0; i<3; i++)
			{
				if (document.DoseChart.fTerrestrial[i].checked)
				{	mremValue[1]=document.DoseChart.fTerrestrial[i].value;	}
			}

			mremValue[2]=0;
			if (document.DoseChart.fHouseContruction.checked)
			{	mremValue[2] += 7;	}

			mremValue[3]=0;
			if (document.DoseChart.fPowerPlantsNuclear.checked)
			{	mremValue[3] += 0.01;	}
			if (document.DoseChart.fPowerPlantsCoal.checked)
			{	mremValue[3] += 0.03;	}

			mremValue[7]=0;
			if (document.DoseChart.fLiveJet.value.length > 0)
			{
				document.DoseChart.fLiveJet.value=ToInt(document.DoseChart.fLiveJet.value);
				mremValue[7]=document.DoseChart.fLiveJet.value * 0.5;
			}

			mremValue[8]=0;
			if (document.DoseChart.fLiveTeeth.checked)
			{	mremValue[8] += 0.07;	}

			mremValue[9]=0;
			if (document.DoseChart.fLiveLuggage.checked)
			{	mremValue[9] += 0.002;	}

			mremValue[10]=0;
			if (document.DoseChart.fLiveTV.checked)
			{	mremValue[10] += 1;	}

			mremValue[11]=0;
			if (document.DoseChart.fLiveCPU.checked)
			{	mremValue[11] += 1;	}

			mremValue[12]=0;
			if (document.DoseChart.fLiveSmokeDetector.checked)
			{	mremValue[12] += 0.008;	}

			mremValue[13]=0;
			if (document.DoseChart.fLiveLantern.checked)
			{	mremValue[13] += 0.2;	}

			mremValue[14]=0;
			if (document.DoseChart.fLivePacemaker.checked)
			{	mremValue[14] += 100;	}


			mremValue[15]=0;
			if (document.DoseChart.fMedXRayExtremity.value.length > 0)
			{
				document.DoseChart.fMedXRayExtremity.value=ToInt(document.DoseChart.fMedXRayExtremity.value);
				mremValue[15]=document.DoseChart.fMedXRayExtremity.value * 1;
			}

			mremValue[16]=0;
			if (document.DoseChart.fMedXRayDental.value.length > 0)
			{
				document.DoseChart.fMedXRayDental.value=ToInt(document.DoseChart.fMedXRayDental.value);
				mremValue[16]=document.DoseChart.fMedXRayDental.value * 1;
			}

			mremValue[17]=0;
			if (document.DoseChart.fMedXRayChest.value.length > 0)
			{
				document.DoseChart.fMedXRayChest.value=ToInt(document.DoseChart.fMedXRayChest.value);
				mremValue[17]=document.DoseChart.fMedXRayChest.value * 6;
			}

			mremValue[18]=0;
			if (document.DoseChart.fMedXRayPelvisHip.value.length > 0)
			{
				document.DoseChart.fMedXRayPelvisHip.value=ToInt(document.DoseChart.fMedXRayPelvisHip.value);
				mremValue[18]=document.DoseChart.fMedXRayPelvisHip.value * 64;
			}

			mremValue[19]=0;
			if (document.DoseChart.fMedXRaySkullNeck.value.length > 0)
			{
				document.DoseChart.fMedXRaySkullNeck.value=ToInt(document.DoseChart.fMedXRaySkullNeck.value);
				mremValue[19]=document.DoseChart.fMedXRaySkullNeck.value * 20;
			}

			mremValue[20]=0;
			if (document.DoseChart.fMedXRayBariumEnema.value.length > 0)
			{
				document.DoseChart.fMedXRayBariumEnema.value=ToInt(document.DoseChart.fMedXRayBariumEnema.value);
				mremValue[20]=document.DoseChart.fMedXRayBariumEnema.value * 405;
			}

			mremValue[21]=0;
			if (document.DoseChart.fMedXRayUpperGI.value.length > 0)
			{
				document.DoseChart.fMedXRayUpperGI.value=ToInt(document.DoseChart.fMedXRayUpperGI.value);
				mremValue[21]=document.DoseChart.fMedXRayUpperGI.value * 245;
			}

			mremValue[22]=0;
			if (document.DoseChart.fMedCATScan.value.length > 0)
			{
				document.DoseChart.fMedCATScan.value=ToInt(document.DoseChart.fMedCATScan.value);
				mremValue[22]=document.DoseChart.fMedCATScan.value * 110;
			}

			mremValue[23]=0;
			if (document.DoseChart.fMedNuclear.value.length > 0)
			{
				document.DoseChart.fMedNuclear.value=ToInt(document.DoseChart.fMedNuclear.value);
				mremValue[23]=document.DoseChart.fMedNuclear.value * 14;
			}


			temp=0;
			for (i=0; i<24; i++)
			{
				temp += (parseFloat(mremValue[i]) * 1000);

				itemPtr=document.getElementById("mrem"+i);
				itemPtr.innerHTML=mremValue[i]+" mrem";
			}

			temp /= 1000;

			itemPtr=document.getElementById("mremT");
			itemPtr.innerHTML="Your Estimated Annual Radiation Dose:&nbsp; "+temp+" mrem";


			tempImg=(temp / 8766);

			if (tempImg < 1)
			{
				tempImgSrc='0';

				tempImg *= 10;
				tempImgW=Math.floor(tempImg);
				tempImgR=tempImg-tempImgW;

				if (tempImgR < 0.25)
				{	tempImgSrc=tempImgSrc+tempImgW;	}
				else if ((tempImgR >= 0.25) && (tempImgR < 0.75))
				{	tempImgSrc=tempImgSrc+tempImgW+'5';	}
				else if (tempImgR >= 0.75)
				{
					tempImgW++;
					tempImgSrc=tempImgSrc+tempImgW;
				}

				document['imgGeiger'].src='i/geiger/'+tempImgSrc+'.gif';
			}
			else if ((tempImg >= 1) && (tempImg < 5))
			{
				tempImg *= 10;
				tempImgW=Math.floor(tempImg);
				tempImgR=tempImg-tempImgW;

				if (tempImgR < 0.5)
				{	tempImgSrc=tempImgW;	}
				else if (tempImgR >= 0.5)
				{
					tempImgW++;
					tempImgSrc=tempImgW;
				}

				document['imgGeiger'].src='i/geiger/'+tempImgSrc+'.gif';
			}
			else
			{	document['imgGeiger'].src='i/geiger/50.gif';	}
		}
	}

	function ToInt(num)
	{
		var numStr=num.toString();
		var numNew="";
		for (var i=0; i<numStr.length; i++)
		{
			var numChar=numStr.charAt(i);
			if (numChar>="0" && numChar<="9")
			{	numNew=numNew+numChar;	}
		}
		return numNew;
	}

	function Nada()
	{}
// -->
