|  |  |  | @ -39,9 +39,22 @@ function buildOptions(xmlDoc,id) { | 
			
		
	
		
			
				
					|  |  |  |  | 	for (var i=0; i<options.length; i++) { | 
			
		
	
		
			
				
					|  |  |  |  | 		var len = selectObj.length; | 
			
		
	
		
			
				
					|  |  |  |  | 		selectObj.length = len + 1; | 
			
		
	
		
			
				
					|  |  |  |  | 		if(id == 'func'){ | 
			
		
	
		
			
				
					|  |  |  |  | 			let optionsArray = Array.from(options); | 
			
		
	
		
			
				
					|  |  |  |  | 			let filteredOptions = optionsArray.filter(option => { | 
			
		
	
		
			
				
					|  |  |  |  | 				return option.attributes[0].nodeValue.indexOf('SP') === -1; | 
			
		
	
		
			
				
					|  |  |  |  | 			}); | 
			
		
	
		
			
				
					|  |  |  |  | 			selectObjNew.options[len] = new Option(filteredOptions[i].attributes[1].nodeValue, filteredOptions[i].attributes[0].nodeValue); | 
			
		
	
		
			
				
					|  |  |  |  | 			if (filteredOptions[i].attributes[2].nodeValue =="selected") { | 
			
		
	
		
			
				
					|  |  |  |  | 				selectObjNew.options[len].selected = true; | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 		}else{ | 
			
		
	
		
			
				
					|  |  |  |  | 			selectObjNew.options[len] = new Option(options[i].attributes[1].nodeValue, options[i].attributes[0].nodeValue); | 
			
		
	
		
			
				
					|  |  |  |  | 			if (options[i].attributes[2].nodeValue =="selected") { | 
			
		
	
		
			
				
					|  |  |  |  | 				selectObjNew.options[len].selected = true; | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |