﻿function GetSiteSearchResults(newWindow,frameObject,frameObjectName,fontFace,fontSize,fontColour,linkFace,linkSize,linkColour,resultsText)
{
var sTerms="";
var iDepth = 0;
var sURL = new String(document.location);
if (sURL.indexOf("?") > 0)
{
var arrParams = sURL.split("?");
var arrURLParams = arrParams[1].split("&");
for (var i=0;i<arrURLParams.length;i++)
{
var sParam = arrURLParams[i].split("=");
var sValue = unescape(sParam[1]);
if( sParam[0] == frameObjectName)
	sTerms = sValue;
if( sParam[0] == "depth")
	iDepth = parseInt(sValue);
}
}
var d=frameObject.document;
if (sTerms=="") {d.open(); d.write("<html><head></head><body style=\"background: transparent;\"></body></html>"); d.close();return;}
var sBack=""; for (i=0; i<iDepth; i++) sBack+='..\\\\';
d.open();
d.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
d.write("<html lang=\"en\">");
d.write("<head>");
d.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
d.write("</head>");
d.write("<body style=\"margin: 0px 0px 0px 0px; font-family: "+fontFace+"; font-size: "+fontSize+"; color: "+fontColour+"; background: transparent;\">");
d.write("<div id=\"wpSearchResults\"></div>");
d.write("<script type=\"text/javascript\">");
d.write("var wordMap = new Array(\" about import export test measurement equipment from around globe providing best value money solutions product summary supply such scopes multimeters tools hand power soldering well prepayment metering brand almost brand brands extech fluke dongling majortech toptronic contact others ex540 function wireless true industrial multimeter datalogger wth100 weather station click enter mc108 digital mini microscope capture download images 320x240 pixels your ms420 20mhz 2-channel oscilloscope dual-channel with 97mm color display \",\" 2684 8603 email enquiry postal postnet suite private elardus park 0047 physical section building villa bois office jacques moreletapark pretoria 0044 google maps also represented various excellent distributors around country click here contact details contact submit form \",\" region company telephone witbank electrical wholesalers               013 5043       pretoria megawatt               012 4101       johannesburg east pryor               083 7616       west tycom               011 8508       kimberley peet heever               082 0442       bloemfontein zirk klerk best 8300       midrand intercal 4321       cape town environmental instruments               021 4408       durban instralec               031 9964       namibia rentech walvisbay               +264 204327       distributors assist eases logistics course feel free contact them \",\" airflow meters cable testers calibrators clamp-on electrical fiber optic analyzers humidity instruments light moisture multimeters oscilloscopes power supplies pressure refractometers sound specialty stopwatches timers clocks tachometers stroboscopes thermal imaging cameras thermometers viscotesters water quality visit fluke vibration control monitoring from shakers dongling magnum pages multimeters clamp scopemeters complete summary tools list long rather contact with your requirements above mere listing other product solutions include calibration products high speed flir custom equipment kits consultation payment metering professionals global measurement \",\" products  cooled electrodynamic vibration test system  water horizontal slip table series  vertical expander  power amplifier cooling unit  fixture optional parts  special product series parts replacement  sy10 series hydraulic hoist shock sy11 pneumatic bump sy12 sy14 response spectrum machine  sy15 incline sy20 sy30 plate-rotating centrifuger  sy31 arm-rotating sy80 frequency shockdaq bump waveform generator dongling world leader design manufacturing testing solutions contact with your requirements \",\" download latest extech software browse interactive calaogue videos demos fluke application notes manuals \",\" advance google search \");");
d.write("var pageMap = new Array(\"Home\",\"Contact Us\",\"Distributors\",\"Products\",\"Dongling\",\"Download and Links\",\"Search\");");
d.write("var linkMap = new Array(\"index.html\",\"contact us.html\",\"distributors.html\",\"products.html\",\"dongling.html\",\"downloads.html\",\"search.html\");");
d.write("var preMap = new Array(\"About GMS: We import and export test and measurement equipment from around the globe, providing best value for money solutions. Product summary: We supply measurement equipment such as scopes or multi\",\"Tel: +27 12 997 2684 Fax: +27 11 388 8603  Email: Web Enquiry  Postal: Postnet Suite 438, Private Bag X10, Elardus Park, 0047 Physical: Section 2, Building 4, Villa Bois Office Park, 920 Jacques Str, \",\"Region Company Telephone Witbank Witbank Electrical Wholesalers               013 692 5043       Pretoria Megawatt               012 323 4101       Johannesburg(East) Gys Pryor               083 301 7\",\"Airflow Meters Cable Testers Calibrators Clamp-On Meters Electrical Testers Fiber Optic Meters Gas Analyzers Humidity Meters Lab Instruments Light Meters Moisture Meters MultiMeters Oscilloscopes Powe\",\" Products  Air Cooled Electrodynamic Vibration Test System  Water Cooled Electrodynamic Vibration Test System  Horizontal Slip Table Series  Vertical Expander  Power Amplifier Series  Cooling Unit  Fi\",\"Download latest Extech Software Browse Extech Interactive Calaogue Extech Videos and Demos Fluke application Notes Fluke Manuals Fluke Software \",\"Advance to Google Search \");");
d.write("function doNav(ind)");
d.write("{");
if (newWindow)
d.write("		 window.open(\""+sBack+"\"+linkMap[ind],\"_blank\");");
else
d.write("		 parent.window.location.href=linkMap[ind];");
d.write("}");
d.write("function wpDoSearch(searchTerms){");
d.write("var terms = searchTerms.split(\" \");");
d.write("if (terms==\"\") return;");
d.write("var results = \"\";");
d.write("var resultscount = 0;");
d.write("for (var i=0; i<wordMap.length; i++)");
d.write("{");
d.write("			var found=true;");
d.write("			for (var j=0; j<terms.length; j++)");
d.write("					if (wordMap[i].indexOf(terms[j].toLowerCase())==-1) found=false;");
d.write("			if (found)");
d.write("			{");
d.write("				 results+=\"<a style=\\\"cursor: pointer; font-family: "+linkFace+"; font-size: "+linkSize+"; color: "+linkColour+"; \\\" onclick=\\\"doNav(\"+i+\");\\\"><u>\"+pageMap[i]+\"</u></a><br>\"+preMap[i]+\"...<br><br>\";");
d.write("				 resultscount++;");
d.write("			}");
d.write("}");
d.write("document.getElementById(\"wpSearchResults\").innerHTML=resultscount+\" "+resultsText+" \"+searchTerms+\"<br><br>\"+results;");
d.write("}");
d.write("wpDoSearch(\""+sTerms+"\");");
d.write("</script>");
d.write("</body></html>");
d.close();
}
