Javascript function not works properly.

Printable View