﻿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(\" welcome website please follow link your area interest solutions tools diagnosis drug testing tuberculosis lima technology generic tools ultra-sensitive detection bacteria bacterial contamination seprion study protein aggregates protein aggregation diseases \",\" company world leader novel molecular detection assays developed range substrates that presence specific enzymes converted product detected methods example targeting bacterial enzyme high-sensitivity test contamination been this used manufacturers blood products pharmaceutical monitor both during manufacturing process final find more please click link left \",\" lima used detection bacterial contamination tests enzyme dependent ligase which present bacteria tested date such this assay especially useful general examples applications platelets other blood products environmental sterility testing pharmaceutical manufacturing processes order more information please email info microsens tools sensitive generic dual amplification cascades then very detect single bacilli fraction contents example platelet powerpoint presentation click link copy protocol application \",\" publications submitted soon powerpoint presentation lima assay please click below \",\" 2009-2010 microsens continues apply lima assay detection bacterial contamination blood products 2009 iseao licenses application clinical infection 2010 expects mark core during \",\" roll over zoom immediate area click symbol above google directions nearest underground station mornington crescent northern line charing cross branch from king's kings euston either walk which takes less than minutes take taxi \",\" \",\" email info microsens telephone 7691 2147 find royal college street london \");");
d.write("var pageMap = new Array(\"Home\",\"Iseao\",\"Products\",\"Publications\",\"News\",\"Location\",\"Microsens biotechnologies\",\"Contact us\");");
d.write("var linkMap = new Array(\"index.html\",\"Iseao.html\",\"Products.html\",\"publications.html\",\"News.html\",\"location.html\",\"Microsens biotechnologies.html\",\"Contact us.html\");");
d.write("var preMap = new Array(\"Welcome to our website Please follow the link to your area of interest! TB Solutions  Tools for the diagnosis and drug testing of tuberculosis LiMA technology  Generic tools for the ultra-sensitive de\",\"The company is a world leader in novel molecular detection assays. The company has developed a range of DNA substrates that, in the presence of specific enzymes, can be converted to DNA product that c\",\"The LiMA kit can be used for the detection of bacterial contamination. The LiMA kit tests for an enzyme; NAD dependent DNA ligase which is present in all bacteria tested to date. As such, this assay i\",\"Publications to be submitted soon  For a Powerpoint presentation on the LiMA assay please click below. \",\"2009-2010 Microsens continues to apply the LiMA assay for the detection of bacterial contamination of blood products. 2009 Iseao/Microsens licenses the LiMA application for detection of clinical bacte\",\"Roll over the map to  zoom in to immediate area.  .   Or click on the symbol above for a Google map  Directions  Nearest Underground Station is Mornington Crescent (Northern Line, Charing Cross Branch\",\"\",\"Email us at info@microsens.co.uk  Telephone us at: +44(0)20 7691 2147  Find us at: 2 Royal College Street, London. NW1 0NH \");");
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("}");
while(sTerms.indexOf("\"") != -1 ) {
sTerms = sTerms.replace("\"","");
};
d.write("wpDoSearch(\""+sTerms+"\");");
d.write("</script>");
d.write("</body></html>");
d.close();
}
