// var adm_1 = "Не си въвел URL адрес.+ n\+  Моля, въведи URL  и опитй отново!"

function change_life_img(image){
	document.getElementById('lifeimage').src = image;
}

// random vits functions
function loadHTMLDoc(url) {
    req = false;
       if(window.XMLHttpRequest) {
          try {
             req = new XMLHttpRequest();
          } catch(e) {
             req = false;
          }
       } else if(window.ActiveXObject) {
          try {
             req = new ActiveXObject("Msxml2.XMLHTTP");
          } catch(e) {
             try {
                req = new ActiveXObject("Microsoft.XMLHTTP");
             } catch(e) {
                req = false;
             }
          }
       }

    if(req){
        req.open("get", url, true);
        req.onreadystatechange = function(){
         
               if (req.readyState == 4) {
                if (req.status == 200) {
                    displayVic(req.responseText);
                    
                    }
              }
        }

    req.send(null);
 
    }
}

function displayVic(sText){
        var newVic = document.getElementById("show_vic");
        newVic.innerHTML = sText;
    }
// end random vits functions

