JavaScript function OnGUI error

I have 2 errors in console after write simple CaptureControll JavaScript. If you know where is mistake please help me!

  1. error: Assets/CaptureControll.js(67,26): BCE0044: expecting (, found ‘OnGUI’.

  2. error: Assets/CaptureControll.js(67,34): UCE0001: ‘;’ expected. Insert a semicolon at the end.
    SCRIPT:
    #pragma strict

    var blueTeam : boolean = false;
    var redTeam : boolean = false;

    private var redCapturePerc : float = 0;
    private var blueCapturePerc : float = 0;

    var flagRed : GameObject;
    var flagBlue : GameObject;
    var flagNeutral : GameObject;

    function Start ()
    

    {
    flagRed.SetActive(false);
    flagBlue.SetActive(false);
    flagNeutral.SetActive(true);
    }

    function Update ()
    

    {
    if(blueTeam == true)
    {
    blueCapturePerc += Time.deltaTime * 20;
    redCapturePerc -= Time.deltaTime * 20;
    }
    if(redTeam == true)
    {
    blueCapturePerc -= Time.deltaTime * 20;
    redCapturePerc += Time.deltaTime * 20;
    }
    if(redTeam == true && blueTeam == true)
    {
    redCapturePerc = redCapturePerc;
    blueCapturePerc = blueCapturePerc;
    }
    if(redCapturePerc >= 100)
    {
    redCapturePerc = 100;
    flagRed.SetActive(true);
    flagBlue.SetActive(false);
    flagNeutral.SetACtive(false);
    }
    if(blueCapturePerc >= 100)
    {
    blueCapturePerc = 100;
    redCapturePerc = 100;
    flagRed.SetActive(false);
    flagBlue.SetActive(true);
    flagNeutral.SetActive(false);
    }
    if(blueCapturePerc <= 50 && redCapturePerc <= 51)
    {
    flagRed.SetACtive(false);
    flagBlue.SetActive(false);
    flagNeutral.SetActive(true);

    	if(redCapturePerc <= 0)
    

    {
    redCapturePerc = 0;
    }
    if(blueCapturePerc <= 0)
    {
    blueCapturePerc = 0;
    }
    }
    function OnGUI ()
    {
    GUI.Box(Rect(10, 10, 300, 25), “Red Cap” + " " + redCapturePerc.ToString(“0”) + " " + “BlueCap” + " " + blueCapturePerc.ToString(“0”));
    }

    }

Fixed this for you. Your OnGUI function ended up in your Update function somehow.

var blueTeam : boolean = false;
var redTeam : boolean = false;

private var redCapturePerc : float = 0;
private var blueCapturePerc : float = 0;

var flagRed : GameObject;
var flagBlue : GameObject;
var flagNeutral : GameObject;

function Start ()
{
    flagRed.SetActive(false);
    flagBlue.SetActive(false);
    flagNeutral.SetActive(true);
}

function Update ()
{
    if(blueTeam == true)
    {
        blueCapturePerc += Time.deltaTime * 20;
        redCapturePerc -= Time.deltaTime * 20;
    }
    if(redTeam == true)
    {
        blueCapturePerc -= Time.deltaTime * 20;
        redCapturePerc += Time.deltaTime * 20;
    }
    if(redTeam == true && blueTeam == true)
    {
        redCapturePerc = redCapturePerc;
        blueCapturePerc = blueCapturePerc;
    }
    if(redCapturePerc >= 100)
    {
        redCapturePerc = 100;
        flagRed.SetActive(true);
        flagBlue.SetActive(false);
        flagNeutral.SetACtive(false);
    }
    if(blueCapturePerc >= 100)
    {
        blueCapturePerc = 100;
        redCapturePerc = 100;
        flagRed.SetActive(false);
        flagBlue.SetActive(true);
        flagNeutral.SetActive(false);
    }
    if(blueCapturePerc <= 50 && redCapturePerc <= 51)
    {
        flagRed.SetACtive(false);
        flagBlue.SetActive(false);
        flagNeutral.SetActive(true);

        if(redCapturePerc <= 0)
        {
            redCapturePerc = 0;
        }    
        if(blueCapturePerc <= 0)
        {
            blueCapturePerc = 0;
        }
    }
}

function OnGUI ()
{
    GUI.Box(Rect(10, 10, 300, 25), "Red Cap" + " " + redCapturePerc.ToString("0") + " " + "BlueCap" + " " + blueCapturePerc.ToString("0"));
}