// 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();

/* Here is where all the magic happens.  
    Just enter as many additional pages that
    that you want to search, then fill in the
    additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("index.html","","Homepage of BSU","index,main,start,home,front","Welcome page, where visitors and clients first to see in our site.");
c++; item[c]=new Array("aboutus.html","","About BSU & Compliance","about,author,contact,email,who","All about BSU  & Compliance its history and the people working with.");
c++; item[c]=new Array("aboutus.html","","BSU & Compliance","about,author,contact,email,who","General information about the creator of the site and what the site is about.");
c++; item[c]=new Array("aboutus.html","","Managing Director","about,author,contact,email,who","Racquel O. Villarante is the Managing Director of BSU.");
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("index.html","Records, Reports & Update","","about,author,contact,email,who","Records, Reports & Update is one of the affiliated company of BSU that handles bookkeeping and accounting.");
c++; item[c]=new Array("services.html","","Services","links,more,where,similar,friends","The services of BSU where prospective clients can search.");
c++; item[c]=new Array("service_corporate.html","","Corporate Secretarial Services","links,more,where,similar,friends","Corporate Secretarial Services is one of the services of BSU.");
c++; item[c]=new Array("service_bsetup.html","","Business Set Up and Government Registration","links,more,where,similar,friends","Business Set Up and Government Registration.");
c++; item[c]=new Array("service_compliance.html","","Compliance of Government Reportorial Requirements","links,more,where,similar,friends","Compliance of Government Reportorial Requirements.");
c++; item[c]=new Array("service_restructuring.html","","Corporate Restructuring","links,more,where,similar,friends","Corporate Restructuring.");
c++; item[c]=new Array("service_assistance.html","","Assistance in Obtaining Government Tax Incentives Program","links,more,where,similar,friends","Assistance in Obtaining Government Tax Incentives Program.");
c++; item[c]=new Array("contact.php","","Contact Infomation of BSU","content,main,focus","Contact Information of Business Set Up and Compliance.");
c++; item[c]=new Array("contact.php","","Location Of BSU & Compliance","content,main,focus","Address:5th Floor, Angeluz Plaza Building 104 V.A. Rufino St., Legaspi Village Makati City, Philippines 1220<br>Telephone Number(s): 	 (632) 751-5115 ||  (632) 750-6191 ||  (632) 751-5114 <br>Fax Number: (632) 815-4900<br>Email Addres:<a href=mailto:bsumanila@bsucompliance.com>bsumanila@bsucompliance.com</a>");
c++; item[c]=new Array("contact.php","","Address Of BSU & Compliance","content,main,focus","Address:5th Floor, Angeluz Plaza Building 104 V.A. Rufino St., Legaspi Village Makati City, Philippines 1220");
c++; item[c]=new Array("logo.png","images/","Logo of BSU","link,image,logo,graphic","BSU Logo, It's in a second level subdirectory.");
c++; item[c]=new Array("map.jpg","images/","Makati Map","link,image,logo,graphic","Located at Makati click the link.");


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=70%>";


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 -->

