function doBanPrompt(formname, prompttext) {
	confirmban = confirm(prompttext);
	if (confirmban) {
		banreason = prompt('Why are you banning this user?\nEnter the ban reason. Keep in mind that you must properly justify bans or they may be removed.');
		if (banreason) {
			bantime = prompt('How long do you want to ban this user for?\nEnter the ban duration in minutes. Use 0 for a permanent ban.');		
			if (bantime) {
				formname.banreason.value = banreason;
				formname.bantime.value = bantime;
				return true;
			}
		}
	}

	return false;
}