rem: if (element.options[opt].selected) url += '&'+element.name+(element.name.indexOf('[]') >= 0 ? '=' : '[]=')+element.options[opt].value; 
add: if (element.options[opt].selected) url += '&'+element.name+(element.name.indexOf('[]') >= 0 || !element.multiple ? '=' : '[]=')+element.options[opt].value; 
context: function values2url(form,names){	url = '';	names = names.split(',');	for(i=0; i < names.length; i++)	{		form_name = names[i];		b = form_name.indexOf('[');		if (b < 0) {			form_name = 'exec['+form_name+']';		} else {			form_name = 'exec['+form_name.slice(0,b-1)+']'+form_name.slice(b,99);		}		//alert('Searching for '+form_name);		for (f=0; f < form.elements.length; f++) {			element = form.elements[f];			//alert('checking '+element.name);			if (element.name.slice(0,form_name.length) == form_name) {				//alert('found '+element.name+', value='+element.value);				if (element.type == 'checkbox' || element.type == 'radio') {	// checkbox or radio					if (element.checked) url += '&'+element.name+'='+element.value;				} else if (element.options) {	// selectbox					for(opt=0; opt < element.options.length; opt++) {						//alert('found '+element.name+' option['+opt+'] = '+element.options[opt].value+ ' = '.element.options[opt].text+': '+element.options[opt].selected);						if (element.options[opt].selected) url += '&'+element.name+(element.name.indexOf('[]') >= 0 ? '=' : '[]=')+element.options[opt].value;					}				} else if (element.value != null) {					url += '&'+element.name+'='+element.value;				}			}		}	}	//alert('url='+url);	return url+'&etemplate_exec_id='+form['etemplate_exec_id'].value;}
meta: 5631	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5631/d278a2bbe36eac4746275ba409b6799e6494b7f5/etemplate.js/clean/js/etemplate.js