var glosswin;
var infowin;

function getGame(id,p){
    if(glosswin){
        glosswin.close();
    }
    if(id > 0){
        if(!currLang){
            alert("currLang = " + currLang);
        }
        url = "http://www.bellmarkgames.com/menu/play.php?m=" + id + "&p=" + p + "&lang=" + currLang;
        glosswin = window.open(url,'gamewindow','scrollbars=no,resizable=yes,directories=0,toolbar=no,menubar=no,location=no,height=600,width=800');
        glosswin.focus();
    }
}

function getInfo(id){
    if(infowin){
        infowin.close();
    }
    if(id > 0){
        url = "http://www.bellmarkgames.com/menu/info.php?m=" + id;
        infowin = window.open(url,'infowindow','scrollbars=yes,resizable=yes,directories=0,height=800,width=600');
        infowin.focus();
    }
}
