function firstChildElement (node) {
    if (!node)        return null;    var child = node.firstChild;
    while (child) {
        if (child.nodeType == 1)
            return child;
        child = child.nextSibling;
    }
    return null;
}

function nextSiblingElement (node) {
    if (!node)        return null;    var sibling = node.nextSibling;
    while (sibling) {
        if (sibling.nodeType == 1)
            return sibling;
        sibling = sibling.nextSibling;
    }
    return null;
}

function getText (node) {
    if (!node)        return null;    var text = '';
    var child = node.firstChild;
    while (child) {
        if (child.nodeType == 3) {
            text = text + child.nodeValue;
        }
        child = child.nextSibling;
    }
    return text;
}

function invokeSync (url, xmlDoc) {
    var req = null;    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
    }

    if (req) {
        req.open("POST", url, false);
        req.setRequestHeader("Content-Type", "text/xml");
        req.send(xmlDoc);
        return req.responseXML;
    }
}

function invokeAsync (url, xmlDoc, callback) {
    var req = null;
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
    }
    
    if (req) {
        req.onreadystatechange = function () {
            if (req.readyState == 4) {
                if (req.status == 200) {
                    callback(req.responseXML);
                } 
            }
        }
        req.open("POST", url, true);
        req.setRequestHeader("Content-Type", "text/xml");
        req.send(xmlDoc);
    }
}

function createNewDocument () {
    var xmlDoc = null;
    if (document.implementation && document.implementation.createDocument) {
        xmlDoc = document.implementation.createDocument("", "", null);
    } else if (window.ActiveXObject){
        xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    }
    return xmlDoc;
}

function createElementNS (xmlDoc, namespace, localName) {
    var element = null;
    if (typeof xmlDoc.createElementNS != 'undefined') {
        element = xmlDoc.createElementNS(namespace, localName);
    }
    else if (typeof xmlDoc.createNode != 'undefined') {
        if (namespace) {
            element = xmlDoc.createNode(1, localName, namespace);
        } else {
            element = xmlDoc.createElement(localName);
        }
    }
    return element;
}

function localName (element) {
    if (element.localName)
        return element.localName;
    else
        return element.baseName;
}



function ArticulosWebServiceSoapHttpPort_obtenerAccesoriosDeTipo(_codTipoAccesorio) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'obtenerAccesoriosDeTipo');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'codTipoAccesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_codTipoAccesorio));
    parameterParent.appendChild(paramEl);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_obtenerAccesoriosDeTipoAsync(_codTipoAccesorio, callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'obtenerAccesoriosDeTipo');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'codTipoAccesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_codTipoAccesorio));
    parameterParent.appendChild(paramEl);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}

function ArticulosWebServiceSoapHttpPort_modificarAccesorio(_cod_accesorio, _nombre, _descripcion, _foto, _precio, _alto, _ancho, _cod_tipo_accesorio, _cod_accesorio_talla) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'modificarAccesorio');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_accesorio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'nombre');
    paramEl.appendChild(xmlDoc.createTextNode(_nombre));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'descripcion');
    paramEl.appendChild(xmlDoc.createTextNode(_descripcion));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'foto');
    paramEl.appendChild(xmlDoc.createTextNode(_foto));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'precio');
    paramEl.appendChild(xmlDoc.createTextNode(_precio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'alto');
    paramEl.appendChild(xmlDoc.createTextNode(_alto));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'ancho');
    paramEl.appendChild(xmlDoc.createTextNode(_ancho));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_tipo_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_tipo_accesorio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_accesorio_talla');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_accesorio_talla));
    parameterParent.appendChild(paramEl);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_modificarAccesorioAsync(_cod_accesorio, _nombre, _descripcion, _foto, _precio, _alto, _ancho, _cod_tipo_accesorio, _cod_accesorio_talla, callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'modificarAccesorio');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_accesorio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'nombre');
    paramEl.appendChild(xmlDoc.createTextNode(_nombre));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'descripcion');
    paramEl.appendChild(xmlDoc.createTextNode(_descripcion));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'foto');
    paramEl.appendChild(xmlDoc.createTextNode(_foto));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'precio');
    paramEl.appendChild(xmlDoc.createTextNode(_precio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'alto');
    paramEl.appendChild(xmlDoc.createTextNode(_alto));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'ancho');
    paramEl.appendChild(xmlDoc.createTextNode(_ancho));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_tipo_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_tipo_accesorio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_accesorio_talla');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_accesorio_talla));
    parameterParent.appendChild(paramEl);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}

function ArticulosWebServiceSoapHttpPort_modificarTipoAccesorio(_cod_tipo_accesorio, _nombre, _descripcion) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'modificarTipoAccesorio');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_tipo_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_tipo_accesorio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'nombre');
    paramEl.appendChild(xmlDoc.createTextNode(_nombre));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'descripcion');
    paramEl.appendChild(xmlDoc.createTextNode(_descripcion));
    parameterParent.appendChild(paramEl);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_modificarTipoAccesorioAsync(_cod_tipo_accesorio, _nombre, _descripcion, callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'modificarTipoAccesorio');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_tipo_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_tipo_accesorio));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'nombre');
    paramEl.appendChild(xmlDoc.createTextNode(_nombre));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'descripcion');
    paramEl.appendChild(xmlDoc.createTextNode(_descripcion));
    parameterParent.appendChild(paramEl);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}

function ArticulosWebServiceSoapHttpPort_crearArticulo() {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'crearArticulo');
    body.appendChild(parameterParent);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_crearArticuloAsync(callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'crearArticulo');
    body.appendChild(parameterParent);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}

function ArticulosWebServiceSoapHttpPort_crearTipoAccesorio() {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'crearTipoAccesorio');
    body.appendChild(parameterParent);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_crearTipoAccesorioAsync(callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'crearTipoAccesorio');
    body.appendChild(parameterParent);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}

function ArticulosWebServiceSoapHttpPort_obtenerTallasDeAccesorio(_codAccesorio) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'obtenerTallasDeAccesorio');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'codAccesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_codAccesorio));
    parameterParent.appendChild(paramEl);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_obtenerTallasDeAccesorioAsync(_codAccesorio, callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'obtenerTallasDeAccesorio');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'codAccesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_codAccesorio));
    parameterParent.appendChild(paramEl);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}

function ArticulosWebServiceSoapHttpPort_crearAccesorio() {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'crearAccesorio');
    body.appendChild(parameterParent);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_crearAccesorioAsync(callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'crearAccesorio');
    body.appendChild(parameterParent);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}

function ArticulosWebServiceSoapHttpPort_modificarArticulo(_cod_articulo, _alto, _ancho, _cod_accesorio) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'modificarArticulo');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_articulo');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_articulo));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'alto');
    paramEl.appendChild(xmlDoc.createTextNode(_alto));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'ancho');
    paramEl.appendChild(xmlDoc.createTextNode(_ancho));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_accesorio));
    parameterParent.appendChild(paramEl);
    var responseDoc = invokeSync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc);
    var resultObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    return resultObj;
}

function ArticulosWebServiceSoapHttpPort_modificarArticuloAsync(_cod_articulo, _alto, _ancho, _cod_accesorio, callback) {
    var xmlDoc = createNewDocument();
    var envelope = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Envelope');
    xmlDoc.appendChild(envelope);
    var body = createElementNS(xmlDoc, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body');
    envelope.appendChild(body);
    var parameterParent = body;
    parameterParent = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'modificarArticulo');
    body.appendChild(parameterParent);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_articulo');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_articulo));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'alto');
    paramEl.appendChild(xmlDoc.createTextNode(_alto));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'ancho');
    paramEl.appendChild(xmlDoc.createTextNode(_ancho));
    parameterParent.appendChild(paramEl);
    var paramEl = createElementNS(xmlDoc, 'http://articulos.pancarta.com/', 'cod_accesorio');
    paramEl.appendChild(xmlDoc.createTextNode(_cod_accesorio));
    parameterParent.appendChild(paramEl);
    var resultsProcessor = function (responseDoc) {
    var resultsObj = null;
    body = firstChildElement(responseDoc.documentElement);
    if (localName(body) != 'Body') {
        body = nextSiblingElement(body);
    }

    var resultEl = firstChildElement(body);
    resultEl = firstChildElement(resultEl);
    resultObj =  getText(resultEl);
    callback(resultObj);
    }
    invokeAsync('http://www.pancarta.com/PancartaPuntoComEJB/ArticulosWebServiceSoapHttpPort/', xmlDoc, resultsProcessor);
}
