и это не работает(
try{
map = xmlResp.getElementsByTagName('x'+x+'y'+y).item(0).firstChild.data;
if(map){
document.getElementById('x'+x+'y'+y).style.backgroundImage = "url(img/" + map + ")";
throw "E0";
}else{
throw "E1";
}
}catch(e){
if(e == "E1"){
document.getElementById('x'+x+'y'+y).style.backgroundImage = "url(img/no.gif")";
}
}