comment changer l'image de fond de div en utilisant javascript?

c'est mon code

        <div style="text-align:center;">
            <div class="ghor" id="a" onclick="chek_mark()">
            </div>

appel de fonction

        <script type="text/javascript">

            function chek_mark(){
                var el= document.getElementById("a").style.background-    image;

ici je veux changer l'image d'arrière-plan à l'aide de si la condition else

if (el.url("Black-Wallpaper.jpg"))  
                    {                                  
                        el.url = "cross1.png";  
                    }
                    else if(el.url("cross1.png"))
                    {

                      alert("<h1>This is working too.</h1>");
                    }
                }

c'est la feuille de style

.ghor //this is the div class
{
    background-image: url('Black-Wallpaper.jpg');
    background-size: cover;
    border-radius: 5px;
    height: 100px;
    width: 100px;
    box-shadow: 2px 5px 7px 7px white;
    /*background-color: black;*/
    display:inline-block; 
}

je veux changer l'image de fond de la " div "qui classe est "ghor'

source d'informationauteur shajib0o | 2014-02-01