Keyword = new Object(); Address = new Object(); Keyword[0] =18 Keyword[01] = "главная страница" Address[01] = "index.html" Keyword[02] = "roches" Address[02] = "index.html" Keyword[03] = "компания" Address[03] = "index.php?action=Company" Keyword[04] = "company" Address[04] = "index.php?action=Company" Keyword[05] = "контакты" Address[05] = "index.php?action=Contact" Keyword[06] = "contact" Address[06] = "index.php?action=Contact" Keyword[07] = "cutting-off machine" Address[07] = "index.php?action=Cutting-off_machine" Keyword[08] = "crushing plant" Address[08] = "index.php?action=Crushing_plant" Keyword[09] = "отрезные станки" Address[09] = "index.php?action=Cutting-off_machine" Keyword[10] = "дробильная машина" Address[10] = "index.php?action=Crushing_plant" Keyword[11] = "Кристалы и медные гильзы" Address[11] = "index.php?action=Crystal" Keyword[12] = "Crystal" Address[12] = "index.php?action=Crystal" Keyword[13] = "Пилы и сверла, фрезы" Address[13] = "index.php?action=" Keyword[14] = "Saw and perforator" Address[14] = "index.php?action=Saw_perforator" Keyword[15] = "Отрезные/кромкофрезерные станки для труб" Address[15] = "index.php?action=edge-milling_for_tube" Keyword[16] = "edge-milling for tube" Address[16] = "index.php?action=edge-milling_for_tube" Keyword[17] = "Кромкофрезерные станки для полосы и листа" Address[17] = "index.php?action=edge-milling_for_plate" Keyword[18] = "edge-milling for plate" Address[18] = "index.php?action=edge-milling_for_plate" function contains(sub,s){ strlen1=sub.length strlen2=s.length istrue=false for(i=0;i<=strlen2;i++) { comp=s.substring(i-1,strlen2) comp=comp.substring(0,strlen1) if(comp==sub){ istrue=true break } } return istrue } function dolt() { loopCount=0; var Found=false var Item=document.forms[0].sub.value.toLowerCase(); stats='toolbar=no,location=no,scrollbars=yes,directories=no,status=yes,menubar=no,height=400,width=600,top=0,left=0' stats += 'scrollbars=yes,resizable=yes' MsgBox = window.open ("","msgWindow",stats) MsgBox.opener = window; MsgBox.opener.name = "opener"; MsgBox.document.write("Результат поиска: "+Item+""); if(document.form.sub.value=="") MsgBox.document.write('
Результат поиска: всех записей
'); else MsgBox.document.write('
Результат поиска: '+Item+'
'); for(var i=1; i<=Keyword[0]; i++){ contains(Item,Keyword[i].toLowerCase()) if(comp==Item) { loopCount++; Found=true; MsgBox.document.write('
'+loopCount+'.
'+Keyword[i]+'
') MsgBox.document.write('