anchor.diff:  
   		return 0
   
  -	proc/GetJobLevel(var/datum/job/job)
  -		if (!job) return 0
  -
  -		if (job.flag & (job_civilian_high | job_engsec_high | job_medsci_high))
  -			return 1
  -		else if (job.flag & (job_civilian_med | job_engsec_med | job_medsci_med))
  -			return 2
  -		else if (job.flag & (job_civilian_low | job_engsec_low | job_medsci_low))
  -			return 3
  -
  -		return 0
  -
  -	proc/UpdateJobPreference(mob/user, role, upOrDown)
  +	proc/UpdateJobPreference(mob/user, role, desiredLvl)
   		var/datum/job/job = job_master.GetJob(role)
   
   		if(!job)
   			user << browse(null, "window=mob_occupation")
  +			ShowChoices(user)
  +			return
  +
  +		if (!isnum(desiredLvl))
  +			user << "\red UpdateJobPreference - desired level was not a number. Please notify coders!"
   			ShowChoices(user)
   			return
   
  
positive.code: 				if("random")
  					userandomjob = !userandomjob
  					SetChoices(user)
  				if("increaseJobLevel")
  					UpdateJobPreference(user, href_list["text"], 1)
  				if ("decreaseJobLevel")
  					UpdateJobPreference(user, href_list["text"], -1)
  				else
  					SetChoices(user)
  			return 1
  
negative.code: 		HTML += "<b>Choose occupation chances</b><br>"
  		HTML += "<div align='center'>Left-click to raise an occupation preference, right-click to lower it.<br></div>"
  		HTML += "<center><a href='?_src_=prefs;preference=job;task=close'>Done</a></center><br>" // Easier to press up here.
  		HTML += "<script type='text/javascript'>function setJobPrefRedirect(level, rank) { window.location.href='?_src_=prefs;preference=job;task=setJobLevel;level=' + level + ';text=' + encodeURIComponent(rank); return false; }</script>"
  		HTML += "<table width='100%' cellpadding='1' cellspacing='0'><tr><td width='20%'>" // Table within a table for alignment, also allows you to easily add more colomns.
  		HTML += "<table width='100%' cellpadding='1' cellspacing='0'>"
  		var/index = -1
  