echo "<a href=".$rutaimagen." target=popup onclick=window.open('index.php','popup','width=100','height=400');void(0);>enlace</a>";