I need to create a button that works like this :

```
var i = true

first click --> var i = false
second click --> var i = true
....

```

**HTML**

```
 <input type="button" value="test" onclick="stop(); start();" />

```

How can i specify theese functions in my JS document ?