function imgClick
// if the user has already clicked the image, the flag is set and we'll show the warning
if clickFlag
then
message "Can't click this yet"
else
// flag isn't set so set it and schedule the reset function for 30 seconds
clickFlag=True
setTimeOut("resetClick",30 seconds)
function resetClick()
clickFlag=False