Javascript Issue

i dont know what’s wrong here? any suggestions?


function promptmove(){
	var return_value = confirm("Are you sure u want to move?");
	if (return_value)
	{
	window.location="../default.asp";
             }
}

it prompts but it doesnt do anything.