$isDeleteSuccess = false;
        }
    }
} else {
    redirect_to("home");
}
?>

<script type="text/javascript" language="javascript" src="js/manageProfile.js"></script>
<script type="text/javascript" language="javascript">
 
 

    function hasConfirmDeletePic(){
        <?php 
if (hasPicUploadedOnce($username)) {
    ?>
 
            var agree=confirm("Are you sure to delete your profile picture?");
            if (agree){
                return true;
            }else{
                return false;
            }
      <?php 
}
?>
 
    } 
	
    function resetAdminArea(){
    redirect_to("home");
}
?>

<script type="text/javascript" language="javascript" src="js/adminArea.js"></script>
<script type="text/javascript" language="javascript">
 
    
    function hasConfirmDeletePic(){
  
  		<?php 
if (isset($selectedUsername)) {
    ?>
 
		<?php 
    if (hasPicUploadedOnce($selectedUsername)) {
        ?>
  
					var agree=confirm("Are you sure to delete the profile picture of user <?php 
        echo $selectedUsername;
        ?>
?");
					if (agree){
						return true;
					}else{
						return false;
					}
        <?php 
    }
    ?>
        <?php