PageSourceSearch

https://www.davor.com.my/ex_js/formSearch.js?v=1.6

js davor.com.my collected 2026-10-07 14:44:36 UTC 1,151 bytes, 39 lines download raw bytes

1function formSearch(search_value){
2	//"/" cannot travel in the URL path: Apache 404s %2F (AllowEncodedSlashes off) and a raw
3	//slash becomes a path separator. So DOUBLE-encode it (%252F) — Apache passes it, and the
4	//server (npSafeSearchTerm) decodes every layer back to "/", so "195/rr" searches and
5	//displays as "195/rr". "\" is stripped server-side anyway, so drop it here too.
6	search_value = search_value.replace(/\\/g, " ").replace(/\s+/g, " ").trim();
7	if (search_value.length >= 1)
8	{
9		str = 	encodeURIComponent(search_value);
10		str = str.replace(/%2F/gi, "%252F");
11		//str = str.replace(/&/g, "(and)");
12		var language=document.documentElement.lang;
13		if (language=='zh-Hans') {
14			language='cn';
15		}
16		if (language=='en') {
17			language='en';
18		}
19		if (language=='ms') {
20			language='bm';
21		}
22		if (language=='ja') {
23			language='jp';
24		}
25		if (language=='th') {
26			language='th';
27		}
28		if (language=='id') {
29			language='id';
30		}
31		var str = language+"/search/search_name/"+str+"/pn/1/";	
32		location.pathname = str;
33	}
34return false;
35}	
36		
37function searchResult(total_result){
38	document.getElementById("div").innerHTML = total_result;
39}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.