+<script type="text/javascript">
+function selectAll()
+{
+ if(document.forms[0])
+ {
+ for(var x = 0; x < document.forms[0].length; x++)
+ {
+ if(document.forms[0].elements[x].name == "files" && document.forms[0].elements[x].type == "checkbox")
+ {
+ document.forms[0].elements[x].checked = true
+ }
+ }
+ }
+}
+
+function unselectAll()
+{
+ if(document.forms[0])
+ {
+ for(var x = 0; x < document.forms[0].length; x++)
+ {
+ if(document.forms[0].elements[x].name == "files" && document.forms[0].elements[x].type == "checkbox")
+ {
+ document.forms[0].elements[x].checked = false
+ }
+ }
+ }
+}
+</script>