JavaScript: Handling Multiple Selections In A <select> Box

Recently asked on Yahoo! Answers:

javascript error plz help?

I have written the function in asp.net
function chkval(mval)
{
document.getElementById(”TextB… += mval;
}