var wd = new Array(
 "искуственная трава",
 "корты с искусственной травой",
 "футбольные поля с искусственной травой",
 "построить корт с искусственной травой",
 "построить футбольное поле с искусственной травой",
 "группа компаний Мост",
 "jutagrass",
 "построить футбольное поле с искусственной травой",
 "группа компаний Мост",
 "ДжутаГрасс в России",
 "искуственная трава ДжутаГрасс",
 "ДжутаГрасс Искуственная Трава из Чехии",
 "Спорт трава из Бельгии купить в кирове");
 var sr = Math.floor(Math.random() * wd.length)
////////Смена фона формы при наведении
var highlightcolor="#fffff0"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/
//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}
//Function to highlight form element
function highlight2(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
 //Скрипт очищающий форму от текста при нажатии на нее курсора 
 function doClear(theText) { if (theText.value == theText.defaultValue) { theText.value = "" } }
var naam=navigator.appName;
var now=new Date();
var num=(now.getSeconds())%4;
function selected(nummer)
{ if (num == nummer)
   return " selected";
  else return "";
}
var imge1 = new Image();
imge1.src = "001.jpg";
document.write('<form name="metasearch" onsubmit="search()" action="" onkeyup=highlight2(event) onMouseOver=highlight2(event) onMouseOut="this.style.bgcolor=\'#FFFffB\'" ><table border="0" cellpadding="0" cellspacing="0" align=right><tr><td nowrap >');
if (naam=="Netscape") document.write('<\/td><td ><input name="query" type="text" size="10" maxlength="200"  value="поиск" onFocus="doClear(this)" >');
else document.write('<\/td><td ><input name="query" type="text" size="65" maxlength="100"  value="'+wd[sr]+'" onFocus="doClear(this)" style="color:#000000">');
document.write('<\/td><td class="search" nowrap> &nbsp;на:&nbsp;</td><td >');
document.write('<select name="engine"><option value=""><\/option>');
document.write('<option value="aport.">Aport<\/option>');
document.write('<option value="yandex"'+selected(3)+'>Yandex<\/option>');
document.write('<option value="rambler"'+selected(2)+'>Rambler<\/option>');
document.write('<option value="mail">Mail<\/option>');
document.write('<option value="google"'+selected(0)+'>Google<\/option>');
document.write('<option value="domosportsgrass"'+selected(1)+'>domosportsgrass<\/option>');
document.write('<option value=""><\/option><\/select><\/td><td >');
document.write('<\/td><td>&nbsp; <input type="button" value="Поиск" onclick="search()" style="color:#000000"><\/td><\/tr><\/table><\/form>');

function search()
{
zoekTerm = document.metasearch.query.value;    
if(zoekTerm != "")
{
zoekTerm = zoekTerm.replace(/\s/ig, "+");
nummer = document.metasearch.engine.selectedIndex;
zoekMachine = document.metasearch.engine[nummer].value;

eindTerm = "";
if(zoekMachine == "about") eindTerm = "http://www.google.com/search?q=" + zoekTerm ;
else if(zoekMachine == "aport.") eindTerm = "http://sm.aport.ru/scripts/template.dll?That=std&r="+ zoekTerm;
else if(zoekMachine == "domosportsgrass") eindTerm = "http://domosportsgrass.ru/index.php?option=com_search&Itemid=5&searchword="+ zoekTerm+"&option=com_search&Itemid=5";
else if(zoekMachine == "yandex") eindTerm = "http://www.yandex.ru/yandsearch?text="+ zoekTerm;
else if(zoekMachine == "rambler") eindTerm = "http://search.rambler.ru/cgi-bin/rambler_search?words="+ zoekTerm;
else if(zoekMachine == "mail") eindTerm = "http://go.mail.ru/search?lfilter=y&q="+ zoekTerm;
else if(zoekMachine == "google") eindTerm = "http://www.google.com/search?q=" + zoekTerm;
if(zoekMachine != ""){
zoekraam=window.open(""+eindTerm,"zoekresultaat","width=1000,height=700,scrollbars,toolbar,menubar=1,location=1,resizable=1,status=1,directories=0,top=0,left=0");
zoekraam.focus();
}
}
}
//-->

