﻿// JScript 文件

function turnPage() {
    window.location.href = "Default.aspx";
}
function turnMobileApp() {
    window.open("MobileApp.aspx");
}

function a(id) {
    return document.getElementById(id);
}

function changeIf1(ifId) {
    var urlValue 
    if (window.location.search == "" || window.location.search == null) {
        var urlValue = "?ifsrc=BusinessDe";
    }
    else {
         urlValue = window.location.search;

    }
    a(ifId).src = urlValue.split('=')[1] + '.aspx';

    if (urlValue == "?ifsrc=MobileApp") {
        a("iframeContent").style.height = 1500;
        a("divZhapPinContent1").style.height = 1600;

    }
    else {
        a("iframeContent").style.height = 500;
        a("divZhapPinContent1").style.height = 600;

    }
}

function winOpen(url) {
    window.open(url);
    //window.location.href = url;
}

function setIframeHeight() {
//    var setIfHeight = a("iframeContent").document.body.scrollHeight;
//    a("divbgbody").style.height = setIfHeight;
//    a("iframeContent").style.height = setIfHeight;
//    //document.getElementById('Iframe的ID').contentWindow.document.body.scrollHeight
    //    window.alert(setIfHeight);

   a("iframeContent").style.height = 500;
   a("divZhapPinContent1").style.height = 600;

//       a("iframeContent").style.height = 1500;
//       a("divZhaoPinContent").style.height = 1500;
//       a("divZhapPinContent1").style.height = 1600;


}

function setIframeHeightNew() {
    //    var setIfHeight = a("iframeContent").document.body.scrollHeight;
    //    a("divbgbody").style.height = setIfHeight;
    //    a("iframeContent").style.height = setIfHeight;
    //    //document.getElementById('Iframe的ID').contentWindow.document.body.scrollHeight
    //    window.alert(setIfHeight);

    a("iframeContent").style.height = 1500;
    a("divZhaoPinContent").style.height = 1500;
    a("divZhapPinContent1").style.height = 1600;

}

