function SearchVideo($q){
global $token;
$video_search = api('video.search?q='.urlencode($q).'&adult=1&search_own=0&count=50&extended=0&v=5.87&access_token='.$token);
for($i=0;$i<10;$i++){
$rand = rand(0,49);
$attach .= 'video'.$video_search['items'][$rand]['owner_id'].'_'.$video_search['items'][$rand]['id'].',';
}
return substr($attach, 0,iconv_strlen($attach)-1);
}