Double getNumber(String strName)
	{
		try
		{
			return Double.valueOf(strName);
		}catch(NumberFormatException e) { }
		if (strName.equalsIgnoreCase("global"))
		{
			try
			{
				Variable varStore = engGame.varVariables.getVariable(readScriptForCompile());
				if (varStore != null && varStore.isNumber())
				{
					return (Double)varStore.objData;
				}
			}catch(Exception e)
			{
				return null;
			}
		}
		Variable varStore = varVariables.getVariable(strName);
		if (varStore != null && varStore.isNumber())
		{
			return (Double)varStore.objData;
		}
		return null;
	}