
function findf () {

//установка
if (document.getElementById){  
switch1="getElementById('";
switch2="')";
 }else{
	    if (navigator.appName == "Netscape") {
    	switch1="layers['";
         switch2="']" ;
         } else {
             switch1="all['";
             switch2="]" ;
            }
}


myArray= new Array(3);
regexp = new RegExp("[hs1234567890_-]+\.htm"); 

reg2 = new RegExp("[^#]+");
t= top.location;
t= ""+t;

myArray = regexp.exec(t);


l2=t.length;
l1=l2-myArray[0].length;
t= t.substring (l2,l1);
i=2;
while(document.forms["lnk"].com.options[i]){
string = document.forms["lnk"].com.options[i].value;

myArray = reg2.exec(string);
string = myArray[0];

myArray = regexp.exec(string);

l1=string.length - myArray[0].length;
string= string.substring (0,l1);

document.forms["lnk"].com.options[i].value = string+t+"#01.01";
//alert(document.forms["lnk"].com.options[i].value);
i++;
}

i=2;
while(document.forms["lnk"].tr.options[i]){
string = document.forms["lnk"].tr.options[i].value;
myArray = reg2.exec(string);
string = myArray[0];
myArray = regexp.exec(string);
l1=string.length - myArray[0].length;
string= string.substring (0,l1);
document.forms["lnk"].tr.options[i].value = string+t+"#01.01";
//alert(document.forms["lnk"].tr.options[i].value);
i++;
}
}
