// script for site keyword search
var stp=0;
var find
 = 'bonaldi.htm~		Our Firm|			 buildings organisation organization experience architecture high technology building maintenance building renovation building reinstatement of defective building facades façades roof roofs basement basements design and documentation of facade cladding façade cladding new buildings client clients building owners building owner building developer building developers contractor contractors architect architects '
								+' financial investment institutions government agencies micro-computers computer cad c.a.d. claddings stone glass metal as\/nzs iso 9001:2000 australian building industry methods quality assurance recent projects project facade detailing façade detailing overcladding '
								+' facade repair façade repair repairs due diligence report reports north ryde nsw *'
 + 'bonaldi.htm#amp~		Our Firm - AMP|			 amp centre 50 bridge street sydney glazed fan roof amp society amp circular quay 56 pitt street sydney *'
 + 'bonaldi.htm#anz~		Our Firm - ANZ|			 anz bank headquarters melbourne 380 collins street *'
 + 'bonaldi.htm#123~		Our Firm - Avaya House|		 avaya house epping road double-glazed *'
 + 'bonaldi.htm#lyonpark~	Our Firm - Lyon Park Road|	 lyon park road model *'
 + 'bonaldi.htm#nauru~		Our Firm - Nauru House|		 nauru house 80 collins street model photo-montage *'
 + 'service.htm~		About Us|			 facade façade facades façades cost costs facade cladding façade cladding commercial building mechanical service mechanical services experienced consultant consultants design team defects water entry degradation of materials spalling technology suitability of materials understanding compatibility between materials long term behaviour assembly typical service architect design facade elevations façade elevations '
								+' set of drawings detailed specification workmanship performance testing requirements csiro sirowet test methods prototype sections scientist calling tenders contractor submissions modifications fabrication process fabrication processes fabricator checking of shop drawings quality assurance fabrication yard fabrication yards masonry stone metal glass diagnostic analysis water tightness deficiencies '
								+' waterproofing of roofs sub-contractors details descriptions penetrations connection connections parapets eaves balconies water tightness basement construction connection details movement joints membrane selections drainage designs specifications *'
 + 'service.htm#clients~	About Us - Clients|              architects builders building owners project managers property developers fabricators *'
 + 'service.htm#service~	About Us - Our Service|          system performance detailing structural calculations field mock-up shop site inspections maintenance program repair procedures expert testimony due diligence building code compliance checking *'
 + 'staff.htm#rjb~		Staff - Ric Bonaldi|		 principal staff ric bonaldi rico bonaldi rick bonaldi director of the company practice in australia switzerland registered architect victoria western australia fellow the institute of arbitrators australia the royal australian institute of architects *'
 + "staff.htm#daa~		Staff - David Appleford|	 david appleford architect cad computer program writing programming development of tender documents bonaldi (australia) pty ltd architects and building facade consultants façade consultants david appleford david allan appleford webmaster drawbase software design tender documents microsoft visual basic hpgl plot files postscript laser printer printers structural analysis section properties section-property calculations *"
 + 'contact.htm~		Contact Us|			 fax phone telephone e-mail email url website address site revised consultants ric bonaldi site revised report broken links broken link other faults add this site to your favourites favorites business hours *'
 + 'rjb.htm~			Ric Bonaldi Curriculum Vitae|	 curriculum vitae rico johann bonaldi ric rick education diploma graduate honours school of architecture and building zurich qualifications registered architect victoria western australia associate fellow royal australian institute of architects associate royal institutet of british architects institute of arbitrators australia building regulations building codes csiro life cycle performance shelter infrastructure '
								+' chairman of committee building research and development advisory committee BRDAC legislation building control act timber housing developing countries awards lecture experience waterproofing cladding design roofs basements melbourne university construction and '
								+' building technology high technology construction specialised expertise detailing multi storey office buildings melbourne perth commercial retail developments recycled buildings documentation contract administration high security prisons prison metal curtain wall curtain wall curtain-walls curtain-wall extrusion extrusions fixings pressure equalisation masonry metal glass cladding remedies leaking subterranean structures *' 

// + 'staff.htm#ngb~		Staff - Noel Brown|		 noel brown senior scientist building technology csiro highett victoria australia material science sealant sealants glass glazing general facade technology façade technology testing sirowet test c.s.i.r.o. *'


function initArray() {
	this.length=initArray.arguments.length
	for (var i=0;i<this.length;i++){
		this[i]=initArray.arguments[i]
	}
}
function trim(v) {
	while (v.lastIndexOf(' ')==v.length-1) {
		v=v.substring(0,v.length-1)
	}
	while (v.indexOf(' ')==0) {
		v=v.substring(v.indexOf(' ')+1,v.length+1)
	}
	while (v.indexOf('  ')>-1) {
		v=v.substring(0,v.indexOf('  ')+1)+v.substring(v.indexOf('  ')+2,v.length)
	}
	return v
}
function doSrch() {
sr=new initArray("4b","5b","8b","8b");
	if (sr[0]=="4b") parStr()
	findw = document.searcher.findword.value
	if (findw == "") {
	  alert ('You didn\'t specify a search term!');
	  return;
	}
	findw = trim(findw.toLowerCase())
	if (document.searcher.whole.checked == true) {
		findf=" "+findw+" "
	} else {
		findf=findw
	}
	disp = ""
	document.open()
		document.writeln('<HTML>\n<HEAD>')
		document.writeln('	<title>Found Pages<\/title>')
		document.writeln('	<link rel="Stylesheet" type="text\/css" href="style.css">')

		document.writeln('<\/HEAD>\n<BODY class="main">');
		document.writeln('<br><br><br><br><br><br><br><br>')
		document.writeln('<center>\n<form name="isn">')
		document.writeln('	<table rules="none" cellspacing=0 cellpadding=8 width=480 border=0 class="box">')
		document.writeln('		<tr>')
		document.writeln('			<td align="center" vAlign="top">')
		matches=0
		for (i=0;i<stp;i++){
			fold=sr[i].toLowerCase()
			if (fold.indexOf(findf)>-1){
				// matches found
				pos=sr[i].indexOf("~")
				pos1=sr[i].indexOf("|")
				disp="					<option value='"+sr[i].substring(0,pos)+"' onClick=''"
				if (matches==0) {
					document.writeln('				<select name="isn1" size=5>')
					disp+=" selected"
				}
				matches++; // Count "matches found"
				disp+=">"+sr[i].substring(pos+1,pos1)
				document.writeln(disp)
			}
		}
delete sr; // can't delete if defined with var
		if (matches==0) {
			document.writeln('					<p><br><b>I\'m sorry.&nbsp;&nbsp; I found no matches for "'+findw+'".<\/b><br>')
			document.writeln('					<br><br><\/p>')
			// a return button if no successful match
			document.writeln('					<table border=0 cellspacing=0 cellpadding=0>\n						<tr align="center">')
			document.writeln('							<td class="but" width=66 height=25>')
			document.writeln('								<input type="button" name="BackButton1" VALUE="Back" title=" Return "')
			document.writeln('								 onClick="history.go(-1)">\n')
			document.writeln('							<\/td>')
			document.writeln('						<\/tr>\n					<\/table>')
		} else {
			var what=""
			if (findw.indexOf(" ",0)>-1) {
				what="phrase"
			} else {
				what="word"
			}
			document.writeln('				<\/select>')
			document.writeln('			<\/td>')
			document.writeln('			<td align="center" vAlign="bottom">')
			if (matches==1) {
				document.writeln('				<p align="justify">The page at left was found using the '+what+' "'+findw+'".<\/p>')
			} else {
				document.writeln('				<p align="justify">The pages at left were found using the '+what+' "'+findw+'".<\/p>')
			}
			document.writeln('				<p align="center">')
			document.writeln('				<table border=0 cellspacing=0 cellpadding=0>\n						<tr align="center">')
			document.writeln('						<td class="gob" width=42 height=25>')
			document.writeln('							<input type="button" name="GoButton" VALUE="  Go  " title=" Go to selected page "')
			document.writeln('							 onClick="location.href=window.document.isn.isn1.options[window.document.isn.isn1.selectedIndex].value;">')
			document.writeln('						<\/td>')
			document.writeln('						<td>&nbsp;&nbsp;<\/td>')
			document.writeln('						<td class="but" width=66 height=25>')
			document.writeln('							<input type="button" name="BackButton2" VALUE="Back" title=" Return "')
			document.writeln('							 onClick="history.go(-1);">')
			document.writeln('						<\/td>\n						<\/tr>')
			document.writeln('				<\/table>')
			document.writeln('				<\/p>')
		}
		document.writeln('			<\/td>')
		document.writeln('		<\/tr>')
		document.writeln('	<\/table>\n<\/form>')
		document.writeln('<\/center>\n<\/BODY>\n<\/HTML>')
	document.close()
}
function parStr() {
	srs=find;
	var i=0;
	while (srs.indexOf("*")>0) {
		pos=srs.indexOf("*");
		sr[i]=srs.substring(0,pos);
		srs=srs.substring(pos+1,srs.length);
		i++;
		stp=i;
	}
}
