﻿// JScript 文件

var x,y;
            function get_xy()
            {
                x=event.x;
                y=event.y;
            }
            document.onmousemove=get_xy;
           
            function aa(str){
                var xmlHttp;
                try{
                    xmlHttp=new XMLHttpReauest();
                    
                }
                catch(e){
                    try{
                        xmlHttp=new ActiveXObject("Msxml.XMLHTTP");
                        
                    }
                    catch(e){
                        try{
                         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                         }
                      catch (e){
                         alert("您的浏览器不支持AJAX！");
                         return false;
                         }

                    }
                }
                var newx=0,newy=0;
                
                xmlHttp.onreadystatechange=function()
                {
                if(newx==0||newy==0)
                {
                    
                    newx=x;
                    newy=y;
                    }
                    if(xmlHttp.readyState==4)
                    {
                        //document.form1.show_text.value=xmlHttp.responseText;
                       // document.getElementById("txt").innerHTML=xmlHttp.responseText;
                        //document.getElementById("txt").innerHTML="<img src='./image/40.gif'/>"
                        //document.getElementById("txt").innerHTML="";
                      var pup= window.createPopup();
                        var _pup=pup.document.body;
                        _pup.style.backgroundColor = "#94e6fa";
                        _pup.style.border="solid black 1px";
                        
                        _pup.innerHTML = xmlHttp.responseText;
                        
                        pup.show(newx,newy,300,300,document.body);
                        
                        newx=0;newy=0; 
                    }
                    else
                    {
                         
                        //document.getElementById("txt").innerHTML="<table width='300px' heigth='400px'><tr><td width='100%' heigth='100%' valign='middle' align='center'><img src='./image/40.gif'/></td></tr></table>"
                        var pup= window.createPopup();
                        var _pup=pup.document.body;
                        _pup.style.backgroundColor = "#94e6fa";
                        _pup.style.border="solid black 1px";
                        _pup.innerHTML = "<div heigth='100px'></div></br><div heigth='100px'></div></br><div heigth='100px'></div></br><div heigth='100px'></div></br><div heigth='100px'></div></br><div heigth='100px'></div></br><div width='100%' align='center' style='font-size:9pt'>数据加载中....</div></br><div width='100%' heigth='100%' valign='bottom' align='center'><img src='./images/40.gif'/></div>";
                        pup.show(newx,newy,300,300,document.body);
                    }
                }
                //alert(encodeURIComponent(str));
                var url="select_show.aspx?a="+str;
                xmlHttp.open("GET",url,true);
                xmlHttp.send(null);
            }
            
            
            function tiao(PID)
            {
                window.open("show_mess.aspx?ID="+PID);
                window.onerror=function(){return true};
            }