{
var str;
var SelectedClausesLists = document.getElementsByTagName("input");
for(var i=0;i
{
str=SelectedClausesLists[i].value;
if(document.getElementById(obj2).checked)
{
if(SelectedClausesLists[i].value.indexOf(obj1)<0)
{ SelectedClausesLists[i].value += obj1+";" str=SelectedClausesLists[i].value;
}
}
else
{
if(SelectedClausesLists[i].value.indexOf(obj1)>=0)
{
str=str.replace(obj1+";","");
SelectedClausesLists[i].value = str;
}
}
}
}