<script type="text/javascript">
$(document).ready(function(){
$(".sendspaccount").click(function(){
var tval = $('#sendaccount').val();
if($(this).is(':checked'))
{
if(tval.length < 1)
{
$('#sendaccount').val($(this).val());
}else{
$('#sendaccount').val(tval+','+$(this).val());
}
}else{
var fixtval = tval.replace(','+$(this).val(),"");
fixtval = fixtval.replace($(this).val(),"");
if(fixtval.substring(0,1) == ',') fixtval = fixtval.substr(1)
$('#sendaccount').val(fixtval);


}


})
});
</script>