The following is the code sample.
select ID,MODEL_NO,SERIAL_NO,DESCRIPT from loanerwhere status = 'Available' ) ORDER BY MODEL_NO,SERIAL_NO
</cfquery><script language="javascript">
<cfset EQcount = 1>
myarray = new Array()
<cfloop query="loan">
myarray[#EQcount#]= new Array()
myarray[#EQcount#][1] = "#ID#"
myarray[#EQcount#][2] = "#REPLACE(ucase(MODEL_NO),CHR(34),"","ALL")#"
myarray[#EQcount#][3] = "#ucase(SERIAL_NO)#"
<cfset EQcount = EQcount + 1>
</cfloop>