
var partNum = 2;



function addParticipant() {







	partNum++;


	

	var daPlace = document.getElementById("partholder");



	var theROW = document.createElement("DIV");




	theROW.style.padding = "4px";

	var theROW = document.createElement("H2");

	var ourText = "Person " + partNum;
	
	
	
	

	var theText = document.createTextNode(ourText);

	

	theROW.appendChild(theText);

	

	daPlace.appendChild(theROW);

	

	theROW = document.createElement("DIV");



	theROW.appendChild(document.createTextNode("Name:"));

	theROW.appendChild(document.createElement("br"));

	

	daThing = document.createElement("input");
	daThing.setAttribute("type","hidden");
	daThing.setAttribute("name",partNum);
	daThing.setAttribute("value","XjonasX");

	theROW.appendChild(daThing);


	
	
	daThing = document.createElement("input");

	daThing.setAttribute("type","text");

	daThing.setAttribute("size","40");

	

	ourText = "name" + partNum;

	daThing.setAttribute("name",ourText);

	

	theROW.appendChild(daThing);



	theROW.appendChild(document.createElement("br"));

	

	theROW.appendChild(document.createTextNode("Phone number:"));

	theROW.appendChild(document.createElement("br"));

	

	

	daThing = document.createElement("input");

	daThing.setAttribute("type","text");

	

	

	ourText = "phone" + partNum;

	daThing.setAttribute("name",ourText);

	

	theROW.appendChild(daThing);

	

	theROW.appendChild(document.createElement("br"));

	theROW.appendChild(document.createTextNode("Alternate number:"));

	

	theROW.appendChild(document.createElement("br"));

	

	daThing = document.createElement("input");

	daThing.setAttribute("type","text");

	

	ourText = "altphone" + partNum;

	daThing.setAttribute("name",ourText);

	

	theROW.appendChild(daThing);

	

	theROW.appendChild(document.createElement("br"));

	theROW.appendChild(document.createElement("br"));

	

	theROW.appendChild(document.createTextNode("Address:"));

	

	daThing = document.createElement("textarea");

	daThing.setAttribute("rows","4");

	daThing.setAttribute("cols","60");

	

	ourText = "addy" + partNum;

	daThing.setAttribute("name",ourText);

	

	theROW.appendChild(document.createElement("br"));

	theROW.appendChild(daThing);

	

	theROW.appendChild(document.createElement("br"));

	theROW.appendChild(document.createElement("br"));

	

	daPlace.appendChild(theROW);

	

}
