anchor.diff:  				countNum = countNum + 4;
   			}
   			sql = sql + "ORDER BY " + SQLOrder;
  -
  -			/*
  -			if (checkClass.equals("a")) {
  -			String[] wordList = kWord.split(" ");
  -			sql = sql + "test_date between to_date('"
  -			//"select r.*, p.first_name, p.last_name from radiology_record r FULL JOIN persons p ON r.patient_id = p.person_id where test_date between to_date('"
  -			+ kTime1 + "', 'DD/MM/YYYY') AND to_date('"
  -			+ kTime2 + "', 'DD/MM/YYYY') AND ";
  -
  -			for (int i = 0; i < wordList.length; i++) {
  -			sql = sql + "r.DIAGNOSIS ='" + wordList[i]
  -			+ "' or p.LAST_NAME = '" + wordList[i]
  -			+ "' or p.first_name = '" + wordList[i]
  -			+ "'or r.DESCRIPTION like '%" + wordList[i]
  -			+ "%'";
  -			if (i != wordList.length - 1)
  -			sql = sql + "OR ";
  -			}
  -			sql = sql + "ORDER BY '" + SQLOrder + "'";
  -			}
  -
  -			else if (checkClass.equals("p")) {
  -			String[] wordList = kWord.split(" ");
  -			sql = sql + "test_date between to_date('"
  -			//"select r.*, p.first_name, p.last_name from radiology_record r FULL JOIN persons p ON r.patient_id = p.person_id where test_date between to_date('"
  -			+ kTime1 + "', 'DD/MM/YYYY') AND to_date('"
  -			+ kTime2 + "', 'DD/MM/YYYY') AND ";
  -
  -			for (int i = 0; i < wordList.length; i++) {
  -			sql = sql + "r.patient_id = '" + userID
  -			+ "' AND r.DIAGNOSIS ='" + wordList[i]
  -			+ "' or p.LAST_NAME = '" + wordList[i]
  -			+ "' or p.first_name = '" + wordList[i]
  -			+ "'or r.DESCRIPTION like '%" + wordList[i]
  -			+ "%'";
  -			if (i != wordList.length - 1)
  -			sql = sql + "OR ";
  -			}
  -			sql = sql + "ORDER BY '" + SQLOrder + "'";
  -			}
  -
  -			else if (checkClass.equals("d")) {
  -			String[] wordList = kWord.split(" ");
  -			sql = sql + "test_date between to_date('"
  -			//"select r.*, p.first_name, p.last_name from radiology_record r FULL JOIN persons p ON r.patient_id = p.person_id where test_date between to_date('"
  -			+ kTime1 + "', 'DD/MM/YYYY') AND to_date('"
  -			+ kTime2 + "', 'DD/MM/YYYY') AND ";
  -
  -			for (int i = 0; i < wordList.length; i++) {
  -			sql = sql + "r.doctor_id = '" + userID
  -			+ "' AND r.DIAGNOSIS ='" + wordList[i]
  -			+ "' or p.LAST_NAME = '" + wordList[i]
  -			+ "' or p.first_name = '" + wordList[i]
  -			+ "'or r.DESCRIPTION like '%" + wordList[i]
  -			+ "%'";
  -			if (i != wordList.length - 1)
  -			sql = sql + "OR ";
  -			}
  -			sql = sql + "ORDER BY '" + SQLOrder + "'";
  -			}
  -
  -			else if (checkClass.equals("r")) {
  -			String[] wordList = kWord.split(" ");
  -			sql = sql + "test_date between to_date('"
  -			//"select r.*, p.first_name, p.last_name from radiology_record r FULL JOIN persons p ON r.patient_id = p.person_id where test_date between to_date('"
  -			+ kTime1 + "', 'DD/MM/YYYY') AND to_date('"
  -			+ kTime2 + "', 'DD/MM/YYYY') AND ";
  -
  -			for (int i = 0; i < wordList.length; i++) {
  -			sql = sql + "r.radiologist_id = '" + userID
  -			+ "' AND r.DIAGNOSIS ='" + wordList[i]
  -			+ "' or p.LAST_NAME = '" + wordList[i]
  -			+ "' or p.first_name = '" + wordList[i]
  -			+ "'or r.DESCRIPTION like '%" + wordList[i]
  -			+ "%'";
  -			if (i != wordList.length - 1)
  -			sql = sql + "OR ";
  -			}
  -			sql = sql + "ORDER BY '" + SQLOrder + "'";
  -			}
  -			 */
  -
   		}
   
   		//no keyword entered
  
positive.code: 
  <%
  	String SQLOrder = "";
  	if (request.getParameter("SEARCHTYPE") != null) {
  		if (request.getParameter("SEARCHTYPE").equals("recentFirst")) {
  			SQLOrder = "r.test_date DESC";
  		} else if (request.getParameter("SEARCHTYPE").equals(
  				"recentLast")) {
  			SQLOrder = "r.test_date ASC";
  		} else if (request.getParameter("SEARCHTYPE").equals("relevant")) {
  			SQLOrder = "rank desc" ;
  		}
  	} else {
  		String error = "<p><b><font color=ff0000>You have not entered any search order specifications!</font></b></p>";
  		session.setAttribute("error", error);
  		response.sendRedirect("searchStart.jsp");
  	}
  %>
  
  <HTML>
  
negative.code: 				countNum = countNum + 4;
  			}
  			sql = sql + "ORDER BY " + SQLOrder;
  		}
  
  		//neither entered 
  