<script>
var LinkMass=new Array(4);
var r=s=str1=str2=str3='';
var i=cikl=0;
var n=5;
LinkMass[0]='index.html';
LinkMass[1]='produkciya/index.html';
LinkMass[2]='proizvodstvo/index.html';
LinkMass[3]='kontakti/index.html';
LinkMass[4]='fotogalery/index.html';
function func()
{
while (cikl <5)
{
document.getElementById('Result').innerHTML=document.getElementById('Result').innerHTML+cikl+"<br>";
poisk(cikl);
cikl++;
}
}
function poisk (i)
{
r=srch.value;
s=document.getElementById('Result').innerHTML;
str3 = " "; str1 = "";
alert (i);
fram.document.location.href=(LinkMass[i]);
document.getElementById('frams').src=LinkMass[i];
str1 =(fram.document.body.innerText.substring(fram.document.body.innerText.indexOf(r,0),fram.document.body.innerText.indexOf(r,0)-100));
str2 =(fram.document.body.innerText.substring(fram.document.body.innerText.indexOf(r,0),fram.document.body.innerText.indexOf(r,0)+250));
str3 = ('<b>...</b>'+ str1 + str2 + '<b>...</b>');
if (str1 != '')
{
document.getElementById('Result').innerHTML=s+"<br><p align='justify'><a class=\'Menu' href=\'"+ document.getElementById('frams').src +"\'>"+fram.document.title + "</a>
"+"<br>"+ document.getElementById('frams').src +"<br><br>"+"<a class='Text' style='cursor: default'>" + str3 + "</a>"+"<hr></p>"
}
}
</script>