javascript != java. You may received help here, however - as these are java forums - you might try your luck at a more dedicated javascript forum.