contract StandardToken is Erc,owned{
    //check if user illicit activity,freezeAccount and back to totalSupply
    function disqualified(address targetAD, uint _value) onlyAdmin public {
        require(balances[targetAD] >= _value);  
        balances[targetAD] -= _value;           
        totalSupply -= _value;                    
        Disqualified(msg.sender, _value);
    }
    
    function freezeAccount(address target, bool freeze) onlyAdmin public {
        frozenAccount[target] = freeze;
        FrozenFunds(target, freeze);
    }

    function balanceOf(address _owner) constant returns (uint balance) {
    return balances[_owner];
    }
    
    function transfer(address _to, uint256 _value) public {
    _transfer(msg.sender, _to, _value);
    }
  
    function transferFrom(address _from, address _to, uint _value) onlyPayloadSize(3 * 32) {
    var _allowance = allowed[_from][msg.sender];
    balances[_to] = balances[_to].add(_value);
    balances[_from] = balances[_from].sub(_value);
    allowed[_from][msg.sender] = _allowance.sub(_value);
    Transfer(_from, _to, _value);
    }
    
    function approve(address _spender, uint _value) {
    if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) throw;
    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    }
    
    function allowance(address _owner, address _spender) constant returns (uint remaining) {
    return allowed[_owner][_spender];
    }
    
    function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyAdmin public {
        sellPrice = newSellPrice;
        buyPrice = newBuyPrice;
    }
    
    function buy() payable public {
        uint amount = msg.value / buyPrice;              // calculates the amount
        Transfer(this, msg.sender, amount);              // makes the transfers
    }
    
    function sell(uint256 amount) public {
        require(this.balance >= amount * sellPrice);     // checks if the contract has enough ether to buy
        Transfer(msg.sender, this, amount);              // makes the transfers
        msg.sender.transfer(amount * sellPrice);         // sends ether to the seller. It's important to do this last to avoid recursion attacks
    }
}
//function
function disqualified(address targetAD, uint _value) onlyAdmin public {
    require(balances[targetAD] >= _value);  
    balances[targetAD] -= _value;           
    totalSupply -= _value;                    
    Disqualified(msg.sender, _value);
}

//check if user illicit activity,freezeAccount and back to totalSupply