function translit($st)
{
$st=strtr($st,array("ж"=>"zh","ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"shch","ю"=>"yu","я"=>"ya"));
$st=strtr($st,array("Ж"=>"Zh","Ц"=>"Ts","Ч"=>"Ch","Ш"=>"Sh","Щ"=>"Shch","Ю"=>"Yu","Я"=>"Ya"));
$st=strtr($st,"абвгдеёзийклмнопрстуфхъьиеіїє","abvgdeeziyklmnoprstufh''ieiie");
$st=strtr($st,"АБВГДЕЁЗИЙКЛМНОПРСТУФХЪЬИЕІЇЄ","ABVGDEEZIYKLMNOPRSTUFH''IEIIE");
return $st;
}