// JavaScript Document

<!-- Original:  Dion (biab@iinet.net.au) -->
<!-- Web Site:  http://www.iinet.net.au/~biab -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var item = new Array();


// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("index.html","","Homepage of RRU","index,main,start,home,front","The main page of RRU's website.");
c++; item[c]=new Array("about.html","","About Records Reports & Update","about,author,contact,email,who","About The RRU and its staff.");
c++; item[c]=new Array("about.html","","Managing Director","about,author,contact,email,who","Mary Grace L. Velandres - Accounting and Outsource.");
c++; item[c]=new Array("about.html","","Mary Grace L. Velandres","about,author,contact,email,who","Mary Grace L. Velandres - Accounting and Outsource.<br>Email: <a href=mailto:marygracevelandres@recordsreportsupdate.com>marygracevelandres@recordsreportsupdate.com</a>.");
c++; item[c]=new Array("http://rsm-alasoplascpas.com/index.php","","Alas, Oplas & Co., CPAs","about,author,contact,email,who","Alas, Oplas & Co., CPAs is an affiliated company that handles audit services.");
c++; item[c]=new Array("services.html","","Services","links,more,where,similar,friends","The services of RRU where prospective clients can search.");
c++; item[c]=new Array("services.html","","Services offered:","links,more,where,similar,friends","<b>SERVICES:</b><br>Fully-Outsourced Bookkeeping and Accounting<br>Supervision of Finance & Accounting Department<br>Computerization of Accounting Records & Financial Reporting<br>Outsource Bank Reconciliation, Update Account Receivables, Account Payable, Inventories, etc.<br>Payroll Services<br>Tax Compliance Services");
c++; item[c]=new Array("contact.php","","Contact Infomation of RRU","content,main,focus","Contact Records Reports & Update.");
c++; item[c]=new Array("contact.php","","Location Of RRU","content,main,focus","Address: 7/F Philippine AXA Life Centre<br>1286 Sen. Gil Puyat Makati City,<br>Philippines 1200");
c++; item[c]=new Array("industries.html","","Industry Capabilities","content,main,focus","RRU handles Industry Capabilities.");
c++; item[c]=new Array("affiliate.html","","An affiliated company","content,main,focus","Alas, Oplas & CO., CPAs<br>BSU Compliance.");
c++; item[c]=new Array("http://bsucompliance.com","","BSU Compliance","content,main,focus","an affiliated company of RRU.");
c++; item[c]=new Array("logo.jpg","images/","Logo of RRU","link,image,logo,graphic","Records Reports & Update Logo, It's in a second level subdirectory.");


page="<html><head><title>Search Results</title></head><body bgcolor='#FFFFCE' style='font-family:Arial, Helvetica, sans-serif;'><center><table style='border-bottom:solid; border-top:solid; border-right:solid; border-left:solid; border-width:thin;' cellspacing=10 width=60%><b>S E A R C H &nbsp;&nbsp; R E S U L T</b>";


function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Total found: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
//  End -->

