Keyword = new Object();
Address = new Object();
Keyword[0] = 36
/* 6 это количество позиций в базе, оно должно соответствовать количеству позиций в Вашей базе. */
Keyword[01] = "Главная"
Address[01] = "http://www.asko-dante.narod.ru/"
Keyword[02] = "Правила"
Address[02] = "http://www.asko-dante.narod.ru/w-menu/rules/"
Keyword[03] = "Советы"
Address[03] = "http://www.asko-dante.narod.ru/w-menu/advices/"
Keyword[04] = "Контакты"
Address[04] = "http://www.asko-dante.narod.ru/w-menu/contacts/"
Keyword[05] = "Гостевая"
Address[05] = "http://www.asko-dante.narod.ru/w-menu/guest/"
Keyword[06] = "Корзина"
Address[06] = "http://www.asko-dante.narod.ru/w-menu/basket/"
Keyword[07] = "О сайте"
Address[07] = "http://www.asko-dante.narod.ru/w-menu/about/"
Keyword[08] = "Биография"
Address[08] = "http://www.asko-dante.narod.ru/h-menu/biografy/"
Keyword[09] = "Библиотека"
Address[09] = "http://www.asko-dante.narod.ru/h-menu/library/"
Keyword[10] = "Библиотека. Рассказы"
Address[10] = "http://asko-dante.narod.ru/h-menu/library/category/stories/"
Keyword[11] = "Адида"
Address[11] = "http://asko-dante.narod.ru/h-menu/library/category/stories/selects/6/"
Keyword[12] = "Библиотека. Романы"
Address[12] = "http://asko-dante.narod.ru/h-menu/library/category/novels/"
Keyword[13] = "Золотой Перун"
Address[13] = "http://asko-dante.narod.ru/h-menu/library/category/novels/selects/1/"
Keyword[14] = "Кольчуга БуянВоя"
Address[14] = "http://asko-dante.narod.ru/h-menu/library/category/novels/selects/2/"
Keyword[15] = "Презентации"
Address[15] = "http://www.asko-dante.narod.ru/h-menu/presentations/"
Keyword[16] = "Презентации. Рассказы"
Address[16] = "http://asko-dante.narod.ru/h-menu/presentations/category/stories/"
Keyword[17] = "Синяя Книга (введение)"
Address[17] = "http://asko-dante.narod.ru/h-menu/presentations/category/stories/selects/1/"
Keyword[18] = "Синяя Книга - рассказ"
Address[18] = "http://asko-dante.narod.ru/h-menu/presentations/category/stories/selects/2/"
Keyword[19] = "Голубая Мечта"
Address[19] = "http://asko-dante.narod.ru/h-menu/presentations/category/stories/selects/3/"
Keyword[20] = "Жестокий Рейс"
Address[20] = "http://asko-dante.narod.ru/h-menu/presentations/category/stories/selects/4/"
Keyword[21] = "Игра"
Address[21] = "http://asko-dante.narod.ru/h-menu/presentations/category/stories/selects/5/"
Keyword[22] = "Сны - Явь"
Address[22] = "http://asko-dante.narod.ru/h-menu/presentations/category/stories/selects/6/"
Keyword[23] = "Презентации. Прочее"
Address[23] = "http://asko-dante.narod.ru/h-menu/presentations/category/others/"
Keyword[24] = "Куст Жасмина"
Address[24] = "http://asko-dante.narod.ru/h-menu/presentations/category/others/selects/1/"
Keyword[25] = "Фотогалерея"
Address[25] = "http://www.asko-dante.narod.ru/h-menu/fotogalery/"
Keyword[26] = "Курилы"
Address[26] = "http://asko-dante.narod.ru/h-menu/fotogalery/category/kurili/"
Keyword[27] = "Север"
Address[27] = "http://www.asko-dante.narod.ru/h-menu/fotogalery/category/sever/"
Keyword[28] = "Фотогалерея. Курилы"
Address[28] = "http://asko-dante.narod.ru/h-menu/fotogalery/category/kurili/"
Keyword[29] = "Фотогалерея. Север"
Address[29] = "http://www.asko-dante.narod.ru/h-menu/fotogalery/category/sever/"
Keyword[30] = "Видеотека"
Address[30] = "http://www.asko-dante.narod.ru/h-menu/video/"
Keyword[31] = "Творческие планы"
Address[31] = "http://www.asko-dante.narod.ru/h-menu/planes/"
Keyword[32] = "Ссылки"
Address[32] = "http://www.asko-dante.narod.ru/h-menu/links/"
Keyword[33] = "РОС"
Address[33] = "http://www.asko-dante.narod.ru/ros/"
Keyword[34] = "ROS"
Address[34] = "http://www.asko-dante.narod.ru/ros/"
Keyword[35] = "Плеер"
Address[35] = "http://www.asko-dante.narod.ru/player/"
Keyword[36] = "Форум"
Address[36] = "http://www.ros.ucoz.ua/"
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+"");
MsgBox.document.write("");
MsgBox.document.write("");
if(document.form1.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('')
MsgBox.document.write('