In reply to Serdar Tutal.

It can be done in 3 lines of javascript or php, whatever you prefer.