rem: liststr.value = newentry.text; 
add: liststr.value = newentry.value; 
context: function addWatchEntry () {	var wu = mytrim(document.theForm.watch_user.options[document.theForm.watch_user.selectedIndex].value);    var wd = mytrim(document.theForm.watch_dir.value);    if ((wu != "") && (wd != "")) {		if (wd.indexOf('/') != 0) {			alert("Directory must be absolute !");			return false;		}	    var liststr = document.theForm.fluxd_Watch_jobs;	    var list = document.theForm.watch_jobs;	    for (var i = 0; i < document.theForm.watch_jobs.options.length; i++) {	    	if ((mytrim(document.theForm.watch_jobs.options[i].text)) == (wu + ":" + wd)) {	    		alert("Job already exists");	    		return false;	    	}	    	if ((mytrim(document.theForm.watch_jobs.options[i].text)) == (wu + ":" + wd + "/")) {	    		alert("Job already exists");	    		return false;	    	}	    		    }	    	    var newentry = document.createElement("option");	    newentry.text = wu + ":" + wd;	    newentry.value = newentry.text;	    //document.theForm.watch_user.value = "";		document.theForm.watch_dir.value = "";	    if (navigator.appName == "Netscape")	    	list.add(newentry, null);	    else	    	list.add(newentry);	    if (liststr.value == "")	    	liststr.value = newentry.text;	    else	    	liststr.value = liststr.value + ";" + newentry.text;    } else {		alert("Please select an Username and enter a Directory first!");	}}
meta: 9258	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9258/34caf4beab3cb9e3ee648d375c21ab228adfda61/fluxdSettings.js/buggy/trunk/html/js/fluxdSettings.js