<!--

/*
    Generates a message box asking the user to confirm the
    deletion of an item from the system.
    If the user selects "ok", then they are redirected to the
    URL specifed by the first argument.
*/

function confirmDelete(urlStr, msgStr){

    if (confirm('Are you sure you want to delete ' + msgStr + '?')){
        document.location = urlStr;
    }
}

function confirmReset(urlStr, msgStr){

	if (confirm('Are you sure you want to reset ' + msgStr + '\'s password?')){
		document.location = urlStr;
	}
}

function confirmPublish(urlStr, msgStr){

	if (confirm('Are you sure you want to publish ' + msgStr + '?')){
		document.location = urlStr;
	}
}

function confirmUnPublish(urlStr, msgStr){

	if (confirm('Are you sure you want to un-publish ' + msgStr + '?')){
		document.location = urlStr;
	}
}

function confirmLock(urlStr, msgStr){

	if (confirm('Are you sure you want to lock ' + msgStr + '\'s account?')){
		document.location = urlStr;
	}
}

function confirmUnLock(urlStr, msgStr){

	if (confirm('Are you sure you want to unlock ' + msgStr + '\'s account?')){
		document.location = urlStr;
	}
}

/*
    Redirects the current web page to the URL specified
    by the argument.
*/

function changeLocation(urlStr){
    document.location = urlStr;
}

//-->
