";
function search(form,item) {
c=0; item[c]=new Array("http://www.thinkquest.org","http://www.thinkquest.org","Thinkquest","thinkquest","The Thinkquest Homepage");
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("http://www.thinkquest.org","http://www.thinkquest.org","Thinkquest","thinkquest","The Thinkquest Homepage");
c++; item[c]=new Array("Dominance.html","Dominance.html","Dominance","dominance,mendel,genetics,monk,pea,plants,pure lines,self-polination,law of dominance,pure trait,dominant,recessive","Explains the concept of dominance in genetics");
c++; item[c]=new Array("segregation.html","segregation.html","Segregation","mendel,pollen,short,tall,f1,f2,hybrid,law of segregation,3:1,factors,alleles,punnet,square,gene,dominant,phenotype,recessive","Describes the segregation of genes in genetic when pure lines are crossed.");
c++; item[c]=new Array("independant.html","independant.html","Independent Assortment","mendel,inherited,inheritance,influence,pure,dihybrids,dominant,crossed,punnett,homozygous,recessive","Explains the principal that for the most part, traits are inherited separately.");
c++; item[c]=new Array("Diseases.html","Diseases.html","Genetic Defects","defective,aberration,chromosomal,lou gehrig,ALS,amyotrophic,lateral,sclerosis,huntington,hemophilia,clot,blood,phenylketonuria,phenylaline,tyrosine,PKU,sickle-cell,anemia,red,tay-sachs,hexosaminidase,thalassemia,cooley,cystic fibrosis,mucus,chromosomal,disorders,nondisjunction,down,turners,klinefelters,chromosomes","This page reviews some of the many known diseases with genetic underpinnings.");
c++; item[c]=new Array("mygenetics.php","mygenetics.php","My Genetics","my genetics,login,log out,new,account,scores,check,quizes,contact,email,guestbook,sign,view,feedback","Provides a multitude of options for interacting with us and the page.");
c++; item[c]=new Array("start.php","start.php","Start Page","login,guided,guide,tour,overview,start,thinkquest,start,home","The start page.");
c++; item[c]=new Array("Glossary.html","Glossary.html","Glossary","addition,adenine,albinism,amniocentesis,anaphase,antigen,aster,autosome,bloodtype,cellplate,centriole,centromere,chromatid,centrosome,chromatin,chromosome,chronicvillus,cloning,codominance,codon,colorblind,cooleysanemia,crossingover,cysticfibrosis,cytosine,deletion,deoxyribose,diploid,dna,doublehelix,downsyndrome,drosophila,egg,eugenics,gametes,gametogenesis,genelinkage,geneticscreening,guanine,haploid,hemoglobin,hemophilia,hexosaminidasea,hgp,homologous,huntingtons,incomplete,independent,interphase,inversion,karyotype,klinefelters,lougehrigs,meiosis,metaphase,mitosis,monoploid,multiplealleles,mutation,nitrogenousbase,nondisjunction,oogenesis,ovaries,partialdominance,phenylaline,phosphategroup,pku,plasmid,polarbodies,polyploidy,prophase,punnetsqare,recominantdna,reductiondivision,rhfactor,rna,sicklecellanemia,sperm,spermatogenesis,spindle,synapsis,taysachs,telophase,testcross,testes,thalassemia,thymine,translocation,turnerssyndrome,vestigialwis,xchromosome,ychromosome","Has a brief description of each inportant term in this page.");
c++; item[c]=new Array("Testing.html","Testing.html","Genetic Testing","genetic,testing,disorders,screening,amniocentesis,fluids,fetus,pregnancy,chorionic,villus,villui,karyotype,chromosomes,down,kleinfelter,turner","Explains methods of testing for chromosomal abnormalities");
c++; item[c]=new Array("Mutation.html","Mutation.html","Genetic Mutations","mutations,vries,hugo,primrose,evening,drosophila,albinism,hornlessness,seedlessnes,harmful,mutagenic,agent,artificially,muller,chromosomal,translocation,inversion,addition,non,disjunction,non-disjunction,polyploidy","Describes some sources and results of mutations.");
c++; item[c]=new Array("Codom%20and%20incomplete.html","Codom%20and%20incomplete.html","Partial Dominance","pure,partial,dominance,incomplete,codominance,four,4,four-o'clock,snapdragon,partial,","Describes the cases when strict dominant/recessive categorization does not apply");
c++; item[c]=new Array("Sex%20stuff.html","Sex%20stuff.html","Sex Determination and Linkage","sex,determination,linkage,autosomes,homologous,chromosomes,22,23,1,x,y,linked,traits,hemophilia,colorblindness,carrier","Explains the concept of sex determination, and diseases carried on sex chromosomes.");
c++; item[c]=new Array("Multiplealleles.html","Multiplealleles.html","Multiple Alleles","blood type,blood,type,IA,IB,antigen,rh,RH,Rh Factor,Rh,factor,rhesus,dominant trait","Explains the theory of multiple alleles and the Rh factor, using blood type as an example");
c++; item[c]=new Array("Morgan.htm","Morgan.htm","Thomas Hunt Morgan","fruit,fly,drosophila,melanogaster,thomas,morgan,hunt,chromosomal,map,gene,linkage,crossing,over","Describes Morgan's inpact on genetics through gene linkage and crossing over.");
c++; item[c]=new Array("Eugenics.htm","Eugenics.htm","Eugenics","eugenics,breedin,galton,eugenes,human,bumans,pseudoscience,ethnic,cleansing,prejudice,sterilize,germany,final,solution","Explains eugenics, the practice of applying Darwinist breeding to humans");
c++; item[c]=new Array("RecombinantDNA.html","RecombinantDNA.html","Recombinant DNA","recombinant,dna,restriction,enzymes,plasmid,competent,hormones,insulin,","Explains the proceedure allowing scientist to insert specific pieces of DNA into cells.");
c++; item[c]=new Array("DNAMolecule.html","DNAMolecule.html","The DNA Molecule","dna,base,pairs,phosphate,deoxyribose,nitrogenous,base,watson,crick,cytosine,guanine,adenine,thymine,codon,amino,acids,replication,trigger,molecule","Describes the structure and functions of DNA in the context of genetics.");
c++; item[c]=new Array("humangenome.html","humangenome.html","The Human Genome Project","human,genome,project,hgp,sequencing,doe,department,energy,","Tells the history and projected future of the HGP");
c++; item[c]=new Array("Cloning.htm","Cloning.htm","Cloning","cloning,copy,gurdon,dolly,wilmut,human","Outlines the proceedure of cloning and describes the history behind it.");
c++; item[c]=new Array("Mitosis.html","Mitosis.html","Mitosis","mitosis,cell,division,mitotic,interphase,prophase,chromatin,metaphase,anaphase,telophase,IPMAT,PMAT","Describes the process of mitotic cell division (2N --> 2 X 2N)");
c++; item[c]=new Array("Meiosis.html","Meiosis.html","Meiosis","meiosis,gametes,haploid,monoploid,spermatogenesis,oogenesis,reduction,division,polar,bodies","Describes the process of meiotic cell division (2N --> 4 X N)");
c++; item[c]=new Array("Pedigrees.html","Pedigrees.html","Pedigrees","pedigrees,autosoma,dominant,recessive,allele,x-linked,traits,x,linked,","Describes the use of pedigrees by geneticists to determine the presence of an allele.");
c++; item[c]=new Array("RNA.html","RNA.html","RNA","rna,dna,protein,formation,production,replication,nucleotides,uracil,trna,mrna,rrna,amino,acids,polypeptide,enzyme,protein","Briefly describes the function of RNA in protein formation, in the context of genetics.");
var txt = form.inputbox.value;
txt = txt.toLowerCase();
txt = txt.split(" ")
document.write(page);
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){
link = item[w][1];
line = "