// $Header: /Ready Reckoner (2)/asproot/incost_calc/blankform/js/cross_scripting.js 1     9/12/02 17:56 Thentzsc $ 
//-------------------------------------------------------------------------------- 
// Document	: cross_scripting.js
// Purpose 	: Common interface that allows individual routines to test for 
//		  Object Detection and run appropriate routines for that browser. 
//		  NS6.2.3, NS7, IE5.x. 
// Project 	: Ready Reckoner 
// History 	: PA 03-Oct-2002 (Created)
// Author 	: pash 
//-------------------------------------------------------------------------------- 
// Revision History 
//-------------------------------------------------------------------------------- 
// $Revision: 1 $ 
// $Log: /Ready Reckoner (2)/asproot/incost_calc/blankform/js/cross_scripting.js $ 
//
//1     9/12/02 17:56 Thentzsc
//added from uat server due to corruption problems
//
//1     15/11/02 17:40 Pash
//--------------------------------------------------------------------------------

//--------------------------------------------------------------------------------
// Purpose		Attaches keypress events to textboxes and renames classes for
//			textboxes when it detects Netscape
//	
// Parameters		None
//
// Returns 		nothing			
//
// History		PA 07-Nov-2002 v0.1 (Created) 
//
// Comment		The key press event is found in Editmasks.js
//--------------------------------------------------------------------------------
function NS_Startup() 
{

	// - Dealing with Incident, change classes
	document.getElementById("txtFirstAid_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtFirstAid_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtFirstAid_cost").setAttribute("class","calcTxtInput2a");
	//row 2
	document.getElementById("txtTaking_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtTaking_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtTaking_cost").setAttribute("class","calcTxtInput2a");
	//row 3
	document.getElementById("txtMaking_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtMaking_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtMaking_cost").setAttribute("class","calcTxtInput2a");
	//row 4
	document.getElementById("txtFireFighting_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtFireFighting_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtFireFighting_cost").setAttribute("class","calcTxtInput2a");
	//row 5
	document.getElementById("txtImmediateDowntime_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtImmediateDowntime_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtImmediateDowntime_cost").setAttribute("class","calcTxtInput2a");	
	//row 6
	document.getElementById("txtDealingOther_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtDealingOther_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtDealingOther_cost").setAttribute("class","calcTxtInput2a");	

	// - Investigation of Incident, change classes
	document.getElementById("txtStaffTimeInvestigate_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtStaffTimeInvestigate_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtStaffTimeInvestigate_cost").setAttribute("class","calcTxtInput2a");
	//row 2
	document.getElementById("txtMeetings_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtMeetings_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtMeetings_cost").setAttribute("class","calcTxtInput2a");
	//row 3
	document.getElementById("txtTimeSpentHSE_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtTimeSpentHSE_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtTimeSpentHSE_cost").setAttribute("class","calcTxtInput2a");
	//row 4
	document.getElementById("txtConsultantFees_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtConsultantFees_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtConsultantFees_cost").setAttribute("class","calcTxtInput2a");
	//row 5
	document.getElementById("txtInvestigationOther_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtInvestigationOther_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtInvestigationOther_cost").setAttribute("class","calcTxtInput2a");	

	// - Getting back to business, change classes
	document.getElementById("txtAssesing_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtAssesing_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtAssesing_cost").setAttribute("class","calcTxtInput2a");
	//row 2
	document.getElementById("txtRecovering_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtRecovering_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtRecovering_cost").setAttribute("class","calcTxtInput2a");	
	//row 3
	document.getElementById("txtCleaningUp_cost").setAttribute("class","calcTxtInput2a");
	//row 4
	document.getElementById("txtBringing_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtBringing_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtBringing_cost").setAttribute("class","calcTxtInput2a");	
	//row 5
	document.getElementById("txtRepairing_cost").setAttribute("class","calcTxtInput2a");
	//row 6
	document.getElementById("txtHiringPurchasing_cost").setAttribute("class","calcTxtInput2a");
	//row 7
	document.getElementById("txtGettingBackOther_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtGettingBackOther_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtGettingBackOther_cost").setAttribute("class","calcTxtInput2a");

	// - Business Costs
	//row 1
	document.getElementById("txtSalaryCostsInjPersons_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtSalaryCostsInjPersons_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtSalaryCostsInjPersons_cost").setAttribute("class","calcTxtInput2a");
	//row 2
	document.getElementById("txtSalaryCostsReplacement_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtSalaryCostsReplacement_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtSalaryCostsReplacement_cost").setAttribute("class","calcTxtInput2a");
	//row 3
	document.getElementById("txtLostTime_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtLostTime_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtLostTime_cost").setAttribute("class","calcTxtInput2a");
	//row 4
	document.getElementById("txtOvertime_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOvertime_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOvertime_cost").setAttribute("class","calcTxtInput2a");
	//row 5
	document.getElementById("txtRecruitment_cost").setAttribute("class","calcTxtInput2a");
	//row 6
	document.getElementById("txtContractPenalties_cost").setAttribute("class","calcTxtInput2a");
	//row 7
	document.getElementById("txtCancelledOrders_cost").setAttribute("class","calcTxtInput2a");
	//row 8
	document.getElementById("txtBusinessCostsOther_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtBusinessCostsOther_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtBusinessCostsOther_cost").setAttribute("class","calcTxtInput2a");	

	// - Action to safeguard
	//row 1
	document.getElementById("txtReassuring_cost").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtProvidingAlt_cost").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtActionSafeguardOther_time").setAttribute("class","calcTxtInput2a");
	//row 2
	document.getElementById("txtActionSafeguardOther_rate").setAttribute("class","calcTxtInput2a");
	//row 3
	document.getElementById("txtActionSafeguardOther_cost").setAttribute("class","calcTxtInput2a");

	// - Sanctions and Penalties
	//row 1
	document.getElementById("txtCompensation_cost").setAttribute("class","calcTxtInput2a");
	//row 2
	document.getElementById("txtSolicitors_cost").setAttribute("class","calcTxtInput2a");
	//row 3
	document.getElementById("txtStaffTimeLegal_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtStaffTimeLegal_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtStaffTimeLegal_cost").setAttribute("class","calcTxtInput2a");
	//row 4
	document.getElementById("txtFinesCosts_cost").setAttribute("class","calcTxtInput2a");
	//row 5
	document.getElementById("txtInsurancePremiums_cost").setAttribute("class","calcTxtInput2a");
	//row 6
	document.getElementById("txtSanctionsOther_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtSanctionsOther_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtSanctionsOther_cost").setAttribute("class","calcTxtInput2a");

	// - Sanctions and Penalties
	//row 1
	document.getElementById("txtOther01_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther01_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther01_cost").setAttribute("class","calcTxtInput2a");
	//row 2
	document.getElementById("txtOther02_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther02_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther02_cost").setAttribute("class","calcTxtInput2a");
	//row 3
	document.getElementById("txtOther03_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther03_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther03_cost").setAttribute("class","calcTxtInput2a");
	//row 4
	document.getElementById("txtOther04_time").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther04_rate").setAttribute("class","calcTxtInput2a");
	document.getElementById("txtOther04_cost").setAttribute("class","calcTxtInput2a");


}
