function showResponse(msg){ setTimeout("redir()", 3000); }; function redir(){ window.location = "list.php"; }