rem: var kwdsnow = getObj("kwds_string"); if (!kwdsnow) return true; if (kwdsnow.value == '') return true;  var kwdsarray = kwdsnow.value.split(',');  for (var k = 0; k < kwdsarray.length; k++) { var newkw = kwdsarray[k].trim().toLowerCase();  if (newkw != '') { var realkw = false;  for (pos = 0; pos < KWDS_ARRAY.length; pos++) if (KWDS_ARRAY[pos].toLowerCase() == newkw) realkw = true; mdsc.value += "\n" + newkw + (realkw ? '-kw' : ''); } 
add: var mdsc = getObj("mdsc"); if (!mdsc) { alert('? Form does not contain mdsc'); return false; }  var kwdsnow = getObj("kwds_string"); if (!kwdsnow) return true; if (kwdsnow.value == '') return true;  if (!KWDS_ARRAY.length) { makeAlphaList(getObj('maindiv')); KWDS_ARRAY.sort(); 
context:         function prepSearch(ev)        {        	if (!ev) var ev = window.event;        	        	var mdsc = getObj("mdsc");        	if (!mdsc) { alert('? Form does not contain mdsc'); return false; }                    	var kwdsnow = getObj("kwds_string"); if (!kwdsnow) return true;        	if (kwdsnow.value == '') return true;        	        	var kwdsarray = kwdsnow.value.split(',');        	        	for (var k = 0; k < kwdsarray.length; k++)        	{            	var newkw = kwdsarray[k].trim().toLowerCase();            	            	if (newkw != '')            	{                	var realkw = false;                	                    for (pos = 0; pos < KWDS_ARRAY.length; pos++)                        if (KWDS_ARRAY[pos].toLowerCase() == newkw)                            realkw = true;                	mdsc.value += "\n" + newkw + (realkw ? '-kw' : '');            	}            }        	        	return true;        }
meta: 7863	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7863/de8684d4ffe67b5e9ceafb6725e84b0a2588b4d4/md_script.js/buggy/main/metadata/md_script.js