

function answer(id)
{
    if (xGetElementById(id).style.display=="block"){
        xGetElementById(id).parentNode.style.border="1px solid white";
        xGetElementById(id).parentNode.style.backgroundColor = "white";
        xGetElementById(id).style.display="none";        
    }else 
        xGetElementById(id).style.display="block";
    var q=1;
    while(xGetElementById("q"+q)){
        if (("q"+q)==id){    
            xGetElementById("q"+q).parentNode.style.border="1px solid #b0b0F0";
            xGetElementById("q"+q).parentNode.style.backgroundColor = "#E8E8FF";
        }else{
            xGetElementById("q"+q).parentNode.style.border="1px solid white";
            xGetElementById("q"+q).parentNode.style.backgroundColor = "white";
        }
        ++q;
    }
}