// Chained Selects // Copyright Xin Yang 2004 // Web Site: www.yxScripts.com // EMail: m_yangxin@hotmail.com // Last Updated: 2004-08-23 // This script is free as long as the copyright notice remains intact. var _disable_empty_list=true; var _hide_empty_list=true; // ------ if (typeof(disable_empty_list)=="undefined") { disable_empty_list=_disable_empty_list; } if (typeof(hide_empty_list)=="undefined") { hide_empty_list=_hide_empty_list; } var cs2_goodContent=true, cs2_M="M", cs2_L="L", cs2_curTop=null, cs2_curSub=null; function cs2_findOBJ(obj,n) { for (var i=0; i=0; i--) { list.options[i]=null; } } function cs2_refreshList(list,opt,df) { cs2_emptyList(list); for (var i=0; i0) { list.selectedIndex=df; } } function cs2_getOptions(menu) { var opt=new Array(); for (var i=0; i0) { cs2_initListGroup(content,content.cookie); } } } function resetListGroup(n) { var content=cs2_findContent("cs2_"+n); if (content!=null && content.lists.length>0) { cs2_initListGroup(content,""); } } // ------