public static String pastPrices(String stock) {

		String httpdata = getHtml(yahoobase + "/hp?s=" + stock);
		if (!httpdata.contains("Adj Close"))
			return "HISTORIC";
		httpdata = removeHtml(
				reformat(httpdata.substring(httpdata.indexOf("Adj Close"))),
				false);
		httpdata = httpdata.substring(0, httpdata.lastIndexOf("@"));
		if (httpdata.indexOf("@") < 2)
			httpdata = httpdata.substring(httpdata.indexOf("@") + 1);
		if (httpdata.lastIndexOf("@") > 1)
			httpdata = (httpdata.substring(0, httpdata.lastIndexOf("@"))
					.replaceAll(",", ""));
		return httpdata;
	}