

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = "drdonews.html^drdonews.html^Here is the latest news section about drdo.....^ Agni , DRDO, Technology,news ";

s[1] = "index.html^index.html^welcome to drdo...^ Defence Research Development Organisation DRDO  Department Defence Research ";

s[2] = "corporateheadquarter.html^corporateheadquarter.html^information about drdo and its officials.........^  Scientific Advisor  Chief Controller";

s[3] = "labs.html^labs.html^Information about labs .......^ scientists laboratories lab labs DRDO";

s[4] = "citizencharter.html^citizencharter.html^here is about genesis and groth of drdo...^ drdo vision mission organization customers army airforce navy";

s[5] = "genesis.html^genesis.html^here is about genesis and groth of drdo......^ genesis growth drdo amalgamation";

s[6] = "vision.html^vision.html^about vision and mission ...^ vision mission drdo";

s[7] = "policies.html^policies.html^about policies...^ policies vission core competence drtc  flexible drdo awards glance";

s[8] = "majorproduct.html^majorproduct.html^about major products...^ major product bhima air borne scientists laboratories lab labs DRDO";
s[9] = "scientificadvisior.html^scientificadvisior.html^about scientificadvisior...^ scientificadvisior Natarajan drdo";

s[10] = "chiefcontrollers.html^chiefcontrollers.html^about chiefcontrollers...^ pillai saraswat dipankea banerjee prahlada selvamurthy sitaram elangovan drdo awards glance";

s[11] = "academic.html^academic.html^about academic ...^ academic drdo Extramural  Grant Scheme CARS Center Excellence Research Boards ";
s[12] = "alphabatic.html^alphabatic.html^about alphabatic order of labs...^ anurag arde cvrde vrde cair cefees cabs darl deal scientists laboratories lab labs DRDO";
s[13] = "techclus.html^techclus.html^about technology...^ anurag arde cvrde vrde cair cefees cabs darl deal drdo";

s[14] = "region.html^region.html^about regional address...^ anurag arde cvrde vrde cair cefees cabs darl deal drdo ";

s[15] = "add.html^add.html^about addresses...^ anurag arde cvrde vrde cair cefees cabs darl deal drdo scientists laboratories lab labs DRDO";
s[16] = "right1.html^right1.html^about right to information act...^ anurag arde cvrde vrde cair cefees cabs darl deal drdo scientists laboratories lab labs DRDO";
s[17] = "knowinit.html^knowinit.html^about Publications...^ publications research popular science technology patents drdo scientists laboratories lab labs DRDO";
s[18] = "industry.html^industry.html^about industry...^ Triveni Bharat Ennem Steel Industrial Forgings Sujan Elastomeric Kusumgar Todi Bharat RP DRDO";
s[19] = "active_tender.html^active_tender.html^about Tenders...^ tender active tenders DRDO";
s[20] = "contact_information.html^contact_information.html^about contect...^ contact information anurag desidoc cvrde vrde drl DRDO";
s[21] = "public_grievance.html^public_grievance.html^about public grievance...^ public grievance tender active tenders DRDO";
s[22] = "registration_of_firms.html^registration_of_firms.html^about registration firms...^ registration firms contact information anurag desidoc cvrde vrde drl DRDO";

s[23] = "extramural.html^extramural.html^about extramural....^ extramural research acadimias contact information anurag desidoc cvrde vrde drl DRDO";
s[24] = "cars.html^cars.html^about cars....^ cars pre post public grievance tender active tenders DRDO";
s[25] = "centerofexcellence.html^centerofexcellence.html^about centerofexcellence....^ center excellence registration firms contact information anurag desidoc cvrde vrde drl DRDO";
s[26] = "researchboards.html^researchboards.html^about researchboards....^ research boards center excellence registration firms contact information anurag desidoc cvrde vrde drl DRDO";

s[28] = "previous_sa.html^previous_sa.html^about previous scientific advisor....^ previous scientific advisor center excellence registration firms contact information anurag desidoc cvrde vrde drl DRDO";
s[29] = "chiefcontrollers-natrajan.html^chiefcontrollers-natrajan.html^about natarajan....^chief controller natarajan research DRDO";
s[30] = "chiefcontrollers-saraswat.html^chiefcontrollers-saraswat.html^about saraswat....^chief controller saraswat research  DRDO";
s[31] = "chiefcontrollers-banerjee.html^chiefcontrollers-banerjee.html^about banerjee....^ chief controller banerjee research DRDO";
s[32] = "chiefcontrollers-prahlad.html^chiefcontrollers-prahlad.html^about prahlad....^chief controller prahlad  cars pre post public grievance tender active tenders DRDO";
s[33] = "chiefcontrollers-murthy.html^chiefcontrollers-murthy.html^about selvamurthy....^ chief controller selvamurthy controllers DRDO";
s[34] = "chiefcontrollers-sitaram.html^chiefcontrollers-sitaram.html^about sitaram....^chief controller sitaram research DRDO";
s[35] = "chiefcontrollers-elangovan.html^chiefcontrollers-elangovan.html^about elangovan....^chief controller Shri G Elangovan (ADE) CC R&D research  DRDO";







// ---------- end of script properties and sites ----------


var cookies = document.cookie;
var p = cookies.indexOf("d=");

if (p != -1) {
	var st = p + 2;
	var en = cookies.indexOf(";", st);
	if (en == -1) {
		en = cookies.length;
	}
	var d = cookies.substring(st, en);
	d = unescape(d);
}
var od = d;
var m = 0;
if (d.charAt(0) == '"' && d.charAt(d.length - 1) == '"') {
	m = 1;
}

var r = new Array();
var co = 0;

if (m == 0) {
	var woin = new Array();
	var w = d.split(" ");
	for (var a = 0; a < w.length; a++) {
		woin[a] = 0;
		if (w[a].charAt(0) == '-') {
			woin[a] = 1;
		}
	}
	for (var a = 0; a < w.length; a++) {
		w[a] = w[a].replace(/^\-|^\+/gi, "");
	}
	a = 0;
	for (var c = 0; c < s.length; c++) {
		pa = 0;
		nh = 0;
		for (var i = 0; i < woin.length; i++) {
			if (woin[i] == 0) {
				nh++;
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa++;
				} else {
					pa = 0;
				}
			}
			if (woin[i] == 1) {
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa = 0;
				}
			}
		}
		if (pa == nh) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;
}

if (m == 1) {
	d = d.replace(/"/gi, "");
	var a = 0;
	var pat = new RegExp(d, "i");
	for (var c = 0; c < s.length; c++) {
		var rn = s[c].search(pat);
		if (rn >= 0) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;

}


function return_query() {
	document.jse_Form.d.value = od;
}

function num_jse() {
	document.write(co);
}

function out_jse() {
	if (co == 0) {
		document.write('Your search did not match any documents.<p>Make sure all keywords are spelt correctly.<br>Try different or more general keywords.');
		return;
	}
	for (var a = 0; a <r.length; a++) {
		var os = r[a].split("^");
		if (bold == 1 && m == 1) {
			var br = "<b>" + d + "</b>";
			os[2] = os[2].replace(pat, br);
		}
		if (include_num == 1) {
			document.write(a + 1, '. <a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		} else {
			document.write('<a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		}
	}

}
