private static List<String> getURLS(Elements links, int whichObject) {
		List<String> set = new ArrayList<String>();
		List<String> mainSet = new ArrayList<String>();
		for (Element link : links) {
			Elements elems = link.getElementsByTag("tr");
			for (Element element : elems) {
				String[] array = element.toString().split("\n");
				for (String str : array) {
					if (str.contains("onclick")) {
						set.add(str);
					}
				}
			}
		}
		for (String element : set) {
			if (whichObject == 1) {
				if (!mainSet.contains((String) element.subSequence(
						element.indexOf("rasptrain"),
						element.indexOf("train") + 20))) {
					mainSet.add((String) element.subSequence(
							element.indexOf("rasptrain"),
							element.indexOf("train") + 20));
				}
			} else if (whichObject == 2) {
				if (!mainSet
						.contains((String) element.subSequence(
								element.indexOf("rrep"),
								element.indexOf("onmouseover")))) {
					mainSet.add((String) element.subSequence(
							element.indexOf("rrep"),
							element.indexOf("onmouseover")));
				}
			}
		}
		return mainSet;
	}