function detailTab(tabSelected){ var tabList = new Array("photo", "location", "floorplan", "proptx", "ebook", "mindex", "mortgage"); var t; for (t in tabList) { var ele = document.getElementById("tab_" + tabList[t]); if (ele) { if (tabSelected == tabList[t]) { ele.src = "images/hk/tab_" + tabList[t] + "_on.gif"; // document.getElementById("tab_ctn_" + tabList[t]).style.display = "block"; } else { ele.src = "images/hk/tab_" + tabList[t] + "_off.gif"; // document.getElementById("tab_ctn_" + tabList[t]).style.display = "none"; } } } } function detailToTx(mdbEstId, lang) { window.top.location = "http://proptx.midland.com.hk/propTx/index.jsp?estateId=" + mdbEstId + "&lang=" + lang; } function detailToUnitTx(estId) { window.top.location = "http://proptx.midland.com.hk/unit/index.jsp?est_id=" + estId; } function detailToEbook(estId) { window.top.location = "http://app.midland.com.hk/residential_ebook/index.jsp?estId=" + estId; } function detailToFloorplan(estId) { window.top.location = "http://app.midland.com.hk/residential_ebook/index.jsp?estId=" + estId + "#flat"; } function detailToMap(estId) { window.top.location = "http://www.midlandmap.hk/map_hk/index.jsp?pisEstId=" + estId + "&lang=big5"; } function detailToMIndex(mdbEstId) { window.top.location = "http://proptx.midland.com.hk/mpp/default.jsp?estId=" + mdbEstId + "#chart"; } function detailMailTo(stockId) { window.top.location = "mailto:?body=http://proptx.midland.com.hk/advanceCS/index.jsp?stockId=" + stockId; } function detailOpenImage(path) { window.open(path,'','directories=no,resizable=1,scrollbars=1'); } function stockWithinDist(distId, distName, lang) { var frm = document.redirectForm; if (distId.indexOf("10") == 0) { frm.distIdHK.value = distId; frm.pick_dist_hk.value = distName; } else if (distId.indexOf("20") == 0) { frm.distIdKN.value = distId; frm.pick_dist_kn.value = distName; } else if (distId.indexOf("30") == 0) { frm.distIdNT.value = distId; frm.pick_dist_nt.value = distName; } frm.lang.value = lang; frm.submit(); } function stockWithinEst(estId, lang) { var frm = document.redirectForm; frm.estId.value = estId; frm.lang.value = lang; frm.submit(); }