If String Not Empty Javascript Function How To Use