
var item = new Array();

c=0; item[c]=new Array("index.html","","Home Page","Arise, Arise India, Arise bangalore, Arise south India, Arise unlimited, Arise limited, Arise darly, Darly, Dr.darly, dr.darly, Homeopathy India, Counseling India, Homeopathy counseling, Homeo, Parenting, Child care, Kids care, Doctor online, Counselor online, Depression, Confidence enhancement, Interpersonal problems, Online counseling India, Online treatment, Online homeopathy, Online medicine, Online consultation, Online doctor, Video medicine, Infertility, Menopausal syndrome, Womens problems, Womens health, Motivation, Problem children, Delayed mild stones, Mentally challenged, Preventive medicines, Migraine, Allergy, Asthma, Diabetes, Constipation, Menstrual disorders, Gas trouble, Irritable bowel syndrome, Homeopathy bangalore, Online medicine bangalore, Psychology online, Psychologist online, Holistic psychological counseling, Post operative treatment, Maintenance treatment, Addictions, Infections","Welcome to Arise Website");
c++; item[c]=new Array("aboutus.html","","About Arise","Arise, homeopathy, psychology, treatments, services, online video consultation, doctors, counselors, Dr. Darly Thomas, Holistic Psychological Counseling, Classical Homeopathy","Arise believes in the theory that...");
c++; item[c]=new Array("treatments.html","","Treatments","Treatments, Arise, Menstrual disorders, Infertility, Allergy, Constipation, Sleeplessness, Blood pressure, Infections, Cough, Delayed milestones, Mental diseases, Geriatric problems, Addictions, Phobias, Memory lapse, Adaptation problems, Interpersonal relationship problems, Menopausal syndrome, Migraine, Asthma, Gastric ulcer, Depression","Treatments ...");
c++; item[c]=new Array("services.html","","Services","services, Arise, Psychological Counseling, Second Parenting, Online Video Counseling, Post Operative Treatment for Faster Recovery, Infertility Package, Treatment for Mentally and Physically Handicapped, Maintenance Treatment, Menstrual Disorders, Asthma, Allergy, Constipation, Sleeplessness, Interpersonal Relationship Problems, Menopausal Syndrome","Services ...");
c++; item[c]=new Array("fee.html","","Fee Structure","Arise, Fee structure, fee, Chronic cases, Acute cases, Registration, Case Study, Consultation, Medicine, Diet, Exercise, video consultation, Refund Package Scheme, Infertility Package, Money Back Package","You have to pay a registration fee of ...");
c++; item[c]=new Array("online.html","","Online Counseling","Online Counseling, Arise, counselor, medicine, consultation, health","Online Counseling brings you the service of...");
c++; item[c]=new Array("clinic.html","","Clinic","Clinic, consultation, Arise, hospital, health, homeopathy, treatments","Our clinic is in the garden city of Bangalore...");
c++; item[c]=new Array("onlinemed.html","","Online Medicine","Online Medicine, Arise, doctor, counselor, health, online chat, video chat, medicine"," You can consult the doctor/counselor regarding any  ...");
c++; item[c]=new Array("appointments.html","","Appointments","Appointments, Arise, Online Counseling, Arise, counselor, medicine, consultation, health, email, audio chat, video chat, telephone consultation ","You can get appointments through  ...");
c++; item[c]=new Array("refundpackages.html","","Refund Packages","Refund Packages, Fee Structure, Arise, fee, Chronic cases, Acute cases, Registration, Case Study, Consultation, Medicine, Diet, Exercise, video consultation, Refund Package Scheme, Infertility Package, Money Back Package","Refund Packages...");
c++; item[c]=new Array("contactus.html","","Contact Us","Arise, contacts, managers, Arise","Contact Details..");
c++; item[c]=new Array("kids.html","","Kids annual health package","Kids annual health package, Online Medicine, Arise, doctor, counselor, health, online chat, video chat, medicine","EDM Filters have a fibre-pack filling or ...");



page="<html><head><title>Arise Search Results</title><script language='javascript'>function getURL(location){window.opener.location.href=location;}</script></head><body bgcolor='#FFFFFF'><center><table border=0 cellspacing=2 cellpadding=5 width=100%><tr><td colspan=2 height=50 align=left valign=middle bgcolor=#002674><font face=arial size=2 color=#ffffff><strong>Search Results</strong></font></td></tr>";

function search() 
{
	win = window.open("","","scrollbars=yes,resizable=yes,location=no,directories=no,toolbar=no,status=no,menubar=no,width=580,height=400,left=30,top=40");
	win.document.write(page);
	str = new String(document.frmsearch.txtsearch.value)
	str1 = new String(str.toLowerCase())
	txt = str1.split(" ");
	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) 
			total += showresult(w, win, n);
			fnd[w] = 0;
	}
	win.document.write("</center></table><hr><br><div><font face=arial size=2 color=#3E3E3E><strong>Total found: "+total+"</strong></font></div><br></body></html>");
	win.document.close();
}

function showresult(which,wind,num) 
{
	link = item[which][1] + item[which][0]; 
	line = "<tr><td><font face=arial size=2 color=#333333><a href=Javascript:getURL('"+link+"') title='"+item[which][2]+"'><font face=arial size=2 color=#002674><strong>"+item[which][2]+"</strong></font></a><br>"+ item[which][4] + "</font></td></tr>";
	wind.document.write(line);
	return 1;
}
