<html>
<head>
<title>Test</title>
<script type="text/javascript">
var str="0101,0102,0103,0104";
function test()
{
alert("test");
result=str.split(",");
result.splice(2,1);
alert(result.join("-"));
}
</script>
</head>
<body onload="test()">
</body>
</htmL>