any bad influence of onclick instead of using seperate javascript of same script