function addInput(title) {
	var id = document.getElementById("default-id").value;
	if(!title) {
		title = 'Family Member Registration';
	}
	id++;

    $("#add-member").append('<div id="div-' + id + '"><h5>(' + id + ') ' + title + '</h5><p align="right" style="margin:-32px 0 32px 0;"><img src="i/remove.gif" style="cursor:pointer;" width="11" height="11" onclick="removeInput(\'' + id + '\')" /></p>' +
    '<div class="pad30l"><table border="0" cellpadding="0" cellspacing="0">' +
		'<tr><td>First Name</td>' +
			'<td class="color_pink">*</td>' +
			'<td colspan="4"><input name="add['+id+'][first_name]" type="text" value="" /></td></tr>' +
		'<tr><td>Last Name</td>' +
			'<td class="color_pink">*</td>' +
			'<td colspan="4"><input name="add['+id+'][last_name]" type="text" value="" /></td></tr>' +
		'<tr><td>Age</td>' +
			'<td class="color_pink">*</td>' +
			'<td colspan="4"><input name="add['+id+'][age]" type="text" value="" /></td></tr>' +
		'<tr><td colspan="2"></td>' +
			'<td>Male</td><td><input name="add['+id+'][gender]" type="radio" style="width:15px;" value="male" /></td><td>&nbsp;&nbsp;Female</td><td width="85"><input name="add['+id+'][gender]" style="width:15px;" type="radio" value="female" /></td></tr>' +
		'<tr><td>T-Shirt Size </td>' +
			'<td class="color_pink">*</td>' +
			'<td class="wid90" colspan="4"><select size="1" name="add['+id+'][size]"><option value="XXXL">XXXL</option><option value="XXL">XXL</option><option value="XL">XL</option><option value="L">L</option><option value="M">M</option><option value="S">S</option></select></td></tr></table><br />' +
		'<p>In consideration of the acceptance of my entry, I the undersigned, intending to be lagally bound, for myself, my executors, administrators and assignees do hereby waive and release the sponsors of this race, Stater Bros. Charities, and all persons and agencies connected with this event from all claims arising from my participation in and travel to and from this event. In consideration of this event, I understand the dangers, risk, and injury that may come participating in an organized walk. I certify that I am responsible for my own actions on the cource and will be cautious of other athletes around me. I also certify that I am phisically fit and adequately trained to participate in this event. I also understand that there is a no refund policy for this event. I also give full permission to Stater Bros. Charities to use promotional material of me in the event in any medium in order to promote it.</p>' +
		'<p class="float_left">I understand and accept this Waiver (Parent or Guardian of Child Under 18) &nbsp; &nbsp; <span class="color_pink">*</span> &nbsp; </p> <div class="float_left"><input name="add['+id+'][waiver]" style="width:15px;" type="checkbox" value="1" /></div>' + 
		'<div class="clearing"></div>' +
	'<div class="clearing"></div><br /></div></div>');
  	document.getElementById("default-id").value = id;
	
	$('#div-' + id + '').jNice();
}
function removeInput(id) {
	$("#div-" + id).remove();
}

