public static long toAmount(String price)
	{
		if(price.charAt(0) == '$')
			price = price.substring(1);
		
		index = price.indexOf(".");
		
		if(index == -1)
			price = price + "00";
		else if(index == price.length()-1)
			price = price.substring(0,price.length()-1) + "00";
		else if(index == 0 && price.length() == 2)
			price = price.substring(1) + "0";
		else if(index == 0 && price.length() == 3)
			price = price.substring(1);
		else if(price.substring(index).length() == 2)
			price = price.substring(0,price.indexOf(".")) + price.substring(price.indexOf(".")+1) + "0";
		else
			price = price.substring(0,price.indexOf(".")) + price.substring(price.indexOf(".")+1);
		
		return Long.parseLong(price);
	}