<!-- Begin copyright - This must be retained and posted as is to use this script -->

<!--// This Script was created by Satadip Dutta. 
// Email: sat_dutta@post1.com  / satadipd@inf.com 
// URL:http://dutta.home.ml.org
// Version 1.1-IExp 
// Please honor my hard work, if you use a variant of this in your page, 
// then please email me :) and keep these comments in the Script.
// This code is Copyright (c) 1997 Satadip Dutta
// all rights reserved.
// License is granted to user to reuse this code on their own Web site 
// if, and only if, this entire copyright notice is included. The Web Site
// containing this  script   must be a not-for-profit ( non-commercial ) web site. 
// Exclusive written permission must be obtained before using  this version of the search engine
//-->

<!-- End copyright - This must be retained and posted as is to use this script -->

title = new Object();
desc = new Object();
links= new Object();
matched= new Object();
keywords= new Object();
found= new Object();
var temp=0;
// actual location or the item to be searched
// description of he location
// actual link
// percentage match found
// keywords as parsed from the input
// # of titles present in the database
title[0]=5
//no of keywords after parsing
keywords[0]=0
//no of  matches found.
found[0]=0

<!-- Begin List of Searchable Items -->

<!--put the list of the links and descriptions here!!-->

title[1]="Escola vía interior cursos tallers professor l'art chi treball corporal energètic tantien centres formació cursets Vlady Stévanovitch"
desc[1]="Pàgina inicial"
links[1]="index.htm"
matched[1]=0

title[2]="Marta Ribas Jeanne Houde Fabien Bastin"
desc[2]="Professors"
links[2]="professors.htm"
matched[2]=0

title[3]="curs setmantal Marta Ribas"
desc[3]="Cursos"
links[3]="cursos.htm"
matched[3]=0

title[4]="cursets tai chi chuan via interior Marta Ribas Jeanne Houde Fabien Bastin"
desc[4]="Tallers intensius"
links[4]="tallers.htm"
matched[4]=0


title[5]="Marta Ribas e-mail web escola via interior Portugal principal tantien"
desc[5]="Contactar"
links[5]="contact.htm"
matched[5]=0


<!-- End list of Searchable items -->

function search(){
var skeyword=document.searchengine.keywords.value.toLowerCase();
var check=1;
var pos=0;
var i=0;
var j=0;
var  itemp=0;
var config='';

while (true)
	{
	if (skeyword.indexOf("+") == -1 )
		{
		keywords[check]=skeyword;
		break;
		}
	pos=skeyword.indexOf("+");
	if (skeyword !="+")	
	{
	keywords[check]=skeyword.substring(0,pos);
	check++;
	}
	else
	{
	check--;
	break;
	}
	skeyword=skeyword.substring(pos+1, skeyword.length);	
	if (skeyword.length ==0)
		{
		check--;
		break;
		}
			 
	}
// the keywords have been put in keywords object.
keywords[0]=check;

// matching and storing the matches in matched
for ( i=1; i<=keywords[0];i++)
	{
	for (j=1;j<=title[0];j++)
		{
		if (title[j].toLowerCase().indexOf(keywords[i]) > -1 )
			{
			  matched[j]++;
			}
		}	
	}
// putting all the indexes of the matched records  in found

for (i=1;i<=title[0];i++)
{
	if (matched[i] > 0 )
		{
		  found[0]++;
		// increment the found 	
		  found[found[0]]=i;
			
		}	
}



for (i=1;i<=found[0]-1;i++)
	{
	for(j=i+1;j<=found[0];j++)
		{
		if ( matched[found[i]]< matched[found[j]] )
			{
			temp= found[j];
			found[j]=found[i];
			found[i]=temp;
			}
		}
	}

// end of sort

output = self;

output.document.write('<HTML>');
output.document.write('<HEAD>');
output.document.write('<script>');
output.document.write('window.onerror=new Function("return true")');
output.document.write('<\/script>');
output.document.write('<title> Search Results </title>');
output.document.write('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">');
output.document.write('<LINK REL=STYLESHEET TYPE="text/css" HREF="style.css" TITLE="style">');
output.document.write('</HEAD>');

output.document.write('<BODY style="font-family: arial; font-size: 12px; color: #ffffff;" background="23tile.gif">');
output.document.write('<TABLE WIDTH=742 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="699">');
  output.document.write('<TR>'); 
    output.document.write('<TD width="99" align="right"> <IMG SRC="images1/professors_03.gif" WIDTH=99 HEIGHT=48></TD>');
    output.document.write('<TD width="36"> <IMG SRC="images1/professors_04.gif" WIDTH=36 HEIGHT=48></TD>');
    output.document.write('<TD width="198" background="images1/professors_08.gif"> <IMG SRC="images1/professors_05.gif" WIDTH=198 HEIGHT=48></TD>');
    output.document.write('<TD background="images1/professors_08.gif" width="49">&nbsp; </TD>');
    output.document.write('<TD width="191" background="images1/professors_08.gif"> <IMG SRC="images1/results_07.gif" WIDTH=191 HEIGHT=48></TD>');
    output.document.write('<TD background="images1/professors_08.gif" width="39">&nbsp; </TD>');
    output.document.write('<TD width="22"><img src="images1/professors_09.gif" width=22 height=48></TD>');
    output.document.write('<TD rowspan="4" width="109" align="center" valign="top"><img src="images1/professors_10.gif" width="109" height="99">'); 
    output.document.write('</TD>');
  output.document.write('</TR>');
  output.document.write('<TR>'); 
    output.document.write('<TD height="7" align="right" valign="top" width="99"> <IMG SRC="images1/professors_13.gif" WIDTH=99 HEIGHT=18 align="top"></TD>');
    output.document.write('<TD height="7" width="36"> <IMG SRC="images1/professors_14.gif" WIDTH=36 HEIGHT=18></TD>');
    output.document.write('<TD height="7" colspan="4" align="center" valign="middle"><b><font style="font-size: 10px" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">::&nbsp;<a href="cursos.htm">&nbsp;cursos</a>&nbsp;&nbsp;::&nbsp;&nbsp;<a href="tallers.htm">tallers&nbsp;&nbsp;intensius</a>&nbsp;&nbsp;::&nbsp;&nbsp;<a href="contact.htm">contactar</a>&nbsp;&nbsp;::&nbsp;&nbsp;<a href="main.htm">retornar</a>&nbsp;&nbsp;::'); 
      output.document.write('</font></b></TD>');
    output.document.write('<TD height="7" width="22"></TD>');
  output.document.write('</TR>');
  output.document.write('<TR align="center" valign="top">'); 
    output.document.write('<TD width="99" height="20" align="right"><img src="images1/professors_21.gif" width="99" height="29" align="top"></TD>');
    output.document.write('<TD width="36" height="20"><img src="images1/professors_22.gif" width="36" height="29"></TD>');
    output.document.write('<TD colspan="4" height="20" valign="middle">');
      output.document.write('</TD>');
    output.document.write('<TD width="22" height="20">&nbsp;</TD>');
  output.document.write('</TR>');
  output.document.write('<TR>'); 
    output.document.write('<TD align="right" valign="top" width="99" height="31"><img src="images1/professors1_29.gif" width="99" height="32"></TD>');
    output.document.write('<TD width="36" background="images1/professors1_30.gif" height="31">&nbsp;</TD>');
    output.document.write('<TD width="198" background="images1/professors1_30.gif" height="31">&nbsp;</TD>');
    output.document.write('<TD width="49" background="images1/professors1_30.gif" height="31">&nbsp;</TD>');
    output.document.write('<TD width="191" background="images1/professors1_30.gif" height="31">&nbsp;</TD>');
    output.document.write('<TD width="39" background="images1/professors1_30.gif" height="31">&nbsp;</TD>');
    output.document.write('<TD width="22" align="left" valign="top" height="31"><img src="images1/professors_35.gif" width="22" height="4"></TD>');
  output.document.write('</TR>');
  output.document.write('<TR>'); 
    output.document.write('<TD align="right" valign="top" width="99" background="images1/back_left.gif" height="579" bgcolor="#303852">');
      output.document.write('</TD>');
    output.document.write('<TD style="padding-top: 0px; padding-left: 40px; padding-right: 40px; padding-bottom: 40px" colspan="7" height="400" align="left" valign="top">'); 
		
output.document.write(' The Keyword(s) you searched : '.big() )
for (i=1;  i<=keywords[0]; i++)
	{
	output.document.write( keywords[i].bold() +"   ");
	}
output.document.write('<br>');

if (found[0]==0)
	{
	//alert(found[0]);
	output.document.write('<hr>');
	output.document.write("<b>No matches resulted in this search </b> <br>");
	output.document.write("You may close the results and reduce the length/number  of the keywords  <br>");
	}
else
	{
	// data has been found
	output.document.write(" <hr> <b> The Results of the search are  : </b>  ");
	output.document.write( found[0] +"  Entries found  ".italics());
	output.document.write("<hr>");
	output.document.write("<table border=0 width=100%>");
	for (i=1; i<=found[0];i++)
		{
		output.document.write("<tr><td valign=top>");
		output.document.write("<h4>" +i +"</h4>");
		output.document.write("<td valign=top>");
		itemp=found[i];
		output.document.write(desc[itemp].bold() +"<br>" + 
		links[itemp].link(links[itemp])+ "<br>");
		temp= (matched[itemp]/keywords[0])*100
		output.document.write("<i> Matched  with keywords  : " +temp+" %  </i>" );
		matched[itemp]=0
		} 
	found[0]=0;
	output.document.write("</table>");
	}
//output.document.write ("<input type='button' value='Start Another Search' onClick = 'self.close()'"); 
//output.document.write ("<center></form>");


	output.document.write('</TD>');
  output.document.write('</TR>');
output.document.write('</TABLE>');

output.document.write('</BODY>');
output.document.write('</HTML>');  

output.document.close();
}
-->