// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------

var s = new Array();

s[0] = "Home^index.asp^Survey & Utilization Division Ministry of Environment & Forest, Govt. of India^ headquarter, forestry statistics, International Labour Organizations(ILO),ILO, Trade Policy,Labour Welfare,Exim Policy,Nationl Medicinal Plant Boards,EXIM, ANIFPDCL, administrative, Forest Survey of India";
s[1] = "Administrative setup^admin_set.asp^Administrative Setup Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^ DIGF^ SU^ SO^Assistant^ RA^DIGF^Survey & Utilization^General of Forests^Director General of Forests and Speacial Secretary^ Administrative setup^ ";
s[2] = "Activities^other_specific_ass.asp^Activities Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^ EXIM^ Forestry schemes^ Forest Development Corporation^fuel Wood^ conservation^Collectionsand compilation^financial crisis^Technical matterrs^ ANIFPDCL^ Standing finance Committee^spc^Expenditure^Finance^Committee^EFC^disposal of timber^Sandalwood^Red Sanders^teakwood^palm of plantation^processing mill";
s[3] = "Other Specific Assignments^other_specific_ass.asp^Other Specific Assignments, Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^ specific assignments^ International Labour Organization^ILO^Food and Agriculture Organization^ FAO^Trade Policy^Forest Certification^National Database Management System^ Parliament Question^Central Empowered Committee^";
s[4] = "National Status REport^national_status_repot.asp^National Status REport Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^ Executive Summary of NSR^Details of NSR^Compilation of NSR";
s[5] = "FORESTRY TRADE AND TARIFF^forestry_t&t.asp^FORESTRY TRADE AND TARIFF Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^Forestry Items reaulted by the EXIM Policy^Core Group^Applied^Import Duty^Multtilateral^Bilateral Trade^negotiations^Public Notice No. 27^RE-2005^RE-2004^RE-2009^PublicNotice No.95^RE-2005^RE-2004^RE-2009^Policy Circular No.1^RE-2006^RE-2004-09^Public Notice No.38^RE-2006^RE-2004-2009^Public Notice No.39^RE-2006^RE-2004-2009^";
s[6] = "INSTITUTIONSORGANIZATIONS^institutions_organisations.asp^INSTITUTIONSORGANIZATIONS Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^Institutions and Organizations^Andhra Pradesh^Andoman & Nicobar^Arunachal Pradesh^Bihar State Forest Devlopment Corporation^Corporation of Maharashtra^";
s[7] = "COMMITTEES^committee.asp^COMMITTEES Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^Central Empowered Committee^Supreme Court^Expert/Advisory/Working Group^Core Group^SFMCell^Scientific Expert Committee^Governing Body^Accreditation Criteria and Process^Certification Criteria^Certification Processes^Screening Committee^National Clearing House^Monitoring Committee^Executing CommttieeMulti-disciplinary Coordination Team^   ";
s[8] = "CIRCULARS / ORDERS^circulars.asp^CIRCULARS Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^National Working Group^Expert^Advisory^Group^NFDMS^Import Duties^Scientific Expert Committee^Accreditation Criteria and Process^Certification Criteria^Certification Processes^Project Screening^Committee^National Clearing House^ITTO Monitoring Committee^SFM Cell^Sustainable Forest Management^Cell<Executing Committee^   ";
s[9] = "NFDMS ^^NFDMS.asp^NFDMS Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^NFDMS^Background^Note^Expert^Advisory^Working Group^NFDMS^INFORMATION NEED ANALYSIS^Proforma^FunctionalCAPICITY BUILDING^   ";
s[10] = "SU NEWS ^su_news.asp^SU NEWS Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^Issue December 2006^   ";
s[11] = "Contact Us ^contact.asp^Contact Us Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^contact^mail^Dr Bipin Behari^DIG Forests^Shri A.k.Joshi^AIG Forests^   ";
s[12] = "PHOTO GALLERY ^gallery.asp^PHOTO GALLERY Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^   ";
s[13] = "Disclaimer ^disclaimer.asp^Disclaimer Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^National Information^Center^NIC^   ";
s[14] = "Projects ^projects.asp^Projects Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^Status of Projects^Extention of Project^  ";
s[15] = "What's New ^what'snew.asp^What's New Survey & Utilization Division Ministry of Environment & Forest^ Govt. of India  ^Sandal Wood Red Sanders Smugglivg^C&i for SFM^IIfm Bhopal^MULTI DISCIPLINARY TEAM^DRL^ITTO Diagnostic^Technical Mission^Sustainable Forest Management In India^Amity Business School^41st Session ITTIC^Chennai Work shop^Highlights^State of Forest Report-2003^  ";




// ---------- 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>');
		}
	}

}

