that's way over-complicated the function. You don't need to pass the form and you don't need if-blocks
function validate()
{
return confirm("Are you sure to delete these details from database?");
}
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268