﻿//var openWinW;

function showProp(a) {
    var w = window.open(a.href, '_blank', 'width=785,height=575,scrollbars=no,resizable=yes');
    return false;
}
function openWin(href, width, height,name) {
    if (!name) name = '_blank';
    //if (openWinW) openWinW.close();
    var openWinW = window.open(href, name, 'width=' + width + ',height=' + height, false);
    openWinW.focus();
    return false;
}

function openMap(href) {
    var w = window.open(href, '_blank', 'width=600,height=600', false);
    w.focus();
    return false;
}
function qs(key) {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == key) {
            return ft[1];
        }
    }
}

function checkEnter(e) {
    return (e && e.which ? e.which : event.keyCode) == 13;
}