$title = "Reviewer Account Setup";
        break;
    case "Administrator":
        $letterType = "adminaccount";
        $title = "Admin Account Setup";
        break;
}
//User clicks on inform reviewer button
if ($_POST["informreviewer"] == "yes") {
    $url = "Location: compose_setup_account_mail.php?lettertype=" . $letterType;
    header($url);
    exit;
}
do_html_header($title);
//Check whether the username is already taken
if (check_User_Account_Exist($_POST["loginname"])) {
    $url = "setup_new_account.php?accountType=" . $_POST["accountType"];
    echo "<form method=\"post\" action=\"" . $url . "\">";
    echo "<p> The login name you have selected is already taken. <br> Go back and select another name. <br><br><input type=\"submit\" name=\"submit\" value=\"Back\">";
    echo "</p>";
    do_html_footer();
    exit;
}
?>
		
<!--Display the information to confirm-->
<form name="form1" method="post" action="process_setup_account.php">
  <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr> 
      <td colspan="2">Below is the information that you have entered for <?php 
echo $_POST["accountType"];
    $arrAccountInfo =& $_SESSION["arrAccountInfo"];
}
//Arrange the appropriate letter type
switch ($_GET["lettertype"]) {
    case "revieweraccount":
        $letterTitle = "Reviewer Account Info";
        $accountType = "Reviewer";
        break;
    case "adminaccount":
        $letterTitle = "Admin Account Info";
        $accountType = "Administrator";
        break;
}
do_html_header($letterTitle);
//Check whether the username is already taken
if (check_User_Account_Exist($arrAccountInfo["loginname"])) {
    $url = "setup_new_account.php?accountType=" . $arrAccountInfo["accountType"];
    echo "<form method=\"post\" action=\"" . $url . "\">";
    echo "<p> The login name you have selected is already taken. <br> Go back and select another name. <br><br><input type=\"submit\" name=\"submit\" value=\"Back\">";
    echo "</p>";
    do_html_footer();
    exit;
}
//Fetch letter information
$letterInfo = get_LetterInfo_By_Title($letterTitle);
//Get the user email to include at Cc field
$useremail = getMemberEmail($valid_user);
//Formate the username and fullname
if (isset($arrAccountInfo["middlename"])) {
    $fullname = $arrAccountInfo["firstname"] . " " . $arrAccountInfo["middlename"] . " " . $arrAccountInfo["lastname"];
} else {