    var skwidth   = screen.width;
    var skheight  = screen.height;
    var winheight = skheight - 96;
    var winwidth  = skwidth;
    if (winwidth >= 850)
       winwidth = 850;
    if (winheight >= 900)
       winheight = 900;
    var winleft = (skwidth - winwidth) / 2;
    var wintop  = (skheight - 96 - winheight) / 2;


    function out() {
      window.status=' ';
      return true;
    }

    function won() {
       window.status='You have previously viewed this property';return true;
    }


    function GoWin(houseid) {
       img = eval('document.sj'+houseid);
       img.src='/sysl/habil/img/skodad.gif';
       img.onmouseover=won;
       img.onmouseout=out;
       window.open('http://www.habil.is/lix/adjalta?HabilView=157630&sysl&habilEN&HouseId='+houseid,houseid,'scrollbars=1,status=1,menubar=1,resizable=1,top=' + wintop + ',left=' + winleft + ',width=' + winwidth + ',innerwidth=' + winwidth + ',height=' + winheight + ',innerheight=' + winheight);
       return false;
    }
    function GoWinNoImg(houseid) {
       window.open('http://www.habil.is/lix/adjalta?HabilView=157630&sysl&habilEN&HouseId='+houseid,houseid,'scrollbars=1,status=1,menubar=1,resizable=1,top=' + wintop + ',left=' + winleft + ',width=' + winwidth + ',innerwidth=' + winwidth + ',height=' + winheight + ',innerheight=' + winheight);
       return false;
    }
    function GoItm(houseid) {
        window.open('http://www.habil.is/lix/jalta?PurseItm=&Fast&0&HouseId='+houseid,'PurseItm'+houseid,'scrollbars=1,status=1,resizable=1,width=660,height=500');
    }
    function lon(txt) {
       window.status="View page no "+txt;
       return true;
    }
    function hon() {
       window.status="View this property";
       return true;
    }
    function son() {
      window.status="This property is allready in your purse";
      return true;
    }
