<script language="JavaScript" src="http://www.translate.ru/js/ruscode.js"></script>
<?php 

$tmp2 = "";
$tmp1 = 1;
for($k=1;$k<=count($obase);$k++){
	if ($_GET['p'] == 100+$k*2){continue;}
	if (mysql_num_rows(mysql_query("select name from obd_" . (99+$k*2) . " where name = '" . $row['name'] . "'"))){
		$tmp2 .= " <sub>" . $tmp1++ . "</sub> <a style='color:navy;' class='a_show_hide' title='Открыть базу данных' href='javascript:document.getElementById(\"to_back\").setAttribute(\"action\", \"online.php?p=" . (99 + $k*2) . "\");document.getElementById(\"to_back\").submit();'>" . $obase[$k][0] . "</a>";
	}
}

if ($tmp2 <> ""){

		if (empty($_SESSION['back1_restrict_find'])){$_SESSION['back1_restrict_find'] = "none";
		}elseif (empty($_SESSION['back2_restrict_find'])){$_SESSION['back2_restrict_find'] = "none";
		}else {$_SESSION['back1_restrict_find'] = $_SESSION['back2_restrict_find'];$_SESSION['back2_restrict_find'] = "none";}
		
		if (empty($_SESSION['back1_in_desk'])){$_SESSION['back1_in_desk'] = "none";
		}elseif (empty($_SESSION['back2_in_desk'])){$_SESSION['back2_in_desk'] = "none";
		}else {$_SESSION['back1_in_desk'] = $_SESSION['back2_in_desk'];$_SESSION['back2_in_desk'] = "none";}
		
		if (empty($_SESSION['back1_in_name'])){$_SESSION['back1_in_name'] = "none";
		}elseif (empty($_SESSION['back2_in_name'])){$_SESSION['back2_in_name'] = "none";
		}else {$_SESSION['back1_in_name'] = $_SESSION['back2_in_name'];$_SESSION['back2_in_name'] = "none";}


		$_SESSION['back1_user_name'] = $row['name'];



	
	
	echo "<p class='sm'><span class='bld'>Базы онлайн с похожими записями: </span>" . $tmp2 . "</p>";

}
if (ismode()){
?>
<table class="bclr_w"><tr><td class="sm jst" style="width:45%;padding:3px 7px;">Есть замечания, пожелания, предложения или даже возражения по данной записи? Пишите в комментарии! Мы обязательно вам ответим.</td><td class="sm jst" style="width:55%;padding:3px 7px;">Знаете о записи больше, чем мы? Пишите в комментарии! Самые активные бесплатно получать реквизиты зарегистрированного пользователя на один месяц.</td></tr></table>
<?php 
include "../my_comment.php";
}
$tmp_1 = 1;
?>
<div class="rgt" style="background-color:#FFF9F0;padding:7px;"><span class="div_bbig2">Результаты поиска в системе: Google</span><sub><span><a id="arm_hid<?php echo $tmp1; ?>" style="display:none;font-variant:small-caps;" href="javascript:void(0);" onclick="document.getElementById('frm<?php echo $tmp1; ?>').setAttribute('height', '1px');document.getElementById('arm_vis<?php echo $tmp1; ?>').style.display = 'inline';document.getElementById('arm_hid<?php echo $tmp1; ?>').style.display = 'none';"> скрыть</a></span><span><a id="arm_vis<?php echo $tmp1; ?>" style="display:inline;font-variant:small-caps;" href="javascript:void(0);" onclick="document.getElementById('frm<?php echo $tmp1; ?>').setAttribute('height', '333px');document.getElementById('arm_vis<?php echo $tmp1; ?>').style.display = 'none';document.getElementById('arm_hid<?php echo $tmp1; ?>').style.display = 'inline';parent.nfrm<?php echo $tmp1; ?>.location = 'http://www.google.ru/custom?<?php echo "q=" . $row['name']; ?>&client=&forid=1&ie=windows-1251&oe=windows-1251&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A11&hl=ru&meta=lr%3Dlang_ru';"> отобразить</a></span></sub></div>
<iframe name="nfrm<?php echo $tmp1; ?>" id="frm<?php echo $tmp1++; ?>" height="1px" style="padding:7px;border: 3px solid #FFF9F0;" width="<?php if (isset($_SESSION['listwidth'])){echo 730 + $_SESSION['listwidth']*100-100;}else{echo "730";} ?>px" src=""></iframe>

<div class="rgt" style="background-color:#FFF9F0;padding:7px;"><span class="div_bbig2">Результаты поиска в системе: wikipedia</span><sub><span><a id="arm_hid<?php echo $tmp1; ?>" style="display:none;font-variant:small-caps;" href="javascript:void(0);" onclick="document.getElementById('frm<?php echo $tmp1; ?>').setAttribute('height', '1px');document.getElementById('arm_vis<?php echo $tmp1; ?>').style.display = 'inline';document.getElementById('arm_hid<?php echo $tmp1; ?>').style.display = 'none';"> скрыть</a></span><span><a id="arm_vis<?php echo $tmp1; ?>" style="display:inline;font-variant:small-caps;" href="javascript:void(0);" onclick="document.getElementById('frm<?php echo $tmp1; ?>').setAttribute('height', '333px');document.getElementById('arm_vis<?php echo $tmp1; ?>').style.display = 'none';document.getElementById('arm_hid<?php echo $tmp1; ?>').style.display = 'inline';parent.nfrm<?php echo $tmp1; ?>.location = 'http://ru.wikipedia.org/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:Search?<?php echo "search=" . $row['name']; ?>';"> отобразить</a></span></sub></div>
<iframe name="nfrm<?php echo $tmp1; ?>" id="frm<?php echo $tmp1++; ?>" height="1px" style="padding:7px;border: 3px solid #FFF9F0;" width="<?php if (isset($_SESSION['listwidth'])){echo 730 + $_SESSION['listwidth']*100-100;}else{echo "730";} ?>px" src=""></iframe>

<div class="rgt" style="background-color:#FFF9F0;padding:7px;"><span class="div_bbig2">Результаты поиска в системе: Рамблер</span><sub><span><a id="arm_hid<?php echo $tmp1; ?>" style="display:none;font-variant:small-caps;" href="javascript:void(0);" onclick="document.getElementById('frm<?php echo $tmp1; ?>').setAttribute('height', '1px');document.getElementById('arm_vis<?php echo $tmp1; ?>').style.display = 'inline';document.getElementById('arm_hid<?php echo $tmp1; ?>').style.display = 'none';"> скрыть</a></span><span><a id="arm_vis<?php echo $tmp1; ?>" style="display:inline;font-variant:small-caps;" href="javascript:void(0);" onclick="document.getElementById('frm<?php echo $tmp1; ?>').setAttribute('height', '333px');document.getElementById('arm_vis<?php echo $tmp1; ?>').style.display = 'none';document.getElementById('arm_hid<?php echo $tmp1; ?>').style.display = 'inline';parent.nfrm<?php echo $tmp1; ?>.location = 'http://search.rambler.ru/srch?<?php echo "where=1&filter=&words=" . $row['name']; ?>';"> отобразить</a></span></sub></div>
<iframe name="nfrm<?php echo $tmp1; ?>" id="frm<?php echo $tmp1++; ?>" height="1px" style="padding:7px;border: 3px solid #FFF9F0;" width="<?php if (isset($_SESSION['listwidth'])){echo 730 + $_SESSION['listwidth']*100-100;}else{echo "730";} ?>px" src=""></iframe>