function dateStrValueY(de,y,h,g,ub,ua) { var z = new Date(g.getAttributeNS(null, 'zero')), s = g.getAttributeNS(null, 'scale'), fmt = g.getAttributeNS(null, 'format'), dt = new Date(z.valueOf() + (1000 * y * s)), str = ''; str = dateFormat(dt,fmt); return str; }