﻿document.write("<div style='position:absolute; top:0px; left:0px;display:none;width:300px;font:14px Arial;margin:2px 0px 0px 2px;padding:10px;color:#333;background-color:#ffffe5;z-index:100; border:1px #666 solid' id='$help$'><b>免责声明：</b>以上所展示的信息由企业自行提供，内容的真实性、准确性和合法性由发布企业负责。互创中国对此不承担任何保证责任。</div>");
var $help$ = document.getElementById('$help$');
function $Showhelp$(event, H_Code) {
    //$help$.innerHTML = H_Code.replace(/\$R\$/gi, "\"");
    var _hlFRW = 320;
    var childFrame = $help$._hideWindowedElementsIFrame;
    if (__IsIE) {
        _hlFRW = 300;
        if (!childFrame) {
            childFrame = document.createElement("iframe");
            childFrame.src = "javascript:'<html></html>';";
            childFrame.style.position = "absolute";
            childFrame.style.display = "none";
            childFrame.scrolling = "no";
            childFrame.frameBorder = "0";
            childFrame.tabIndex = "-1";
            childFrame.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
            $help$.parentNode.insertBefore(childFrame, $help$);
            $help$._hideWindowedElementsIFrame = childFrame;
            if ($help$.currentStyle && $help$.currentStyle.zIndex) {
                childFrame.style.zIndex = $help$.currentStyle.zIndex;
            }
            else if ($help$.style.zIndex) {
                childFrame.style.zIndex = $help$.style.zIndex;
            }
        }
    }
    var pScroll=getPageScroll();
    $help$.style["left"] = event.clientX + 15 + pScroll[0] + 'px';
    if (event.clientX + 15 + pScroll[0] + 300 > pScroll[2] && event.clientX > 330) {
        $help$.style["left"] = event.clientX - _hlFRW + pScroll[0] + 'px';
    }
    $help$.style["top"] = event.clientY + 15 + pScroll[1] + 'px';
    $help$.style.display = "block";
    if (__IsIE) {
        childFrame.style.display = $help$.style.display;
        childFrame.style["left"] = $help$.style["left"];
        childFrame.style["top"] = $help$.style["top"];
        childFrame.style["width"] = $help$.style["width"];
        childFrame.style["height"] = $help$.offsetHeight + 2 + 'px';
    }
}
function $hidehelp$() {
    $help$.style.display = "none";
    if (__IsIE) {
        var childFrame = $help$._hideWindowedElementsIFrame;
        if (childFrame) childFrame.style.display = $help$.style.display;
    }
}
function LeaveWord() {
    var LWPeople = $("txt_LWPeople").value.Trim();
    var title = $("txt_Title").value.Trim();
    var content = $("txt_Content").value.Trim();
    if (LWPeople == "") return ShowMsgBox(null, "请输入留言人！");
    if (title == "") return ShowMsgBox(null, "请输入留言主题！");
    if (content == "") return ShowMsgBox(null, "请输入留言内容！");
    var linkM = $("txt_LinkMethod").value.Trim();
    if (linkM != "") content = content + "<br/>联系方式：" + linkM;
    var rs = companyweb_html_MPCompanyWeb.LeaveWord(CorpID, title, content, LWPeople).value;
    if (rs) ShowMsgBox("成功", "留言成功！");
    else ShowMsgBox("失败","留言失败，请稍后再试！");
}
function CreateOrder(wwwHost,id, ty) {
    window.open(wwwHost + "/createorder_" + ty + "_" + id + ".htm?num=" + $("txt_OrderNum").value); return false;
}
