<!--
/*function for clearing all fields in form*/
function clearAllFlds(){
	for( x=0; x<(document.frmIncidentCalc.elements.length-7); x++ )
	{
	if( document.frmIncidentCalc.elements[x].name.search("cbx") != -1 )
	{
		document.frmIncidentCalc.elements[x].checked = false;
	}
	else if( document.frmIncidentCalc.elements[x].name.search("txt") != -1 )
		{
			document.frmIncidentCalc.elements[x].value = "";
		}
	}

	//Netscape only
	if(!document.all)
	{
	//get current location
	var strSection = document.getElementById("hdnFrmSectFlg").value;
	other_showallsects("tblSect","1","8");

	document.getElementById("txtDescrIncident").value = "";
	document.getElementById("txtDealingOther_name").value = "";
	document.getElementById("txtInvestigationOther_name").value = "";

	document.getElementById("txtGettingBackOther_name").value = "";
	document.getElementById("txtBusinessCostsOther_name").value = "";
	document.getElementById("txtActionSafeguardOther_name").value = "";

	document.getElementById("txtSanctionsOther_name").value = "";
	document.getElementById("txtOther01_name").value = "";
	document.getElementById("txtOther02_name").value = "";
	document.getElementById("txtOther03_name").value = "";
	document.getElementById("txtOther04_name").value = "";

	other_hidepartial("tblSect","1","8",strSection)
	
	}
}

/*function for clearing all Cost fields*/
function clearTimeFlds(){
	document.frmIncidentCalc.txtFirstAid_time.value = "";
	document.frmIncidentCalc.txtTaking_time.value = "";
	document.frmIncidentCalc.txtMaking_time.value = "";
	document.frmIncidentCalc.txtFireFighting_time.value = "";
	document.frmIncidentCalc.txtImmediateDowntime_time.value = "";
	document.frmIncidentCalc.txtDealingOther_time.value = "";
	document.frmIncidentCalc.txtStaffTimeInvestigate_time.value = "";
	document.frmIncidentCalc.txtMeetings_time.value = "";
	document.frmIncidentCalc.txtTimeSpentHSE_time.value = "";
	document.frmIncidentCalc.txtConsultantFees_time.value = "";
	document.frmIncidentCalc.txtInvestigationOther_time.value = "";
	document.frmIncidentCalc.txtAssesing_time.value = "";
	document.frmIncidentCalc.txtRecovering_time.value = "";
	document.frmIncidentCalc.txtBringing_time.value = "";
	document.frmIncidentCalc.txtGettingBackOther_time.value = "";
	document.frmIncidentCalc.txtSalaryCostsInjPersons_time.value = "";
	document.frmIncidentCalc.txtSalaryCostsReplacement_time.value = "";
	document.frmIncidentCalc.txtLostTime_time.value = "";
	document.frmIncidentCalc.txtOvertime_time.value = "";
	document.frmIncidentCalc.txtBusinessCostsOther_time.value = "";
	document.frmIncidentCalc.txtActionSafeguardOther_time.value = "";
	document.frmIncidentCalc.txtStaffTimeLegal_time.value = "";
	document.frmIncidentCalc.txtSanctionsOther_time.value = "";
	document.frmIncidentCalc.txtOther01_time.value = "";
	document.frmIncidentCalc.txtOther02_time.value = "";
	document.frmIncidentCalc.txtOther03_time.value = "";
	document.frmIncidentCalc.txtOther04_time.value = "";
}

/*function for clearing all Rate fields*/
function clearRateFlds(){
	document.frmIncidentCalc.txtFirstAid_rate.value = "";
	document.frmIncidentCalc.txtTaking_rate.value = "";
	document.frmIncidentCalc.txtMaking_rate.value = "";
	document.frmIncidentCalc.txtFireFighting_rate.value = "";
	document.frmIncidentCalc.txtImmediateDowntime_rate.value = "";
	document.frmIncidentCalc.txtDealingOther_rate.value = "";
	document.frmIncidentCalc.txtStaffTimeInvestigate_rate.value = "";
	document.frmIncidentCalc.txtMeetings_rate.value = "";
	document.frmIncidentCalc.txtTimeSpentHSE_rate.value = "";
	document.frmIncidentCalc.txtConsultantFees_rate.value = "";
	document.frmIncidentCalc.txtInvestigationOther_rate.value = "";
	document.frmIncidentCalc.txtAssesing_rate.value = "";
	document.frmIncidentCalc.txtRecovering_rate.value = "";
	document.frmIncidentCalc.txtBringing_rate.value = "";
	document.frmIncidentCalc.txtGettingBackOther_rate.value = "";
	document.frmIncidentCalc.txtSalaryCostsInjPersons_rate.value = "";
	document.frmIncidentCalc.txtSalaryCostsReplacement_rate.value = "";
	document.frmIncidentCalc.txtLostTime_rate.value = "";
	document.frmIncidentCalc.txtOvertime_rate.value = "";
	document.frmIncidentCalc.txtBusinessCostsOther_rate.value = "";
	document.frmIncidentCalc.txtActionSafeguardOther_rate.value = "";
	document.frmIncidentCalc.txtStaffTimeLegal_rate.value = "";
	document.frmIncidentCalc.txtSanctionsOther_rate.value = "";
	document.frmIncidentCalc.txtOther01_rate.value = "";
	document.frmIncidentCalc.txtOther02_rate.value = "";
	document.frmIncidentCalc.txtOther03_rate.value = "";
	document.frmIncidentCalc.txtOther04_rate.value = "";
}
//-->