"; var ResultBGCOLOR = "#448484"; function compress(str) { var h=str; var leading=(h.charAt(0) == " " || h.charAt(0) == "*" ); var trailing=(h.charAt(h.length-1) == " " || h.charAt(h.length-1) == "*"); while (trailing || leading) { if (leading) { h=h.substring(1,h.length); leading=(h.charAt(0) == " " || h.charAt(0) == "*" ); } if (trailing) { h=h.substring(0,h.length-1); trailing=(h.charAt(h.length-1) == " " || h.charAt(h.length-1) == "*"); } } document.searchForm.search_name.value=h; return document.searchForm.search_name.value; } function checkField() { if ( compress(document.searchForm.search_name.value) != '' ) { find(document.searchForm, indexedPage); return true } else { alert("Please enter term(s) for search"); document.searchForm.search_name.focus(); return false } } function makeArray(n){ this.length = n; for (i = 1; i <= n; i++){ this[i] = ""; } } function index (link,summary,keywds) { var argc = index.arguments.length; var keys = argc - 2; this.link = link; this.keywords = new makeArray(keys); this.keywords[1] = summary; for(var i = 2; i <= keys+1; i++) { this.keywords[i] = index.arguments[i]; } } var indexedPage = new makeArray(26); indexedPage[1]=new index("chatwindow.htm","Chat","chat","interactions","share","ideas"); indexedPage[2]=new index("designdrug.htm","Designer Drugs","drugs","pharmacologist","chemists","genetics","Alexander Fleming's pert dish","Alzheimer's","yellow fever","ailment","drug design","Geneticists","diseases","genes","doctors","genetic profile","computers","technology","patients","DNA","recombinant-DNA","RNA","Zantac","serotonin receptors", "Tagamet","Human Genome Project","aging","cell","protective","hormones","biological","Herceptin","interferon","tPA","immune system","virus","AIDS","cytomegalovirus","pharmacology","natural chemicals","physiology"); indexedPage[3]=new index("experiment3.htm","Investigation of the action of amylase on starch","enzymes","amylase","denature","Benedict's Test","reducing sugar","saliva","starch","maltose","high temperature","temperature"); indexedPage[4]=new index("experiment4.htm","Investigation of the effect of bile salt on fat","bile salt","fat","oil","globules","emulsion","surface tension"); indexedPage[5]=new index("experimentintro.htm","Introduction to the Experiments","experiments","laboratory","investigation","setup","procedures"); indexedPage[6]=new index("intro.htm","Introduction","help","guidelines","introduction","acknowledgment","system requirements","system"); indexedPage[7]=new index("lesson1.htm","Basic Concept of Nutrition","life processes","energy","producers","oxygen","carbohydrates","nutrition","organisms","autotrophic nutrition", "heterotrophic nutrition","holozoic nutrition","saprophytic nutrition","parasitic nutrition","saprophytes","extracellular","hyphae","mycelium","ecosystem", "photosynthesis","herbivores","omnivores","carnivores","decomposers","mucor","rhizoid","host","tegument","anaerobic respiration","hermaphrodite","endoparasite"); indexedPage[8]=new index("lesson2.htm","Ingestion","structure","tooth","milk teeth","permanent teeth","dentition","tooth decay","prevention","crown","neck","root","enamel","dentine","gum","balanced diet","toothbrush", "pulp cavity","tooth canal","cement","nerves","periodontal membrane","incisors","canines","premolars","molars","wisdom teeth","tartar","plaque","fluoride","brush","floss","dental disclosing agent","sealants"); indexedPage[9]=new index("lesson3.htm","Digestion","buccal cavity","pharynx","oesophagus","stomach","small intestine","ileum","alimentary canal","digestion","mucus","salivary amylase","peristalsis","chyme","duodenum","gastric","pepsin", "casein","rennin","bile","gall bladder","haemoglobin","pancreas","liver","lipase","protease","carbohydrases","salivary glands","salivary ducts","epiglottis","glottis","larynx","soft palate","cardiac sphincter","pyloric sphincter","regurgitation"); indexedPage[10]=new index("lesson4.htm","Absorption","chyle","monosaccharides","amino acids","glycerol","fatty acids","ileum","villi","villus","adaptive features","micorvilli","epithelial cells","diffusion","blood capillaries","lacteal","hepatic","active transport","osmosis","lymph", "large intestine","caecum","appendix","diarrhoea","dehydration","colon","mineral salts"); indexedPage[11]=new index("lesson5.htm","Egestion and Assimilation","faeces","anus","rectum","defaecation","constipation","peristalsis","subcutaneous","deamination","urea","insulin","storage","detoxification"); indexedPage[12]=new index("lessonintro.htm","Introduction to the Lessons","lessons","lesson","topics"); indexedPage[13]=new index("links.htm","Links","URL","internet","websites","information"); indexedPage[14]=new index("quiz_long1.htm","Structured Questions 1","quiz","questions","dialysis tubing","Benedict's test"); indexedPage[15]=new index("quiz_long2.htm","Structured Questions 2","quiz","questions","alimentary canal","epiglottis","pancreatic juice","colon","liver","teeth","bacteria","tooth decay","pH"); indexedPage[16]=new index("quiz1.htm","MC Quiz 1","quiz","questions","MC","multiple choice"); indexedPage[17]=new index("quiz2.htm","MC Quiz 2","quiz","questions","MC","multiple choice"); indexedPage[18]=new index("quizintro.htm","Introduction to the Quiz","quiz","self test","test","questions","timer","solutions","MC","long questions","multiple choice questions","answers"); indexedPage[19]=new index("tour1.htm","In the buccal cavity","incisor","canine","premolar","molar","tooth decay","brush","personal hygiene","milk teeth","permanent teeth"); indexedPage[20]=new index("tour2.htm","In the Pharynx","bolus","trachea","epiglottis","alimentary canal","peristalsis","saliva"); indexedPage[21]=new index("tour3.htm","In the Stomach","circular muscle","regurgitation","vomiting","stomach wall","chyme","gastric juice","digest"); indexedPage[22]=new index("tour4.htm","In the Ileum","digestive juices","bile","pancreatic juice","intestinal juice","villi","villus"); indexedPage[23]=new index("tour5.htm","Through the Intestine","large intestine","appendix","caecum","colon","absorption of water","mineral salts","absorption"); indexedPage[24]=new index("tour6.htm","In the rectum","alimentary canal","egest","roughage"); indexedPage[25]=new index("tour7.htm","In the Toilet","egestion"); indexedPage[26]=new index("tourintro.htm","Tour Introduction","tour"); // Routine Section for FORM function find(form,indexedPage) { var key; var tmp_find_word; var find_word = form.search_name.value; var match = false; var doc; var resultOne =''; //part One of output var resultTwo =''; //part Two of output var resultThr =''; //part Three of output var N_found = 0; // search and output var j=0; for (var i = 1; i <= indexedPage.length; i++) { for (var n in indexedPage[i].keywords) { key = indexedPage[i].keywords[n].toString(); key = key.toUpperCase(); tmp_find_word = find_word.toUpperCase(); if ((key.indexOf(tmp_find_word) != -1 || tmp_find_word.indexOf(key) != -1) && (n != "length")) { match = true; j++; key1 = key.substring(0,key.indexOf(tmp_find_word)) + "" + tmp_find_word + ""; key2 = key1 + key.substring(key1.length-7,key.length); resultTwo += "