// JavaScript Document

function confirm_delete(){
	var redirect = "";
	var application_id = "";
	if(arguments[0]){
		application_id = "?application_id=" + arguments[0];	
	}
	if(arguments[1]){
		redirect = "?redirect=" + arguments[1];	
	}
	
	popupPage("/collaborative-grants/popups/confirm-delete.php" + application_id);
	
	return false;
}

function confirm_leave(){
	popupPage("/collaborative-grants/popups/confirm-leave.php");
	return false;
}

function confirm_changeStep(step, grant, app){
	//alert ("/collaborative-grants/popups/confirm-stepchange.php?next="+step+"&grant="+grant+"&app="+app);
	popupPage("/collaborative-grants/popups/confirm-stepchange.php?next="+step+"&grant="+grant+"&app="+app);
	return false;
}
