Passing arguments to the js functions written by innerHTML
selectinc nth child and nth last child
http://jsfiddle.net/arindam006/avgHz/