function serialize(f, c){
	for(var o, j, k, x, e = f.elements, i = -1, l = e.length; ++i < l;){
		if(!("type" in (o = e[i])) || /image|file|button|submit|reset/.test(o.type))
			continue;
		if(/radio|checkbox/.test(o.type))
			o.checked && c(o.name, o.value);
		else if(o.type.slice(0, 6) == "select"){
			if((j = o.selectedIndex) < 0)
				continue;
			if(x = o.options, o.type.slice(-3) == "one")
				c(o.name, x[j].value);
			else
				for(k = x.length; j < k; x[j].selected && c(o.name, x[j].value), ++j);
		}
		else
			c(o.name, o.value);
	}
}