﻿

function CreateXMLHttpRequest() {
    var xmlHttp;
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHttp");
    }
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
    return xmlHttp;
}

function GetOPList(strPageIndex) {
    var url = "ServerWrite.aspx";
    var queryString = "PageIndex=" + strPageIndex;
    var xmlHttp = CreateXMLHttpRequest();

    xmlHttp.open("POST", url, true);
    xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlHttp.send(queryString);

    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
            document.getElementById("OPList").innerHTML = xmlHttp.responseText;
        }
    }
}

function GetOP(strOPID) {
    window.open("OPInfo.aspx?OPID=" + strOPID, 'showOP', 'height=768, width=1024, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no');
}


