<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>

<BODY>
<script language="javascript">
 function set(){
  var b = [1,2,2,3,5,6];
  //alert(array.min.apply(a));
  //aaa = '2,10,3,400';
  a = Math.max.apply(Math,b);
  alert(a);
 }
</script>
<input type="button" value="0000" onclick="set()">
</BODY>
</HTML>