function setCheckboxSelected()
{
var rwdidStr = baseForm.RWDIDSTR.value;
if(rwdidStr!=""){
for(i=0;i<=rwdidStr.split(",").length-1;i++){
if(document.all("rwd")==null){
break;
}else{
if(document.all("rwd").length == undefined){
if(rwdidStr.split(",")[i]==document.all("rwd").value){
baseForm.rwd.checked=true;
}
}else{
for(j=0;j<=document.all("rwd").length-1;j++){
if(rwdidStr.split(",")[i]==document.all("rwd")[j].value){
baseForm.rwd[j].checked=true;
}
}
}
}
}
}
}