<a class='captcha' title='Обновить' href='#' onclick="$('#captcha').attr('src','http://*******/securimage_show.php?' + Math.random());return false;"><img id='captcha' src='http://*******/securimage_show.php' border='0' /></a>
$cookie='PHPSESSID='.$session; curl_setopt ($ch, CURLOPT_COOKIE, $cookie);