div{
padding:0px;
font-size:12px;
}
#mainbox{
width:234px;
}
#box0{
width:200px;
height:20px;
border:1px solid;
float:left;
padding-top:2px;
padding-left:2px;
overflow-y:scroll;
}
#box1{
height:20px;
cursor:pointer;
border:1px solid;
float:left;
text-align:center;
padding-top:2px;
}
#items{
border:1px solid black;
width:203px;
display:none;
height:100px;
overflow-y:scroll;
}
#box3{
width:118px;
padding-left:4px;
}
.over{
font-weight:bold;
cursor:pointer;
}
p{
font-size:12px;
color:activeCaption;
font-weight:bold;
}
function setAttributes() {
var checkboxList = document.getElementsByTagName("input");
var objDisplay = document.getElementById("box0");
for (var i = 0; i
select
one
two
three
var flag=0;
var oDiv0=document.getElementById("box0");
var oDiv1=document.getElementById("box1");
var oDiv=document.getElementById("items");
oDiv1.οnclick=function(){
if(flag==0){
oDiv.style.display="block";
flag = 1;
}
else{
flag=0;
oDiv.style.display="none";
getCheckedValues();
} }
oDiv0.οnclick=function(){
if(flag!=0){
flag=0;
oDiv.style.display="none";
getCheckedValues();
} }
function getCheckedValues(){
var values = document.getElementsByName("test");
var selectValue="";
for(var i=0;i