<input type="checkbox" name="in_role_id" value="ADMIN">
<input type="checkbox" name="in_role_id" value="BSO_ADMIN">
var value;
if (document.getElementByTagName("input").value = "ADMIN") {
document.getElementByTagName("input").value = "ADMIN".setAttribute('checked','checked');
}