function uncheck(elemID) {
	$(elemID).checked=false;
}

function createSections() {
	var num = $('sections').options[$('sections').selectedIndex].value;
	var html = "";
	for(var i=1; i<=num; i++) {
		html += '<div id="form-row">';
		html += '<div id="sectionContainer">';
		html += 'Section '+ i +' Size: <input type="text" name="section'+ i +'length" size="4" /> mm long, <input type="text" name="section'+ i +'thickness" size="4" /> mm thick, <input type="text" name="section'+ i +'width" size="4" /> mm wide - No cut <input type="checkbox" id="s'+ i +'nocut" name="section'+ i +'cuts[]" value="none" checked="checked" onClick="uncheck(\'s'+ i +'cutsink\'); uncheck(\'s'+ i +'cuthob\');" /> Sink <input type="checkbox" name="section'+ i +'cuts[]" value="sink" onClick="uncheck(\'s'+ i +'nocut\')" id="s'+ i +'cutsink" /> Hob <input type="checkbox" name="section'+ i +'cuts[]" value="hob" onClick="uncheck(\'s'+ i +'nocut\')" id="s'+ i +'cuthob" /></div></div>'	
	}
	$('sectionContainer').innerHTML = html;
}