<script type="text/javascript"> var p=Math.random()*10; var v=parseInt(p); alert("he"+ v +".jpg") </script>