i am not sure where i have to put this code, please help...
This is JavaScript code. See Manual:Interface/JavaScript