anchor.diff:  						<div class="col-xs-9">
   							<div class="radio">
   								<label>
  -									<input type="radio" name="permissions" value="1">public</input>
  +									<input id="1" type="radio" name="permissions" value="1">public</input>
   								</label>
   							</div>
   							<div class="radio">
   								<label>
  -									<input type="radio" name="permissions" value="2" checked="checked">private</input>
  +									<input id="2" type="radio" name="permissions" value="2">private</input>
   								</label>
   							</div>
   							<% for (Group group : groups) {
  -								out.println("<div class='radio'><label><input type='radio' name='permissions' value='" + group.getGroupId() + "'>" + group.getGroupname() + "</input></label></div>");
  +								out.println("<div class='radio'><label><input id='" + group.getGroupId() + "' type='radio' name='permissions' value='" + group.getGroupId() + "'>" + group.getGroupname() + "</input></label></div>");
   							} %>
  +
  +							<script>
  +								document.getElementById("<%=image.getPermitted()%>").checked = true;
  +							</script>
   						</div>
   					</div>
   				</div>
  
positive.code: <!DOCTYPE html>
  <html lang="en">
  <%@include file="header.jsp" %>
  <%@ page import="imageshare.model.Group,imageshare.oraclehandler.OracleHandler,java.util.List,java.util.ArrayList"%>
  <%
  	String user = (String) session.getAttribute("user");
  	List<Group> groups = OracleHandler.getInstance().getGroups(user);
  	Integer photoId = Integer.parseInt(request.getQueryString());
  	session.setAttribute("photoId", photoId);
  	String error = (String) session.getAttribute("error");
  	session.setAttribute("error", null);
  %>
  
negative.code: 					<div class="form-group">
  						<label for="date" class="col-sm-3 control-label">Date</label>
  						<div class="col-sm-9">
  							<input type="date" name="date" class="form-control" value="<%=image.getDate().toString()%>" id="date">
  						</div>
  					</div>
  					<div class="form-group">
  						<label for="subject" class="col-sm-3 control-label">Subject</label>
  						<div class="col-sm-9">
  							<input type="text" name="subject" class="form-control" value="<%=image.getSubject() == null ? "": image.getSubject()%>" id="subject">
  						</div>
  					</div>
  					<div class="form-group">
  						<label for="location" class="col-sm-3 control-label">Location</label>
  						<div class="col-sm-9">
  							<input type="text" name="location" class="form-control" value="<%=image.getPlace() == null ? "" : image.getPlace()%>" id="location">
  						</div>
  					</div>
  					<div class="form-group">
  						<label for="description" class="col-sm-3 control-label">Description</label>
  						<div class="col-sm-9">
  							<input type="text" name="description" class="form-control" value="<%=image.getDescription() == null ? "" : image.getDescription()%>" id="description">
  						</div>
  					</div>
  					<div class="form-group">
  