I'm trying to link a thumbnail to the link I assign it to in wordpress when I first uploaded the image. I know it's originally set to the image itself but I would like to change this. At the moment the thumbnail doesn't link anywhere. The code I have is:

<?php $pages = get_pages(array('child_of' => 9)); ?> 

    <?php foreach ($pages as $page): ?>

         <div class="leftimage">   <?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?></div>
         <div class="textright"><h4><b><?php echo $page->post_title; ?></b></h4>
            <?php echo $page->post_content; ?> <p></p>

Any help would be so appreciated! I'm finding I'm not getting any help at the Wordpress forums. I don't need the thumbnail to link to the post. I need it to link to a website I assign. I also would like to know if there's a way to make it open in a new page.

Go into your post, hover over te image and click the edit icon.

In the edit image pop-up, click advanced and change the link url to what you want it to be.