That doesn't look like the default contactus.php file that in included in the contact form solution pack. What changes did you make to the page before this stage?
It looks like you will want to change this line:
$GoToPage = "";
to look like this:
$GoToPage = "thankyou.php";