

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = "Laptop^laptop.html^If you’re in the market for a new laptop/mac or laptop/mac repair, the wide range of machines / services on offer can be overwhelming.^IT Support, computer solution, Computer repair in Fairfax, Computer Repair in Loudon,Computer repairs, Laptop repairs,Computer Repair in Prince William County, Laptop repair in Fairfax, Laptop Repair in Loudon, Laptop Repair in Prince William County,xbox 360 repair ";
s[1] = "Desktops^desktops.html^We offer custom built computers / computer repair in Fairfax, Loudon and Prince William county, and provide accessories for your home, school or business.  ^IT Support, computer solution, Computer repair in Fairfax, Computer Repair in Loudon, Computer repairs, Computer Repair in Prince William County,desktop, ";
s[2] = "Mac^laptop.html^If you’re in the market for a new laptop/mac or laptop/mac repair, the wide range of machines / services on offer can be overwhelming.";
s[3] = "Printers^printers.html^RxPc is known as a premier printer repair service for all types of printers, fax machines and copiers in the VA/MD/DC area.^ Computer Repair in Loudon, Printer repair in Fairfax, Printer Repair in Loudon, Printer Repair in Prince William County,";
s[4] = "Projectors^projectors.html^Is your projector, plasma, RPTV or LCD TV in need of repairs? Looking for assistance? Look no further. RxPc offer fast, efficient and affordable repair services that are just a call or a click away.^ projector, plasma, RPTV or LCD TV, Epson, Infocus, AskProxima, Panasonic, Mitsubishi, Hitachi, Toshiba, Computer Repair in Loudon, Projectors Repair in Prince William County,projectors";
s[5] = "Networks^networks.html^Do you wish to know where network problems might arise at a in the future and how to avoid them? Would you like to know how to prevent unauthorized access to your network?^ Network, Network Troubleshooting, Network Installation and Support, Network Administration, Hardware and Software Procurement, Remote Network Monitoring, WAN/LAN , workstation configurations, application configuration information such as virus, backup, email, database, Wireless Solutions , Projectors Repair in Prince William County,projectors";
s[6] = "Spare Parts^parts.html^At the RxPc parts store, you will find parts that we use in many of our computer builds.^ Accessories, Parts, Additional Cooling , Case, CD / DVD Rom, Hardware and Software, CPU cooling , Ext. Drive , Floppy Drive, Hard Drive, Keyboard , Liquid Cooling: Chipset Other Video, Monitor, Motherboard , Mouse, Networking, Operating System ,Power Supply, Ram, Sound Card, Speakers, Video Card";
s[7] = "Data backup^databackup.html^We know that your data is criticsal. That&rsquo;s why we offer services that prevent you from the costs, hassles, and frustration of lost data.^ Backup for the PC , PC Backup, Data backup , Backup on the Server, Data encryption data during transmission and storage, Secure backup";
s[8] = "Data Recovery^datarecovery.html^Data recovery is the process of salvaging data from damaged, failed, corrupted, or inaccessible secondary storage media when it cannot be accessed normally.^ data recovery , Ext2FS/Ext3FS file systems, viruses, trojan horses, spyware, undelete, drive image, data security ";






// ---------- 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>');
		}
	}

}
