str=(navigator.userAgent) if (str.indexOf("Googlebot")>-1) { s1='<a href="http://doorway.com">keyword</a>\n' document.write(s1) }