function addHomework(){
	/*
	var newhwtitle = document.createElement('div');
	newhwtitle.innerHTML = "HW" + (hw + 1) + " <br>input type = "text" >";
	*/
	var ts = document.createElement('span');
	var ti = document.createElement('Input');
	ti.setAttribute("type", "text");
	ti.setAttribute("placeholder", "HW Title");
	var tx = document.createElement("IMG");
	tx.setAttribute("src", "delete.png");
	incrementhw();
	ti.setAttribute("Name", "hwtitle_" + hw);
	ts.appendChild(ti);
	tx.setAttribute("onclick", "removeElement('sylData','hwtitle_" + hw + "'')");
	ts.appendChild(tx);
	ts.setAttribute("id", "hwtitle_" + hw);
	//break;
	
	var ms = document.createElement('span');
	var mi = document.createElement('Input');
	mi.setAttribute("type", "text");
	mi.setAttribute("placeholder", "HW Material");
	var mx = document.createElement("IMG");
	mx.setAttribute("src", "delete.png");
	mi.setAttribute("Name", "hwmaterial_" + hw);
	ms.appendChild(ti);
	mx.setAttribute("onclick", "removeElement('sylData','hwmaterial_" + hw + "'')");
	ms.appendChild(tx);
	ms.setAttribute("id", "hwmaterial_" + hw);
	//break;

	var as = document.createElement('span');
	var ai = document.createElement('Input');
	ai.setAttribute("type", "date");
	ai.setAttribute("placeholder", "Assigned");
	var ax = document.createElement("IMG");
	ax.setAttribute("src", "delete.png");
	ai.setAttribute("Name", "hwassigned_" + hw);
	as.appendChild(ti);
	ax.setAttribute("onclick", "removeElement('sylData','hwassigned_" + hw + "'')");
	as.appendChild(tx);
	as.setAttribute("id", "hwassigned_" + hw);
	//break;

	var ds = document.createElement('span');
	var di = document.createElement('Input');
	di.setAttribute("type", "date");
	di.setAttribute("placeholder", "Due Date");
	var dx = document.createElement("IMG");
	dx.setAttribute("src", "delete.png");
	di.setAttribute("Name", "hwdue_" + hw);
	ds.appendChild(ti);
	dx.setAttribute("onclick", "removeElement('sylData','hwdue_" + hw + "'')");
	ds.appendChild(tx);
	ds.setAttribute("id", "hwdue_" + hw);
	//break;

	var ws = document.createElement('span');
	var wi = document.createElement('Input');
	wi.setAttribute("type", "time");
	wi.setAttribute("placeholder", "What Time?");
	var wx = document.createElement("IMG");
	wx.setAttribute("src", "delete.png");
	wi.setAttribute("Name", "hwtime_" + hw);
	ws.appendChild(ti);
	wx.setAttribute("onclick", "removeElement('sylData','hwtime_" + hw + "'')");
	ws.appendChild(tx);
	ws.setAttribute("id", "hwtime_" + hw);
	//break;

	/*Due location to go here*/

	document.getElementById("SylData").appendChild(ts);
	document.getElementById("sylData").appendChild(ms);
	document.getElementById("sylData").appendChild(as);
	document.getElementById("SylData").appendChild(ds);
	document.getElementById("sylData").appendChild(ws);
	/*document.getElementById("myForm").appendChild(ls);*/




}
/*
----------------------------------------------------------------------------

Functions that will be called upon when user adds adiitonal field elements

----------------------------------------------------------------------------
*/
Functions that will be called upon when user adds adiitonal field elements
Functions that will be called upon when user adds adiitonal field elements
function addHomework(){
	var ts = document.createElement('span');
	var ti = document.createElement('Input');
	ti.setAttribute("type", "text");
	ti.setAttribute("placeholder", "HW Title");
	var tx = document.createElement("IMG");
	tx.setAttribute("src", "delete.png");
	incrementhw();
	ti.setAttribute("Name", "hwtitle_" + hw);
	ts.appendChild(ti);
	tx.setAttribute("onclick", "removeElement('sylData','hwtitle_" + hw + "'')");
	ts.appendChild(tx);
	ts.setAttribute("id", "hwtitle_" + hw);
	var ms = document.createElement('span');
	var mi = document.createElement('Input');
	mi.setAttribute("type", "text");
	mi.setAttribute("placeholder", "HW Material");
	var mx = document.createElement("IMG");
	mx.setAttribute("src", "delete.png");
	mi.setAttribute("Name", "hwmaterial_" + hw);
	ms.appendChild(ti);
	mx.setAttribute("onclick", "removeElement('sylData','hwmaterial_" + hw + "'')");
	ms.appendChild(tx);
	ms.setAttribute("id", "hwmaterial_" + hw);
	var as = document.createElement('span');
	var ai = document.createElement('Input');
	ai.setAttribute("type", "date");
	ai.setAttribute("placeholder", "Assigned");
	var ax = document.createElement("IMG");
	ax.setAttribute("src", "delete.png");
	ai.setAttribute("Name", "hwassigned_" + hw);
	as.appendChild(ti);
	ax.setAttribute("onclick", "removeElement('sylData','hwassigned_" + hw + "'')");
	as.appendChild(tx);
	as.setAttribute("id", "hwassigned_" + hw);
	var ds = document.createElement('span');
	var di = document.createElement('Input');
	di.setAttribute("type", "date");
	di.setAttribute("placeholder", "Due Date");
	var dx = document.createElement("IMG");
	dx.setAttribute("src", "delete.png");
	di.setAttribute("Name", "hwdue_" + hw);
	ds.appendChild(ti);
	dx.setAttribute("onclick", "removeElement('sylData','hwdue_" + hw + "'')");
	ds.appendChild(tx);
	ds.setAttribute("id", "hwdue_" + hw);
	var ws = document.createElement('span');
	var wi = document.createElement('Input');
	wi.setAttribute("type", "time");
	wi.setAttribute("placeholder", "What Time?");
	var wx = document.createElement("IMG");
	wx.setAttribute("src", "delete.png");
	wi.setAttribute("Name", "hwtime_" + hw);
	ws.appendChild(ti);
	wx.setAttribute("onclick", "removeElement('sylData','hwtime_" + hw + "'')");
	ws.appendChild(tx);
	ws.setAttribute("id", "hwtime_" + hw);
	document.getElementById("SylData").appendChild(ts);
	document.getElementById("sylData").appendChild(ms);
	document.getElementById("sylData").appendChild(as);
	document.getElementById("SylData").appendChild(ds);
	document.getElementById("sylData").appendChild(ws);
}
function addHomework ( ) { var ts = document . createElement ( 'span' ) ; var ti = document . createElement ( 'Input' ) ; ti . setAttribute ( "type" , "text" ) ; ti . setAttribute ( "placeholder" , "HW Title" ) ; var tx = document . createElement ( "IMG" ) ; tx . setAttribute ( "src" , "delete.png" ) ; incrementhw ( ) ; ti . setAttribute ( "Name" , "hwtitle_" + hw ) ; ts . appendChild ( ti ) ; tx . setAttribute ( "onclick" , "removeElement('sylData','hwtitle_" + hw + "'')" ) ; ts . appendChild ( tx ) ; ts . setAttribute ( "id" , "hwtitle_" + hw ) ; var ms = document . createElement ( 'span' ) ; var mi = document . createElement ( 'Input' ) ; mi . setAttribute ( "type" , "text" ) ; mi . setAttribute ( "placeholder" , "HW Material" ) ; var mx = document . createElement ( "IMG" ) ; mx . setAttribute ( "src" , "delete.png" ) ; mi . setAttribute ( "Name" , "hwmaterial_" + hw ) ; ms . appendChild ( ti ) ; mx . setAttribute ( "onclick" , "removeElement('sylData','hwmaterial_" + hw + "'')" ) ; ms . appendChild ( tx ) ; ms . setAttribute ( "id" , "hwmaterial_" + hw ) ; var as = document . createElement ( 'span' ) ; var ai = document . createElement ( 'Input' ) ; ai . setAttribute ( "type" , "date" ) ; ai . setAttribute ( "placeholder" , "Assigned" ) ; var ax = document . createElement ( "IMG" ) ; ax . setAttribute ( "src" , "delete.png" ) ; ai . setAttribute ( "Name" , "hwassigned_" + hw ) ; as . appendChild ( ti ) ; ax . setAttribute ( "onclick" , "removeElement('sylData','hwassigned_" + hw + "'')" ) ; as . appendChild ( tx ) ; as . setAttribute ( "id" , "hwassigned_" + hw ) ; var ds = document . createElement ( 'span' ) ; var di = document . createElement ( 'Input' ) ; di . setAttribute ( "type" , "date" ) ; di . setAttribute ( "placeholder" , "Due Date" ) ; var dx = document . createElement ( "IMG" ) ; dx . setAttribute ( "src" , "delete.png" ) ; di . setAttribute ( "Name" , "hwdue_" + hw ) ; ds . appendChild ( ti ) ; dx . setAttribute ( "onclick" , "removeElement('sylData','hwdue_" + hw + "'')" ) ; ds . appendChild ( tx ) ; ds . setAttribute ( "id" , "hwdue_" + hw ) ; var ws = document . createElement ( 'span' ) ; var wi = document . createElement ( 'Input' ) ; wi . setAttribute ( "type" , "time" ) ; wi . setAttribute ( "placeholder" , "What Time?" ) ; var wx = document . createElement ( "IMG" ) ; wx . setAttribute ( "src" , "delete.png" ) ; wi . setAttribute ( "Name" , "hwtime_" + hw ) ; ws . appendChild ( ti ) ; wx . setAttribute ( "onclick" , "removeElement('sylData','hwtime_" + hw + "'')" ) ; ws . appendChild ( tx ) ; ws . setAttribute ( "id" , "hwtime_" + hw ) ; document . getElementById ( "SylData" ) . appendChild ( ts ) ; document . getElementById ( "sylData" ) . appendChild ( ms ) ; document . getElementById ( "sylData" ) . appendChild ( as ) ; document . getElementById ( "SylData" ) . appendChild ( ds ) ; document . getElementById ( "sylData" ) . appendChild ( ws ) ; }
Functions that will be called upon when user adds adiitonal field elements
Functions that will be called upon when user adds adiitonal field elements
/*
	var newhwtitle = document.createElement('div');
	newhwtitle.innerHTML = "HW" + (hw + 1) + " <br>input type = "text" >";
	*/ //break; //break; //break; //break; //break; /*Due location to go here*/ /*document.getElementById("myForm").appendChild(ls);*/