﻿

var xmlHttp;
var i=0;
function createXMLHttpRequest()
{

i++;
if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}else if(window.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();
}
}






var divv=null;
	var currentx=0;
	var currenty=0;
	var divwidth=200;
	var divheight=200;

    function showdiv(eve,cid){
      eve= eve || window.event;
        createXMLHttpRequest();
	    divv=document.getElementById("dd");
	    
		if(divv=="undefined"||divv==null){
	        divv=document.createElement("div");
	        divv.setAttribute("id","dd");
	       
	        
	        divv.style.zindex="1000";
			divv.style.width=divwidth;
			divv.style.height=divheight;
			var css="font:normal 12px/16px '宋体';width:110px;height:140px;text-align:center; white-space:nowrap; color:#f0ffff; padding:3px; position:absolute; left:0; top:0; z-index:1000; background:#f9fdfd; border:1px solid #0aa;";
			divv.style.cssText =css;
			divv.setAttribute("style",css);
			
	        divv.onlosecapture=function(){
			   divv.style.display="none";
			}
	        divv.style.position="absolute";
	        document.body.appendChild(divv);
		} 
		
		divv.style.display="";
		currentx=eve.clientX+document.documentElement.scrollLeft;
       currenty=eve.clientY+document.documentElement.scrollTop;
        
	   divv.style.top=currenty+"px";
	    divv.style.left=currentx+"px";
		
	      
	     xmlHttp.onreadystatechange =collback;
        xmlHttp.open("GET","./ajax.aspx?dt="+i+"&cid="+cid,true);
        xmlHttp.send(null);
		
	}



	function noshow(eve){
	  eve= eve || window.event;
	   var sx=parseInt(eve.clientX)+parseInt(document.documentElement.scrollLeft);
	   var sy=parseInt(eve.clientY)+parseInt(document.documentElement.scrollTop);
	   if(parseInt(sx)>(parseInt(currentx)+divwidth)||parseInt(sy)>(parseInt(currenty)+divheight)||parseInt(sx)<parseInt(currentx)||parseInt(sy)<parseInt(currenty)){
	     if(divv!="undefined"&&divv!=null){
	      document.getElementById("dd").style.display="none";
	      }
	   } 
	}


function collback(){


if(xmlHttp.readyState == 4){
  if(xmlHttp.status == 200){
  
    if(divv!="undefined"&&divv!=null){
      
       divv.innerHTML="<span  style='display:block; background-color:#e4e4e4;margin-top:-3px;margin-left:-2px;margin-right:-2px; padding-top:-3px;padding-left:-2px;padding-right: -2px;'><font size='2' fontname='宋体' color='red'><b>招 聘 岗 位</b></font></span>"+xmlHttp.responseText;
    }
  }
}
}
