
// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------

var s = new Array();

s[0] = "Contact Us^cont.htm^Contact Us For Better Property Future.^ conatct, contact us, contact svs, svs, svs propmart, svspropmart";
s[1] = "Corporate Overview ^corp.htm^SVS is a provider of real estate professional services. At SVS our experts assist you in solving your real estate needs quickly and efficiently.^ Corporate, Corporate Overview, iso, iso 9001, svs, svs propmart, svspropmart";
s[2] = "About Us^abts.htm^SVS Propmart is an inspiration from the needs of the keen buyers of contemporary Real Estate.^ about, about us, about svs, svs, svs propmart, svspropmart";
s[3] = "Our Mission^ourm.htm^At SVS our goal continues to create the best possible environment for our client and to provide rapid response, personalized advice for projects of all scales and budgets, at competitive rates.^ mission, mission statement, svs mission, svs, svs propmart, svspropmart";
s[4] = "Our Services^ours.htm^Agency Services, Investment Services, Land Acquisition/Disposition Services & Advisory Services ^ services, our services, Agency Services, agency, advisory, advisory services, land acquisition, land disposition, investment, svs, svs propmart, svspropmart";
s[5] = "Our Clients^ourc.htm^ We have a huge list of esteemed clients, viz. Orient Craft, Centurion Bank, Ranbaxy etc. ^ clients, svs clients, HP, Orient Craft, Study by Janak, Centurion Bank, Ranbaxy, LG, Nagaro, Ecko, Sheetal";
s[6] = "Our Portfolio^ourp.htm^ We have a great portfolio of niche Builders and Developers.^ portfolio, svs portfolio, UNITECH LIMITED, VATIKA GROUP, DLF GROUP, ANSAL GROUP, JMD REALTORS, NIHO GROUP, Vipul, PARASVANATH, ESSEL GROUP, MGF GROUP";
s[7] = "Testimonials^test.htm^ Study by Janak has planned to open 10 more retail outlets in the upcoming malls of Delhi and NCR and this would not have been possible without the professional and expert advice of SVS Propmart and KSA.^ testimonial, Study by Janak, Vipul Group, DLF";

// ---------- 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>');
		}
	}

}
