// JavaScript Document

<!-- Begin 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]=26
//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]="viv20, oral care, Oral Care, viv-20, Mouth, tooth pastes, Tooth Paste, pastes, Paste, Pastes, paste, Personal Hygiene, personal hygiene, cosmetics, Cosmetics, cosmetic, Cosmetic, skin lotions, creams, Skin Lotions, Creams, Lotions, lotions, Lotion, lotion, deodorants, Deodorants, Deodorant, deodorant, Hair Care, hair care, Hair, hair, Bath, bath, Shower Toiletries, shower toiletries, shower toiletries, shower toiletrie, Shower Toiletrie, Shower, shower, Toiletrie, toiletrie, toiletries, Toiletries, Dish Washing Products, dish washing products, Dish Washing Product, dish washing product, Dish Washing, dish washing, dish wash, Dish Wash, washing, washing, dish, Dish, Laundry Detergents, laundry detergents, Laundry, laundry, detergents, detergent, Detergents, Detergent, softeners, Softeners, Softener, softener, laundry bars, Laundry Bars, laundry, Laundry, Bars, bars, Bar, bar, liquid, Liquid, liquids, Liquids, powderdetergents, Powder Detergents, Powder detergents, powder detergents, powder detergent, Powder detergent, Powder, powder, powders, Powders, Disinfectant, disinfectant, disinfectants, Disinfectants, Textile, textile, Textiles, textiles, Paper Treatment, paper treatment, paper treatments, Paper Treatments, treatments, Treatments, treatment, Treatment, food contact additive, Food Contact Additive, Food, food, food contact, Food Contact, Additive, additive, additives, Additives, Anti-Microbial, anti-microbial, microbial, Microbial, microbials, Microbials, Anti-microbial agent in toothpastes, mouthwashes, personal hygiene soaps, detergents and child-safe plastics, molecule, viv 20, Triclosan" 
desc[1]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >TRICLOSAN</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10'>Anti-microbial agent in toothpastes, mouthwashes, personal hygiene soaps, <br />detergents and child-safe plastics.</font> "
links[1]="viv20.html"
matched[1]=0

title[2]="vivcalg,vivcal-g, Molecule, dental, enamel, food, additive, teeth, dietetic, white powder, Calcium Glycerophosphate"
desc[2]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >CALCIUM GLYCEROPHOSPHATE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10'>Dental enamel protection, nutraceutical & pharmaceutical applications.</font> "
links[2]="vivcalg.html"
matched[2]=0

title[3]="vivsparkle, viv-sparkle Oral, dental, disinfectant, bleaching, catalyst, synthesis, blueprint developer, modifier, starches, antistatic agent, oxygen, crops, earwax, removers, Molecule, Carbamide Peroxide"
desc[3]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >CARBAMIDE PEROXIDE<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' ><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10'>Teeth whitener.</font>"
links[3]="vivsparkle.html"
matched[3]=0

title[4]="Avis, Avo Benzone, Broad-spectrum, skin, widely, sun care, protective, hair care preparations, quench phototoxic, skin reactions, photo toxic materials, photo, toxic, photo-antioxidant, photo-oxidation, medicated, skin, skin care, skin tone, preparations, UVA/UVB, sunscreens, Makeup, creams, lotions, Hand, Face creams, medicated, moisturizing, creams, UV-A, anti aging, Molecule"
desc[4]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >AVOBENZONE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Broad spectrum UV-A filter for skin and sun care preparations.</font>"
links[4]="avis.html"
matched[4]=0


title[5]="cinnamon, Octyl Methoxy Cinnamate, UV-B, sunscreen, OTC, sun, optical filters, deactivate, molecules, polymers, organic, substances, cosmetic, cosmetic grades, sunscreen, skin damage, skin, UV-A & B, Molecule"
desc[5]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >OCTYLMETHOXYCINNAMA</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >UV-Bcategory I filter used for OTCsun care products.</font>"
links[5]="cinnamon.html"
matched[5]=0

title[6]="Benzophenone-3, ben3, ben-3, Sun Care, Baby Sun care, Daily Skin Care, Decorative, Decorative Cosmetic, skincare protection, Molecule"
desc[6]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >BENZOPHENONE – 3</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Oil soluble UV-filter.</font>"
links[6]="ben3.html"
matched[6]=0



title[7]="Benzophenone-4, ben4, ben-4, water-soluble, sun protection, viscosity, polyacrylic acid, Carbopol, Pemulen, UV radiation, ultra-violet, ultra-violet stabilizer, wool, cosmetics, pesticides, lithographic, lithographic plate coating, Molecule"
desc[7]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >BENZOPHENONE – 4</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Water Soluble UV-filter.</font>"
links[7]="ben4.html"
matched[7]=0


title[8]="Octosal, suncare, sun care, benzophenone, Molecule, Octisalate"
desc[8]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >Octisalate</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Absorber For Low Spfs-water Soluble Uv-b Filter</font>"
links[8]="octosal.html"
matched[8]=0


title[9]="Octocrylene, octyneb,octyne-b, oil soluble, UV-B filter, sun care, cosmetic, Molecule"
desc[9]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >OCTOCRYLENE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >An oil-miscible UV-B filter.</font>"
links[9]="octyneb.html"
matched[9]=0


title[10]="Ndga, vintox, NDGA, anti-proliferative, ATP depleting, anti-inflammatory, antioxidant, Nordihydroguaiaretic, acid, NDGA, natural phenolic, UV, skin damage, UVB-induced, c-fos, AP-1, transactivation, HaCaT, keratinocyte, lipid accumulation, lipids, storage cells, VINTOX NDGA"
desc[10]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >NDGA</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Anti-oxidant and anti-ageing molecule.</font>"
links[10]="vintox.html"
matched[10]=0

title[11]="4n-butyl Resorcinol, vivinol, inhibits, Melanin Pigmentation, blotches, freckles, cosmetic lotions, UV, fore arm pigmentation, pigmentation, fore arm, melanin, lightening products, lightening, penetrates, skin, hypo-allergenic, fragrance, color additives, molecule"
desc[11]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >4 nBR</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Powerful skin lightening agent. Lightens acne scars, age spots, discoloration & freckles.</font>"
links[11]="vivinol.html"
matched[11]=0

title[12]="Darutoside Synthetic Analogue, vivremov, stretch marks, Viv-Remov, molecule,viv-remov"
desc[12]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >DARUTOSIDE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Stretch mark remover.</font>"
links[12]="vivremov.html"
matched[12]=0

title[13]="Eflornithine Hcl, vivsilk, Hair remover, viv-silk, molecule"
desc[13]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >EFLORNITHINE HYDROCHLORIDE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Hair remover</font>"
links[13]="vivsilk.html"
matched[13]=0

title[14]="Zinc Pyrithione, dantuffz, dantuff-z, shampoo, cosmetics, preserves, oil, agent, coating, bio-killing, Carpet backing, Sealants, bathrooms, pools, windows, Adhesives, vinyl, flooring, tile, wallpaper, Coating, air conditioner, molecule"
desc[14]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >ZINC PYRITHIONE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Anti-dandruff agent in shampoos and anti bacterial for industrial applications.</font>"
links[14]="dantuffz.html"
matched[14]=0

title[15]="Climbazole, dantuffc, dantuff-c Climbazole, conazole, fungicide, shampoo, cleaner, anti-dandruff, anti-bacteria, Anti-fungal, Shampoo, formulations, Preservative, antidandruff, cosmetics, molecule"
desc[15]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >CLIMBAZOLE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Anti-fungal agent for hair care, & pharmaceutical applications.</font>"
links[15]="dantuffc.html"
matched[15]=0

title[16]="Ketoconazole, dantuffk, dantuff-k, antimycotic, topical, applications, seborrheic,  dermatitis, dandruff, hair, stimulant, systemic, infections, antifungal, prevention, fungal, infections, gastrointestinal, infections, skin, nails, scalp, molecule"
desc[16]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >KETOCONAZOLE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Anti-dandruff & anti-fungal agent.</font>"
links[16]="dantuffk.html"
matched[16]=0

title[17]="Pdpo, vividine, Hair, hair loss, men, women, molecule"
desc[17]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >PYRROLIDINIL DIAMINOPYRIMIDINE OXIDE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Re-grows hair and prevents hair loss.</font>"
links[17]="vividine.html"
matched[17]=0

title[18]="Chlorphenesin, cosvat, Chlorphenesin, antifungal, antibacterial, Preservation, stabilization, cosmetics, Boosts preservative, effectiveness, Chlorphenesin, conjunction, antimicrobial, molecule"
desc[18]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >CHLORPHENESIN</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Anti-fungal and anti bacterial characteristics, preservation and stabilization of cosmetics.</font>"
links[18]="cosvat.html"
matched[18]=0

title[19]="1,2 Hexanediol, Hexanediol, cosvat118, cosvat-118, Preservative, Emollient, wetting agent, Hexanediol, synthetic, organic, chemical, diluent, fragrance, flavour, formulations, inorganic, synthesis, diluent, printer inks, drying, molecule"
desc[19]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >1,2 HEXANEDIOL</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Anti-dandruff & anti-fungal agent.</font>"
links[19]="cosvat118.html"
matched[19]=0

title[20]="Iodopropynyl Butylcarbamate, cosvat-281, cosvat281, Chemistry, potent, cosmetic, preservative, fungicide, bactericide, IPBC, personal care, Bactericide, shampoo, bar soap, glue, paints, molecule"
desc[20]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >IODOPROPYNYL BUTYLCARBAMATE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Potent cosmetic preservative, powerful fungicide and bactericide for shampoo, bar, soap, glue, paints.</font>"
links[20]="cosvat281.html"
matched[20]=0

title[21]="viv-10, viv10, Antimicrobial, household, laundry care, home products, molecule"
desc[21]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >HYDROXY DICHLORO DIPHENYLETHER</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Home & fabric care.</font>"
links[21]="viv10.html"
matched[21]=0

title[22]="Trichloro Carbanilide, Trichloro, Carbanilide, vivilide, Personal hygiene, Dermatological, Soaps, Skin Lotions, Creams, Deodorants, molecule"
desc[22]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >TRICHLOROCARBANILIDE</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Wide spectrum bacteriostatic (anti-bacterial).</font>"
links[22]="vivilide.html"
matched[22]=0

title[23]="Para Chloro Meta Xylenol, Xylenol, Para Chloro, vivmax, Vivmax, pcmx, antiseptics, Hospitals, Toxicity, Medical, Cutting Oils, Lubricants, Polishes, wax emulsions, Surface Coatings, molecule"
desc[23]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >PARA CHLORO META XYLENOL</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >An anti-microbial & germicidal for personal hygiene and industrial use.</font>"
links[23]="vivmax.html"
matched[23]=0

title[24]="oxyres, Oxyresveratrol, mushroom, Tyrosinase, Kojic acid, L-tyrosine oxidation"
desc[24]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >2, 3, 4, 5-tetrahydroxystilbene</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Oxyresveratrol showed a dose dependent inhibitory effect on L-tyrosine oxidation by tyrosinases from mushroom and murine melanoma B-16. However the promoter activity for expression and synthesis of Tyrosinase was unaffected by the hydroxystilbene compound Therefore, oxyresveratrol was an inhibitor of Tyrosinase activity but did not suppress the synthesis of Tyrosinase. </font>"
links[24]="oxyres.html"
matched[24]=0

title[25]="Phmb, Vivicil, biocidal, toxicology, Bacteriostat,"
desc[25]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >Poly(iminoimidocarbonyliminoimidocarbonyl-iminohexamethylene) hydrochloride </font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >VIVICIL is a powerful bactericide and is not aggressive to humans and environment. It is gentle in-use, with low eye and skin irritancy and low oral toxicity. </font>"
links[25]="vivicil.html"
matched[25]=0

title[26]="Chlorhexidine Base &20% Solution, Hibi-viv, Chlorhexidinum"
desc[26]="<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='2' >Chlorhexidine Base &20% Solution</font><br/><font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow' color='#646464' size='-10' >Anti-bacterial For Mouthwash</font>"
links[26]="hibivi.html"
matched[26]=0

<!-- End list of Searchable items -->

function search(){
// get the input from the input by the user and strip it into keywords //
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;
//alert(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;

}       
}
//alert("found 0 " +  found[0]);
// sort the list as per max percentage of matches


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;

}
}
}
config='toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes'
output = window.open ("html/search.html","outputwindow",config)
output.document.write('<title> Daves Search Results </title><link rel="shortcut icon" href="img/animated_favicon1.gif"  alt="" type="image/x-icon" /> '); 
output.document.write('<BODY style="size:auto;" bgcolor=#FFFFFF  text=#646464  link=#0000FF vlink =#0000FF >');

output.document.write('<font face="Verdana, Arial, Helvetica, sans-serif, Arial Narrow"color="#B10D11"  size="3"><b>Search Results</b></font> ');    
output.document.write('<hr>');
output.document.write('<font face="Verdana, Arial, Helvetica, sans-serif, Arial Narrow"color="#E6651C"  size="2"><b>The Keyword(s) you searched :: </font>'); 
for (i=1;  i<=keywords[0]; i++)
{
output.document.write( keywords[i].bold() +"   "); }
output.document.write('<br />');

if (found[0]==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
{

output.document.write(' <hr> <font face="Verdana, Arial, Helvetica, sans-serif, Arial Narrow"color="#646464" size="2" ><b> The Results of the search are : </b></font>');
output.document.write( found[0] +"<font face='Verdana, Arial, Helvetica, sans-serif, Arial Narrow'color='#646464' size='2'>Entries found &nbsp; </font> "); 
output.document.write("<table border=0 width=100%>");
//var a=i
for (i=1; i<=found[0];i++)

{
output.document.write("<tr><td valign=topbgcolor=#9999ff>");
output.document.write("<h5>" +i +"</h5>"); 
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 ("<form><center>"); 
output.document.write ("<input type='button' value='Start Another Search' onClick = 'self.close()'>") ;
output.document.write ("</center></form>");
output.document.close();
}
