function swapph(id, im, rmid, pidp)
{
var cell = document.getElementById(id);
cell.removeChild(document.getElementById(rmid));
var rm = document.createElement("img"); 
    rm.setAttribute("id","rmim"); 
    rm.setAttribute("src",im);
    rm.setAttribute("alt","фото пансионата");
cell.appendChild(rm);
document.getElementById("pidp").innerHTML = pidp;
}







