
            var http_request = false;
            function makeRequest(url,type) {
				  if(type=="smallpaper"){
					  lll.outerHTML="<p id='lll'>数据正在处理中........</p>";
				   }
				else if (type=="checknames"){
				   }  
				else{
					
				lll.outerHTML="<p id='kkk'>数据正在加载中........</p>";
				}
                http_request = false;
                if (window.XMLHttpRequest) { // Mozilla, Safari,...
                    http_request = new XMLHttpRequest();
                    if (http_request.overrideMimeType) {
                        http_request.overrideMimeType('text/xml');
                    }
                } else if (window.ActiveXObject) { // IE
                    try {
                        http_request = new ActiveXObject("Msxml2.XMLHTTP");
                    } catch (e) {
                        try {
                        http_request = new ActiveXObject("Microsoft.XMLHTTP");
                        } catch (e) {}
                    }
                }

                if (!http_request) {
                    alert('Giving up :( Cannot create an XMLHTTP instance');
                    return false;
                }
				if (type=="smallpaper"){
				   http_request.onreadystatechange = smallpapers;
				}
				else if (type=="checknames"){
				  http_request.onreadystatechange = checknames;
				   }  
				else {
                  http_request.onreadystatechange = alertContents;
				}
                http_request.open('GET', url, true);
                http_request.send(null);

            }

            function alertContents() {

                if (http_request.readyState == 4) {
                    if (http_request.status == 200) {
						//if(type=="smallpaper"){
					//lll.outerHTML=http_request.responseText;
						//}
						////else{
							kkk.outerHTML=http_request.responseText;
							//}
                    } else {
                       alert('系统繁忙,请您稍后再试.');
                    }
                }

            }
			 function smallpapers() {

                if (http_request.readyState == 4) {
                    if (http_request.status == 200) {
					    alert(http_request.responseText);
					    if(http_request.responseText=="该小纸条已成功删除"){
						makeRequest("backmybox.asp?ChenelFlag=smallpaper","Writer");
						}else{
					    makeRequest("backmybox.asp?ChenelFlag=smallpaperd","Writer");
						}
                    } else {
                        alert('系统繁忙,请您稍后再试.');
                    }
                }

            }
       			 function checknames() {

                if (http_request.readyState == 4) {
                    if (http_request.status == 200) {
					    usernameinfor.innerHTML=http_request.responseText;
						checkflag=http_request.responseText;
                    } else {
                        alert('系统繁忙,请您稍后再试.');
                    }
                }

            }