Thanx a lot Jorge !! It works now.. I just changed to setAttribute("src","Path") instead of .src !! :)

Thank you so much !! :)