


/***********************************************************************
	File Name: jsButtons.js
	Created: 02/20/2001
	Author: Brian Yu
	Functions/Subs:  Image related functions.
	Description: Buttons include for Harris County
	Comments: N/A
***********************************************************************/

//****************************************************
//	Imaging
//****************************************************

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;		
		return rslt;
	}
}
var preloadFlag = false;
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
 	//IN A-Z order 
	//Images -A
	return ;
		B_Accept1 = newImage('common.web/images/Buttons/B_Accept_Over.gif');
		B_AddBatch1 = newImage("common.web/images/Buttons/B_AddBatch_Over.gif");
		B_AddCase1 = newImage("common.web/images/Buttons/B_AddCase_Over.gif");
		B_AddComments1 = newImage("common.web/images/Buttons/B_AddComments_over.gif");
		B_AddCustomer1 = newImage("common.web/images/Buttons/B_AddCustomer_over.gif");
		B_AddDeposition1 = newImage("common.web/images/Buttons/B_AddDeposition_Over.gif");
		B_AddDocument1 = newImage("common.web/images/Buttons/B_AddDocument_over.gif");
		B_AddDueAssmt1 = newImage("common.web/images/Buttons/B_AddDueAssmt_Over.gif");		
		B_AddEntireCase1 = newImage("common.web/images/Buttons/B_AddEntireCase_over.gif");
		B_AddExtension1 = newImage("common.web/images/Buttons/B_AddExtension_over.gif");
		B_AddFee1 = newImage("common.web/images/Buttons/B_AddFee_Over.gif");
		B_AddJudgment1 = newImage("common.web/images/Buttons/B_AddJudgment_over.gif");
		B_AddPayment1 = newImage("common.web/images/Buttons/B_AddPayment_Over.gif");
		B_AddRefund1 = newImage("common.web/images/Buttons/B_AddRefund_Over.gif");
		B_AddRow1 = newImage("common.web/images/Buttons/B_AddRow_over.gif");		
		B_AddToBasketGray1 = newImage("common.web/images/Buttons/B_AddToBasketGray_over.gif");
		B_AddToBasket1 = newImage("common.web/images/Buttons/B_AddToBasket_over.gif");		
		B_Add1 = newImage("common.web/images/Buttons/B_Add_over.gif");
		B_AdjustmentHistory1 = newImage("common.web/images/Buttons/B_AdjustmentHistory_over.gif");
		B_AdjustSearchResults1 = newImage("common.web/images/Buttons/B_AdjustSearchResults_over.gif");
		B_Application_1201 = newImage("common.web/images/Buttons/B_Application_120_over.gif");
		B_ApplyPayment = newImage("common.web/images/Buttons/B_ApplyPayment_Over.gif");
		B_Approve1 = newImage("common.web/images/Buttons/B_Approve_Over.gif");
	//Images -C
		B_Cancel1 = newImage("common.web/images/Buttons/B_Cancel_Over.gif");				
		B_CaseConversion1 = newImage("common.web/images/Buttons/B_CaseConversion_Over.gif");	
		B_CaseLookup1 = newImage("common.web/images/Buttons/B_CaseLookup_over.gif");	
		B_CaseParty1 = newImage("common.web/images/Buttons/B_CaseParty_Over.gif");	
		B_CashierSetup1 = newImage("common.web/images/Buttons/B_CashierSetup_Over.gif");			
		b_CheckAll1 = newImage("common.web/images/Buttons/b_CheckAll_over.gif");	
		b_ClearAll1 = newImage("common.web/images/Buttons/b_ClearAll_over.gif");	
		b_ClearCase1 = newImage("common.web/images/Buttons/b_ClearCase_over.gif");	
		b_ClearDate1 = newImage("common.web/images/Buttons/b_ClearDate_over.gif");	
		B_Clear_Over1 = newImage("common.web/images/Buttons/B_Clear_Over.gif");	
		B_Close_Over1 = newImage("common.web/images/Buttons/B_Close_Over.gif");	
		B_Comments1 = newImage("common.web/images/Buttons/B_Comments_100_over.gif");	
		b_CommitOnly1 = newImage("common.web/images/Buttons/b_CommitOnly_over.gif");	
		b_Commit1 = newImage("common.web/images/Buttons/b_Commit_over.gif");	
		B_CaseConversion1 = newImage("common.web/images/Buttons/B_CaseConversion_Over.gif");
		B_Consolidate1 = newImage("common.web/images/Buttons/B_Consolidate_over.gif");		
		B_ConvertReceipt1 = newImage("common.web/images/Buttons/B_ConvertReceipt_over.gif");	
		B_ConvertToGenMin1 = newImage("common.web/images/Buttons/B_ConvertToGenMin_over.gif");	
		B_ConvertToJuvenile1 = newImage("common.web/images/Buttons/B_ConvertToJuvenile_over.gif");	
		B_CustomerHistory1 = newImage("common.web/images/Buttons/B_CustomerHistory_over.gif");	
		B_CustomerSearch1 = newImage("common.web/images/Buttons/B_CustomerSearch_over.gif");	
	//Images -D
		B_DailyStatusReport1 = newImage("common.web/images/Buttons/B_DailyStatusReport_over.gif");	
		B_DefendantNoShow1 = newImage("common.web/images/Buttons/B_DefendantNoShow_over.gif");	
		B_DeleteAll_Over1 = newImage("common.web/images/Buttons/B_DeleteAll_Over.gif");			
		B_DeleteDocument1 = newImage("common.web/images/Buttons/B_DeleteDocument_over.gif");	
		B_DeleteRevision1 = newImage("common.web/images/Buttons/B_DeleteRevision_over.gif");	
		B_Delete_Over1 = newImage("common.web/images/Buttons/B_Delete_Over.gif");	
		B_DocHist_Over1 = newImage("common.web/images/Buttons/B_DocHist_Over.gif");	
		B_Download_Over1 = newImage("common.web/images/Buttons/B_Download_Over.gif");	
	//Images -E
		B_Email95_over1 = newImage("common.web/images/Buttons/B_Email95_over.gif");	
		B_ExportChargesReport1 = newImage("common.web/images/Buttons/B_ExportChargesReport_over.gif");	
		B_ExportListFeeReport1 = newImage("common.web/images/Buttons/B_ExportListFeeReport_over.gif");	
		B_Expunge_Over1 = newImage("common.web/images/Buttons/B_Expunge_Over.gif");	
	//Images -F	
		B_Fax1 = newImage("common.web/images/Buttons/B_Fax_over.gif");	
		B_FeeCodeSummary1 = newImage("common.web/images/Buttons/B_FeeCodeSummary_over.gif");	
		B_FinalNotice1 = newImage("common.web/images/Buttons/B_FinalNotice_over.gif");
		
		B_FirstNotice1 = newImage("common.web/images/Buttons/B_FirstNotice_over.gif");	
		B_GenerateBills1 = newImage("common.web/images/Buttons/B_GenerateBills_Over.gif");	
		B_GetSysTotals1 = newImage("common.web/images/Buttons/B_GetSysTotals_Over.gif");
		B_History_Over1 = newImage("common.web/images/Buttons/B_History_Over.gif");	
		B_Inspect_Over1 = newImage("common.web/images/Buttons/B_Inspect_Over.gif");	
		b_JIMSCaseLookup1 = newImage("common.web/images/Buttons/b_JIMSCaseLookup_over.gif");
		b_LinkToBatch1 = newImage("common.web/images/Buttons/b_LinkToBatch_over.gif");	
		B_Login_Over1 = newImage("common.web/images/Buttons/B_Login_Over.gif");	
		B_Lookup_Over1 = newImage("common.web/images/Buttons/B_Lookup_Over.gif");
		B_MoveNode1 = newImage("common.web/images/Buttons/B_MoveNode_over.gif");	
		B_MoveToReImage_over1 = newImage("common.web/images/Buttons/B_MoveToReImage_over.gif");	
		b_NewAdjustment_over1 = newImage("common.web/images/Buttons/b_NewAdjustment_over.gif");
		B_NewComment_over1 = newImage("common.web/images/Buttons/B_NewComment_over.gif");	
		B_NewCustomer_over1 = newImage("common.web/images/Buttons/B_NewCustomer_over.gif");	
		B_NewRevision_Over1 = newImage("common.web/images/Buttons/B_NewRevision_Over.gif");
		B_NewSearch_Over1 = newImage("common.web/images/Buttons/B_NewSearch_Over.gif");	
		B_NewTransaction_Over1 = newImage("common.web/images/Buttons/B_NewTransaction_Over.gif");	
		B_New_Over1 = newImage("common.web/images/Buttons/B_New_Over.gif");
		
		B_Next_Over1 = newImage("common.web/images/Buttons/B_Next_Over.gif");	
		B_NoticeOfDefaultLetter_over1 = newImage("common.web/images/Buttons/B_NoticeOfDefaultLetter_over.gif");	
		B_NoticeOfDefault_over1 = newImage("common.web/images/Buttons/B_NoticeOfDefault_over.gif");
		B_PartialPayment_over1 = newImage("common.web/images/Buttons/B_PartialPayment_over.gif");	
		B_PaymentComplete_Over1 = newImage("common.web/images/Buttons/B_PaymentComplete_Over.gif");	
		B_PaymentPlan_120_over1 = newImage("common.web/images/Buttons/B_PaymentPlan_120_over.gif");
		B_Payment_100_over1 = newImage("common.web/images/Buttons/B_Payment_100_over.gif");	
		B_Print190_over1 = newImage("common.web/images/Buttons/B_Print190_over.gif");	
		b_PreSystemCase_over1 = newImage("common.web/images/Buttons/b_PreSystemCase_over.gif");
		B_Print95_over1 = newImage("common.web/images/Buttons/B_Print95_over.gif");	
		B_PrintAllRpts_Over1 = newImage("common.web/images/Buttons/B_PrintAllRpts_Over.gif");	
		b_PrintCommit_over1 = newImage("common.web/images/Buttons/b_PrintCommit_over.gif");
		B_PrintCostBills_Over1 = newImage("common.web/images/Buttons/B_PrintCostBills_Over.gif");	
		B_PrintCostStmt_Over1 = newImage("common.web/images/Buttons/B_PrintCostStmt_Over.gif");	
		b_PrintProcessCommit_over1 = newImage("common.web/images/Buttons/b_PrintProcessCommit_over.gif");
		
		B_PrintReport_over1 = newImage("common.web/images/Buttons/B_PrintReport_over.gif");	
		B_Print_over1 = newImage("common.web/images/Buttons/B_Print_over.gif");	
		B_ProductionSummaryRpt_over1 = newImage("common.web/images/Buttons/B_ProductionSummaryRpt_over.gif");
		B_QuickSearch_Over1 = newImage("common.web/images/Buttons/B_QuickSearch_Over.gif");	
		b_Refresh_over1 = newImage("common.web/images/Buttons/b_Refresh_over.gif");	
		B_Rejects_Over1 = newImage("common.web/images/Buttons/B_Rejects_Over.gif");
		B_Reject_Over1 = newImage("common.web/images/Buttons/B_Reject_Over.gif");	
		B_RemoveAll190_over1 = newImage("common.web/images/Buttons/B_RemoveAll190_over.gif");	
		B_RemoveAllUnchecked_over1 = newImage("common.web/images/Buttons/B_RemoveAllUnchecked_over.gif");
		
		
		b_RemoveAll_over1 = newImage("common.web/images/Buttons/b_RemoveAll_over.gif");	
		B_ReprintReceipt_over1 = newImage("common.web/images/Buttons/B_ReprintReceipt_over.gif");	
		B_ResendAll_over1 = newImage("common.web/images/Buttons/B_ResendAll_over.gif");
		B_ResetPwd_Over1 = newImage("common.web/images/Buttons/B_ResetPwd_Over.gif");	
		B_Reset1 = newImage("common.web/images/Buttons/B_Reset_Over.gif");	
		b_ResubmitAll_over1 = newImage("common.web/images/Buttons/b_ResubmitAll_over.gif");
		b_Resubmit_over1 = newImage("common.web/images/Buttons/b_Resubmit_over.gif");	
		B_RevHist_Over1 = newImage("common.web/images/Buttons/B_RevHist_Over.gif");	
		b_Revise_over1 = newImage("common.web/images/Buttons/b_Revise_over.gif");
		b_Routing_over1 = newImage("common.web/images/Buttons/b_Routing_over.gif");	
		B_RunAllReports_over1 = newImage("common.web/images/Buttons/B_RunAllReports_over.gif");	
		B_SaveGoToPayment_Over1 = newImage("common.web/images/Buttons/B_SaveGoToPayment_Over.gif");
		
		B_Save_Over1 = newImage("common.web/images/Buttons/B_Save_Over.gif");	
		b_SearchJIMS_over1 = newImage("common.web/images/Buttons/b_SearchJIMS_over.gif");	
		B_Search1 = newImage("common.web/images/Buttons/B_Search_Over.gif");
		B_Select_Over1 = newImage("common.web/images/Buttons/B_Select_Over.gif");	
		B_Submit_Over1 = newImage("common.web/images/Buttons/B_Submit_Over.gif");	
		B_TaskAverageReport_over1 = newImage("common.web/images/Buttons/B_TaskAverageReport_over.gif");
		
		
		
		
		
		
		preloadFlag = true;
	 
}

function MM_findObj(n, d) { //v3.0
	var p,i,x;  
	if(!d) d=document; 

	if(!(x=d[n])&&d.all) x=d.all[n]; 
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x= MM_findObj(n,d.layers[i].document); 
	return x;
}

 /* Functions that swaps images.*/ 
function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; 
  document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=
  3) if((x=MM_findObj(a[i]))!=null){
	document.MM_sr[j++]=x; 
	if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; 
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

/* Functions that handle preload. */
function MM_preloadImages() { //v3.0
	var d=document; 
	if(d.images){ 
		if(!d.MM_p) {
			d.MM_p= new Array();

		} var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
		for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ 
				d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
			}
	}
}


