﻿var returnValue;
returnValue = "<table width='411' border='0' cellspacing='0' cellpadding='0' align='center'>";
returnValue += "<tr><td height='24' valign='top'><img src='images/b_table_01.gif' width='411' height='27' border='0' usemap='#KFMap'></td></tr>";
returnValue += "<tr><td height='50' align='center' valign='top' background='images/b_table_02.gif'>";

returnValue += "<table width='393' border='0' cellspacing='0' cellpadding='0'>";
returnValue += "<tr>";
returnValue += "<td width='393' valign='top'>";
returnValue += "<table id='QQ_Div' style='display:block' width='393' border='0' cellspacing='0' cellpadding='0'>";
returnValue += "<tr><td width='393'><img src='images/table_01.gif' width='393' height='8' /></td></tr>";
returnValue += "<tr><td height='177' align='center' valign='top' background='images/table_02.gif'>";
returnValue += "<table width='393' border='0' cellspacing='0' cellpadding='0'>";
returnValue += "<tr><td width='93' height='23' class='menuout'><strong>点击相应图标</strong></td><td width='284'>";
returnValue += "<table width='270' border='0' cellspacing='0' cellpadding='0'><tr><td height='2' background='images/line.gif'></td></tr></table>";
returnValue += "</td></tr></table>";

returnValue += "<table width='360' border='0' align='center' cellpadding='0' cellspacing='0'>";
returnValue += "<tr><td height='3' colspan='3' valign='top'></td></tr>";
returnValue += "<tr>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>代理咨询1<br><a href='tencent://message/?uin=1012615873&amp;Site=www.tour17.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:1012615873:1' border=0></a></td>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>代理咨询2<br><a href='tencent://message/?uin=517299504&amp;Site=www.tour17.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:517299504:1' border=0></a></td>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>代理咨询3<br><a href='tencent://message/?uin=634619769&amp;Site=www.tour17.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:634619769:1' border=0></a></td>";
returnValue += "</tr>";
returnValue += "<tr><td height='3' colspan='3' valign='top'></td></tr>";
returnValue += "<tr>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>业务咨询1<br><a href='tencent://message/?uin=673113044&amp;Site=www.tour17.net.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:673113044:1' border=0></a></td>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>业务咨询2<br><a href='tencent://message/?uin=401318095&amp;Site=www.tour17.net.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:401318095:1' border=0></a></td>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>业务咨询3<br><a href='tencent://message/?uin=634619769&amp;Site=www.tour17.net.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:634619769:1' border=0></a></td>";
returnValue += "</tr>";
returnValue += "<tr><td height='3' colspan='3' valign='top'></td></tr>";
returnValue += "<tr>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>售后服务1<br><a href='tencent://message/?uin=183756926&amp;Site=www.tour17.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:183756926:1' border=0></a></td>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>售后服务2<br><a href='tencent://message/?uin=414735&amp;Site=www.tour17.cn&amp;Menu=yes'><IMG alt=图片设计 src='http://wpa.qq.com/pa?p=1:414735:1' border=0></a></td>";
returnValue += "<td width='120' height='48' valign='bottom' class='KF_List'>售后服务3<br><a href='tencent://message/?uin=634619769&amp;Site=www.tour17.cn&amp;Menu=yes'><IMG alt=联系我 src='http://wpa.qq.com/pa?p=1:634619769:1' border=0></a></td>";
returnValue += "</tr>";
returnValue += "</table>";

returnValue += "</td></tr>";
returnValue += "<tr><td><img src='images/table_03.gif' width='393' height='8' /></td></tr></table>";
returnValue += "</td></tr></table></td></tr>";
returnValue += "<tr><td height='26' background='images/b_table_03.gif'>";
returnValue += "<table width='411' border='0' cellspacing='0' cellpadding='0'>";
returnValue += "<tr><td width='10'>&nbsp;</td><td width='401' height='25' class='orange'>温馨提示：选择交谈方式同时务必打开相应软件</td></tr>";
returnValue += "</table></td></tr></table>";
returnValue += "<map name='KFMap'><area shape='rect' coords='357,5,403,24' href='#' alt='关闭窗口' onclick='KF_CLOSE()'></map>";

function ShowCustomerService() {
    CreateBackFrame();

    var KFPopup = document.getElementById("KFPopup");
    if (KFPopup != null) {
        KFPopup.style.display = "block";
    }
    else {
        var div = document.createElement("DIV");
        div.id = "KFPopup";
        div.style.left = (screen.Width - 411) / 2;
        div.style.top = (screen.Height - 546) / 2;
        div.style.width = 411;
        div.style.height = 246;
        div.style.position = "absolute";
        div.style.display = "none";
        //theForm.appendChild(div);
        document.body.firstChild.appendChild(div);

        var KFPopup = document.getElementById("KFPopup");
        KFPopup.innerHTML = returnValue;
        KFPopup.style.display = "block";
    }
}

function KF_CLOSE() {
    var KFPopup = document.getElementById("KFPopup");
    if (KFPopup != null) {
        KFPopup.style.display = "none";
    }
    CloseBackFrame();
}

function CreateBackFrame() {
    var BackFrame = document.getElementById("BackFrame");

    if (BackFrame != null) {
        BackFrame.style.display = "block";
    }
    else {
        var w = document.body.scrollWidth;
        var h = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
        var hh = Math.max(document.body.offsetHeight, document.body.clientHeight);
        h = Math.max(h, hh);
        h = Math.max(h, screen.Height);

        BackFrame = document.createElement("iframe");
        BackFrame.id = "BackFrame";
        BackFrame.src = "javascript:'<html><style>body{width:100%;height:100%;background-color:Gray;}</style><body></body></html>';";
        BackFrame.style.position = "absolute";
        BackFrame.style.left = 0;
        BackFrame.style.top = 0;
        BackFrame.style.width = w;
        BackFrame.style.height = h;
        BackFrame.style.display = "block";
        BackFrame.scrolling = "no";
        BackFrame.frameBorder = "0";
        BackFrame.tabIndex = "-1";
        BackFrame.style.filter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
        document.body.firstChild.appendChild(BackFrame);
        //theForm.appendChild(BackFrame);
    }
}

function CloseBackFrame() {
    var BackFrame = document.getElementById("BackFrame");
    if (BackFrame != null) {
        BackFrame.style.display = "none";
    }
}