error in code (Please help)

I have a error in my way point script, Two infact (I made one of them accidentily)

The script-
#pragma strict

var timer:int = 0;

var player :GameObject ;

var maxRange :int = 0;

function Start () {

}

function Update () {

timer++;

if (timer == 100)

{

    timer = 0;

    if (gameObject.tag  == "waypoint")

            {

        if (Vector3 .Distance (player .transform.position ,transform.position ) > maxRange )

                {

                    gameObject.tag  = "illegal";

                }

            }

        else if (gameObject.tag  == "illegal")

            {

                if (Vector3 .Distance (player .transform.position ,transform.position ) < maxRange )

                    {

                        gameObject.tag  = "waypoint";

                    }

            }

                

}

{

}

The errors

-waypoint.js(66,2): UCE0001 ':'expected. Insert a semicolon at the end.
-waypoint.js(67,1): BCE0044: expecting }. found".

Put a # in front of “pragma strict” in your first line.

Delete the “{” in the second to last line.