

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = 
"PT INDOMALAY EKATANO ROOFING INDUSTRIES ^indomalay.php^ At present, the Building Products Division is made up of only one active company, which is PT Indomalay Ekatana Roofing Industries. IRI is in the business of manufacturing metal roofing tiles. It produces two main types of metal roofing tiles, that is the Stonechip tiles and Pre-painted tiles.";

s[1] = "BUSINESS DIVISIONS ^business.php^ Nylex Malaysia Berhad  has two main business divisions, namely the Polymer Division and Industrial Chemical Division.";

s[2] = "CAREER ^career.php^ It is Nylex belief that its employees should possess the following: Integrity, Emotional connection to, the company, Willingness to accept change and to learn new things, Diligent and Hardworking, Discipline and Control";

s[3] = "CKG CHEMICALS PTE LTD ^ckg.php^ The principal activities of CKG Chemicals Pte Ltd are those relating to the trading and distribution of petrochemicals and related products in the Asia Pacific region.";

s[4] = "BOARD OF DIRECTOR ^director.php^ Datuk Haji Mohamed Al Amin bin Haji Abdul Majid, JP Non-Independent Non-Executive Chairman. Dato' Johari Razak Non-Independent Non-Executive Deputy Chairman. Dato' Siew Ka Wei Group Managing Director...";

s[5] = "DYNAMIC CHEMICAL TRADING PTE LTD ^dym.php^ Dynamic Chemical Trading Pte. Ltd. was formed in 1988 for the purpose of local distribution of petrochemical based solvents in Singapore, and the general trading of petrochemical solvents and feedstocks to Asia-Pacific countries.";

s[6] = "FINANCIAL STATEMENTS / ANNUAL REPORTS ^financial.php^ 4th Quarter Results ended 31 May 2009, 3rd Quarter Results ended 28 February 2009, 2nd Quarter Results ended 30 November 2008, 1st Quarter Results ended 31 August 2008...";

s[7] = "FERMPRO SDN BHD ^frempo.php^ Fermpro Sdn Bhd is Malaysia's leading manufacturer of high quality ethanol using cane sugar molasses and advanced US distillation technology. Its ethanol conforms to British Pharmacopoeia Standards and is widely used in cosmetics...";

s[8] = "INDUSTRIAL CHEMICAL DIVISION ^industrial.php^ PERUSAHAAN KIMIA GEMILANG SDN BHD, CKG CHEMICALS PTE LTD, DYNAMIC CHEMICAL TRADING PTE LTD, PERUSAHAAN KIMIA GEMILANG (VIETNAM) COMPANY, PT PKG LAUTAN INDONESIA...";

s[9] = "KUMPULAN KESUMA SDN BHD ^kesuma.php^ specialises in the manufacturing and distribution of a range of industrial adhesives and sealants under the brand name WEDON. Its products are used by major industries in the country such as car assemblers, automotive vendors, air-con manufacturers and building contractors.";

s[10] = "NYLEX SPECIALTY CHEMICALS SDN BHD ^nsc.php^ the only licensed manufacturer of Orthophosphoric and Polyphosphoric Acids in Malaysia. The orthophosphoric acid is used in the degumming of palm oil during refining, in metal finishing, sugar refining, water treatment and as a catalyst carrier in polymerisation.";

s[11] = "PERUSAHAAN KIMIA GEMILANG SDN BHD ^pkg.php^ one of the largest independent marketer and distributor of petrochemicals, solvents, industrial chemicals and specialty products in Asia. A highly respected and established name, PKG sells more than 50 different products to over 12 countries in the Asia-Pacific region.";

s[12] = "POLIMER DIVISION ^polymer.php^ We provide a wide spectrum of Interior Solutions such as furniture upholstery, automotive interiors, speaker box laminates, gypsum board laminates and diary covers. Through intensive R&D, we are able to value-add our products with fire-retardant, anti-microbial, anti-cold crack and UV-resistant properties.";

s[13] = "NYLEX CORPORATE PROFILE ^profile.php^ public limited liability company, incorporated and domiciled in Malaysia and listed on the Main Market of Bursa Malaysia Securities Berhad in 1990. ";

s[14] = "NYLEX CORPORATE STRUCTURE ^structure.php^ click on subsidiaries to view more detail";
/*










s[] = " ^^ ";

*/







// ---------- 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 was not available in our database at this moment');
		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>');
		}
	}

}
