these are the elements which already there. right ??

Code:
  buf.append( "<input type=text class=\""+className+"\" name=birthDay size=6 value=\""+birthDay+"\">" );
      buf.append( " <img onMouseUp=\"javascript:opencalBD(document."+formName+".birthYear.value+'.'+document."+formName+".birthDay.value);\" src=\"graphics/ozicon18cal.gif\" align=absmiddle>" );
      buf.append( " ,  <input type=text class=\""+className+"\" name=birthYear size=4 value=\""+birthYear+"\">" );
in the above 3 lines code, 2nd line is giving error. birthYear is undefined.

thanks