/*
 *this file is part of nseer erp
 *Copyright (C)2006-2010 Nseer(Beijing) Technology co.LTD/http://www.nseer.com 
 *
 *This program is free software; you can redistribute it and/or
 *modify it under the terms of the GNU General Public License
 *as published by the Free Software Foundation; either
 *version 2 of the License, or (at your option) any later version.
 */
function register(tag){
    if(tag=='1'){
        var xmlhttp;
        if(window.XMLHttpRequest){
            xmlhttp=new XMLHttpRequest();
        }else if (window.ActiveXObject){
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }if(xmlhttp) {
            xmlhttp.onreadystatechange = function() {
                if(xmlhttp.readyState==4){
                    try {
                        if(xmlhttp.status==200){
                        }else {
                            alert( xmlhttp.status + '=' + xmlhttp.statusText);
                        }
                        } catch(exception) {
                        alert(exception);
                    }
                    }
                };
            xmlhttp.open("POST", "../../erpPlatform_release_register_ok", true);
            xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
            xmlhttp.send('param1='+encodeURI(param1)+'&search_tag='+encodeURI(search_tag));
        }
    }
}
