/* coded by Kae - kae@verens.com I'd appreciate any feedback. You have the right to include this in your sites. Please retain this notice. */ /* edit these variables to customise the multiselect */ { var show_toplinks=false; } /* global variables - do not touch */ { var isIE=window.attachEvent?true:false; var selectDefaults=[]; } function addEvent(el,ev,fn){ if(isIE)el.attachEvent('on'+ev,fn); else if(el.addEventListener)el.addEventListener(ev,fn,false); } function buildMultiselects(){ do{ found=0; a=document.getElementsByTagName('select'); for(b=0;b'); labelText=document.createTextNode(text); label.appendChild(checkbox); label.appendChild(labelText); newmultiselect.appendChild(label); } wrapper.appendChild(newmultiselect); ms.parentNode.insertBefore(wrapper,ms); ms.parentNode.removeChild(ms); } } }while(found); } function multiselect_selectall(name,val){ var els=document.getElementsByTagName('input'),found=0; for(var i=0;i