<SCRIPT LANGUAGE="JavaScript">
<!--
var a = '11,22,,33,44,,,55,';var b = a.replace(/(\d+),*/g,"$1" + ",");alert(b)//-->
</SCRIPT>