$item ) $output[] = $key; return implode($glue, $output); } function PHParrayToJSArray($data) { $i=0; foreach($data as $tag => $attrs) { echo "store[$i] = new Array(" ."'$tag'"; $jsattrs = implode_v("','",$attrs); if ($jsattrs) { echo ",'" . $jsattrs . "'"; } echo ");\n"; $i++; } } function jsCode($data) { ?> var store = new Array(); var debug_ = false; store.sort(); function getForm() { return document.getElementById("cfg"); } function populate1() { var box1 = getForm().first; var box2 = getForm().second; box1.options.length = 0; box2.options.length = 0 for (i=0;i