iKids = 3;

function addKid()
{
	oKids = document.getElementById( 'kids' );
	if( oKids == null )
		return false;
	oDiv = document.createElement( "div" );
	oDiv.innerHTML += '<input class="textfield smalltextfield" name="kid_name[' + iKids + ']" type="text"> <input value="m" name="kid_gender[' + iKids + ']" type="radio"><input value="f" name="kid_gender[' + iKids + ']" type="radio"> <input class="textfield tinytextfield" maxlength="2" name="kid_birthday[day][' + iKids + ']" type="text"> <input class="textfield tinytextfield" maxlength="2" name="kid_birthday[month][' + iKids + ']" type="text"> <input class="textfield diminutivetextfield" maxlength="4" name="kid_birthday[year][' + iKids + ']" type="text">';
	oKids.insertBefore( oDiv, oKids.lastChild );
	++iKids;
}