function function1(sectionName, sectionId) {
	//alert(sectionName);
	if (sectionName == 'editorField'){
		var arrayName = 'editors';
	}else{
		var arrayName = 'artists';
	}
	var num_row = $('#'+sectionName +' > select').size();
	//alert(num_row);
	//var m = document.getElementById(sectionName).innerHTML;
	var m = '<select name="'+arrayName+'[]" id="'+sectionId+'" class="fieldclassLong" onchange="showThumbFieldsCheck(this.value);">' + $('#'+sectionName +' > select:last').html() + '</select>';
	if (num_row > 1){
		//alert(m);
		$('#'+sectionName +' > select:last').after(m);
	}else{
		//alert(m);
		$('#'+sectionName).append(m);
	}
		
	
} 
function function2() {
	//Check to see how many dropdown are on the page
	var num_row = $("#editorField > select").size();
	//alert(num_row);
	//If there is more than 1...we can delete the last one. If only 1 left...nothing happens
	if (num_row > 1){
		var p = document.getElementById('editorField');
		var n = $("#editorField > select:last").remove();
	}
	
}

function function3() {
	//Check to see how many dropdown are on the page
	var num_row = $("#artistField > select").size();
	
	//If there is more than 1...we can delete the last one. If only 1 left...nothing happens
	if (num_row > 1){
		var p = document.getElementById('artistField');
		var n = $("#artistField > select:last").remove();
	}
}

