Hi guys,

I have just a simple code that I can't explain why is not working - can someone please take a look ?

Code:
<html>
<head>
<title>Basic JavaScript example</title>
<style type='text/css'>
</style>
<script type='text/javascript'>
function try() {

var car = new Object();
car.make = "German";
car.model = "Opel";
car.engine = 230;
car.tsped = 320;
car.csped = 0;

 car.accelerate = function(){
 if(this.csped <= 315)
  {
  this.csped +=5;
  }
 }
 car.decelerate = function(){
 if(this.csped >= 5)
  {
  this.csped -=5;
  } 
 }
car.toString = function()
	{
		alert(this.make + " model: " + this.model + " engine capacity: " + this.engine + " current speed: " + this.csped);
	}
 car.toString;
 car.accelerate();
 car.toSting;
 car.accelerate();
 car.toString;
}

</script>
</head>
<body>

<input type="button" value="Go!" onclick="try()" /><br >

</body>
</html>