var scaleOptionsPath = document.getElementById('scale-options-path'); alert(scaleOptionsPath.value); 
var scaleOptionsPath = document.getElementById('scale-options-path').value; alert(scaleOptionsPath);  var nextOptionIndex = document.getElementById('scale-options-num').value; alert(nextOptionIndex); 
function addScaleOption() {	var scaleOptionsPath = document.getElementById('scale-options-path');	alert(scaleOptionsPath.value);		var ni = document.getElementById('myNewSpan');	var numi = document.getElementById('scale-options-num');		var num = (document.getElementById('scale-options-num').value -1)+ 2;	alert(num);	numi.value = num;	var newspan = document.createElement('span');	var spanIdName = 'my'+num+'Span';	newspan.setAttribute('id',spanIdName);	newspan.innerHTML = '<input type=text name=scaleOptions::' + num + ':scale-option-label/><input type=hidden  name=scaleOptions::'+ num +':scale-option-label-fossil value=istring#{' + scaleOptionsPath.value + num + '}/> &nbsp; <input type=button value=Remove onclick=javascript:removeNewElement(' + spanIdName + ') /> <br/>';	ni.appendChild(newspan);	}
5063	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5063/d351d4a3ecb969b51d19512195991694ba663abd/scaleUtils.js/clean/tool/src/webapp/content/js/scaleUtils.js