<!-- 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 -->
header = new Object();
footer = new Object();
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]=14
//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!!-->
header = '<HTML><HEAD><TITLE>Search<\/TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text\/html; charset=iso-8859-1"><link rel="stylesheet" href="css\/titlepage001.css" type="text\/css"><script type="text\/javascript" language="JavaScript1.2" src=".\/Lib\/menu.js"><\/script><script type="text\/javascript" language="JavaScript1.2" src=".\/Lib\/function.js"><\/script><\/HEAD><BODY LEFTMARGIN=0 TOPMARGIN=0><!-- ImageReady Slices (iscade.psd) --><TABLE WIDTH=100% HEIGHT=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR align="right"><TD HEIGHT=21 COLSPAN=5 class="TopBar"><a href="index.htm" class="TopLink">Home<\/a> <a href="sitemap.htm" class="TopLink">Site Map<\/a> <a href="about.htm" class="TopLink">About<\/a>&nbsp;&nbsp;<\/TD><\/TR><TR><TD colspan="5" class="LogoBar"> <IMG SRC="images\/rcm2logo.jpg" WIDTH=169 HEIGHT=72 ALT=""><\/TD><\/TR><TR><TD COLSPAN=5 class="HorNavBar">&nbsp; <\/TD><\/TR><TR><TD COLSPAN=2 ROWSPAN=2 align="left" valign="top" bgcolor="#CCDFF0"><img src="images\/spacer.gif" width="19height="1"><\/TD> <TD ROWSPAN=2><IMG SRC="images\/spacer.gif" WIDTH=11 HEIGHT=6 ALT=""><\/TD> <TD valign="top" class="TransBagText">&nbsp;<\/TD> <TD ROWSPAN=2 align="center" valign="top" class="LBContainer"> <!-- The Link Bags Starts Here... --><TABLE border="0" cellPadding="1" cellSpacing="0" class="utilitytablebg" width="187"><TBODY> <TR> <TD> <TABLE border="0" cellPadding="3" cellSpacing="0" class="clearbg" width="100%"> <TBODY><TR><TD align="center" class="utilitytableheader" colSpan="2">rcm2Consultancy <\/TD><\/TR><TR><TD colspan="2" height="1"><IMG alt="" border="0" height="3" src=".\/images\/spacer.gif" width="1"><\/TD><\/TR><TR vAlign="top"><TD align="right" width="10">.<\/TD><TD width="195" class="utility"> <a class="utility" href="http:\/\/www.rcm2.co.uk\/services\/Index.htm">RiskAssessement<\/a><\/TD><\/TR><TR vAlign="top"><TD align="right" width="10">.<\/TD><TD class="utility"><a class="utility" href="http:\/\/www.rcm2.co.uk\/services\/Index.htm">RiskMitigation<\/a><\/TD><\/TR><TR vAlign="top"><TD align="right" width="10">.<\/TD><TD class="utility"> <a class="utility" href="http:\/\/www.rcm2.co.uk\/services\/Index.htm">SafetyCase Development<\/a><\/TD><\/TR><TR><TD colSpan="2" height="1"><IMG alt="" border="0" height="3" src=".\/images\/spacer.gif" width="1"><\/TD><\/TR> <\/TBODY><\/TABLE><\/TD> <\/TR><\/TBODY><\/TABLE><!-- Second Bag Starts Here --><br> <TABLE border="0" cellPadding="1" cellSpacing="0" class="utilitytablebg" width="187"><TBODY> <TR> <TD> <TABLE border="0" cellPadding="3" cellSpacing="0" class="clearbg" width="100%"> <TBODY><TR><TD align="center" class="utilitytableheader" colSpan="2">RCM2Limited<\/TD><\/TR><TR><TD colSpan="2" height="1"><IMG alt="" border="0" height="3" src=".\/images\/spacer.gif" width="1"><\/TD><\/TR><TR vAlign="top"><TD align="right" width="10">.<\/TD><TD width="195" class="LinkBagText"> <a href="http:\/\/www.achilles.com" class="utility">AMember of Link Up<\/a><\/TD><\/TR><TR vAlign="top"><TD align="right" width="10">.<\/TD><TD class="LinkBagText"><a href="http:\/\/www.dtismart.com" class="utility">DTISMART award Winner<\/a><\/TD><\/TR><TR vAlign="top"><TD align="right" width="10">.<\/TD><TD class="LinkBagText"><a href="http:\/\/www.rcm2.co.uk\/services\/Index.htm" class="utility">rcm2Services<\/a><\/TD><\/TR><TR><TD colSpan="2" height="1"><IMG alt="" border="0" height="3" src=".\/images\/spacer.gif" width="1"><\/TD><\/TR> <\/TBODY><\/TABLE><\/TD> <\/TR><\/TBODY><\/TABLE><!-- The Link Bags End Here... --><br> <a href="http:\/\/www.businesslink.gov.uk"><img src="images\/blLogo.JPG" width="80" height="60" border="0"><\/a> <br> <br> <a href="http:\/\/www.rcm2.co.uk-ethos.htm"><img src="images\/iinLogo.JPG" width="80" height="60" border="0"><\/a><\/TD><\/TR><TR> <TD HEIGHT=100% valign="top" class="TransBagText">';


footer = '<\/TD><\/TR><TR align="center"><TD COLSPAN=5 class="FooterBar"> <a href="privacy.htm" class="FootLink">Privacy Policy<\/a> &shy; <a href="legal.htm" class="FootLink"> Legal<\/a> &shy; <a href="quality.htm" class="FootLink">Quality<\/a> &shy; <a href="\/support\/Index.htm" class="FootLink"> Support<\/a> &shy; <a href="contact.htm" class="FootLink">Contact<\/a> &shy; <a href="about.htm" class="FootLink"> About Us<\/a> <\/TD><\/TR><TR><TD HEIGHT=35 COLSPAN=5 bgcolor="#F2F2F2" class="FooterText">Copyright (c) rcm2 2005 <br>All rights reserved.<\/TD><\/TR><\/TABLE><!-- End ImageReady Slices --><\/BODY><\/HTML>';
title[1]="Introduction FAQs Java JavaScript beginner"
desc[1]="JavaScript Primer (Part 1 of 2) "
links[1]="http://www.javascriptkit.com/primer1.htm"
matched[1]=0

title[2]="objects document function parameter last modified date"
desc[2]="DXL Script Primer (Part 2 of 2) "
links[2]="http://www.iscade.com/primer2.htm"
matched[2]=0

title[3]="alert confirm prompt box pop up dialog"
desc[3]="Creating Alert, Confirm, and Prompt Boxes"
links[3]="http://www.iscade.com/alert.htm"
matched[3]=0

title[4]="event handler onClick onLoad onMouseover onMouseout onUnload"
desc[4]="Understanding Event Handlers in DXL Script"
links[4]="http://www.iscade.com/event.htm"
matched[4]=0


title[5]="object model tree accessing forms "
desc[5]="Accessing and Validating Forms Using DXL Script (Part 1 of 2)"
links[5]="http://www.iscade.com/form1.htm"
matched[5]=0

title[6]="form validation onBlur onSubmit"
desc[6]="Accessing and Validating Forms Using DXL Script (Part 2 of 2)"
links[6]="http://www.iscade.com/form2.htm"
matched[6]=0



title[7]="date object write html setTimeout function"
desc[7]="Creating Time Dependent Scripts using DXL Script (Part 1 of 2)"
links[7]="http://www.iscade.com/time1.htm"
matched[7]=0


title[8]="live clock watermark"
desc[8]="Creating Time Dependent Scripts using DXL Script (Part 2 of 2)"
links[8]="http://www.iscade.com/time2.htm"
matched[8]=0


title[9]="image preload rollover effect filter"
desc[9]="Images and DXL Script- Apples and Apples (Part 1 of 2)"
links[9]="http://www.iscade.com/image1.htm"
matched[9]=0


title[10]="rollover effect"
desc[10]="Images and DXL Script- Apples and Apples (Part 2 of 2)"
links[10]="http://www.iscade.com/image2.htm"
matched[10]=0

title[11]="new window open secondary reload close toolbar menubar status bar "
desc[11]="Windows and DXL Script"
links[11]="http://www.iscade.com/window.htm"
matched[11]=0

title[12]="frames access object multiple"
desc[12]="Loading Two frames with one link."
links[12]="http://www.iscade.com/twoframes.htm"
matched[12]=0

title[13]="selection list options array text vale"
desc[13]="I'll hava a double combo please (Part 1 of 2)"
links[13]="http://www.iscade.com/combos1.htm"
matched[13]=0

title[14]="combo link box jump"
desc[14]="I'll hava a double combo please (Part 2 of 2)"
links[14]="http://www.iscade.com/combos2.htm"
matched[14]=0

<!-- End list of Searchable items -->

/***************************************************************************************************************************/
//		The following searchGoogle() function uses google site search to search within the site.
/***************************************************************************************************************************/
function searchSite(curobj){
var opt = document.searchengine.searchRadio[0].checked
if( opt == true )
	search();
else 
	searchGoogle( curobj );
}


/***************************************************************************************************************************/
//		The following searchGoogle() function uses google site search to search within the site.
/***************************************************************************************************************************/
function searchGoogle(curobj){
var domainroot="www.iscade.com"
document.getElementById("hiddenquery").value="site:"+domainroot+" "+curobj.keywords.value
}

/***************************************************************************************************************************/
//		The following search() function uses the javascript tables to search within the site.
/***************************************************************************************************************************/
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('</head>');*/
output.document.write( header );

output.document.write('<h1> Search Results </h1><br>');    
output.document.write('<hr width=96%>');
output.document.write(' The Keyword(s) you searched :: '.big() )
output.document.write('<font color=#760293>');
for (i=1;  i<=keywords[0]; i++)
	{
	output.document.write( keywords[i].bold() +"   ");
	}
output.document.write('</font><br>');

if (found[0]==0)
	{
	//alert(found[0]);
	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(" <b> The Results of the search are  : </b>  ");
	output.document.write( found[0] +"  Entries found  ".italics());
	output.document.write("<br><hr width=96%><table style='border=1 solid #cccccc' width=98% >");
	for (i=1; i<=found[0];i++)
		{
			output.document.write("<tr><td valign=top class='BagTitle'>");
			output.document.write("<h1>" +i +"</h1></td>");
			output.document.write("<td class='BagText'>");
			itemp=found[i];
			output.document.write("<b>" + desc[itemp] + "</b><br> <a href = " + links[itemp] + " class='BagLink'>" + links[itemp] + "</a> <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 ("<br><hr width=96%><br><br>");
output.document.write("<br><center>Hit the <a href='search.htm' class='BagLink'>refresh</a> to return to the search<center>");
output.document.write ( footer ); 
output.document.close();
}