function selectVal(obj,val) { for (i=0;i