protected void parseScript(String script)
    {
        try
        {
            while (true) 
            {
                int i = 0;
                while (script.charAt(i) != ';' && i < script.length()-1)
                {
                    i++;
                }
                if (i<5)
                    break;
                String onescript = script.substring(0, i);
                debug(onescript);
                script = script.substring(i + 2);
                int i2 = 0;
                while (onescript.charAt(i2) != ',')
                {
                    i2++;
                }
                String stat = onescript.substring(0, i2);
                int value = Integer.parseInt(onescript.substring(i2 + 1));
                debug(stat+"  "+value);
                parseStat(stat, value);
            }

        }
        catch(Exception e)
        {}
    }