function link_write($text_array,$link_array,$cur,$url_cur_name,$url_other){
$url='?'.$url_other.'&'.$url_cur_name.'=';
foreach ($text_array as $i=>$v){
echo ' ';
if ($cur==$link_array[$i]){
echo '<span class="bold">'.$v.'</span>';
}else{
echo '<a href="'.$url.$link_array[$i].'">'.$v.'</a>';
}
}
}