<!--

window.onerror = killErrors; 
function killErrors() { return true; } 

var sId="";
//获取元素的纵坐标 
function getTop(e) 
{ 
var offset=e.offsetTop; 
if(e.offsetParent!=null) offset+=getTop(e.offsetParent);  
return offset; 
} 

//获取元素的横坐标
function getLeft(e) 
{ 
var offset=e.offsetLeft;  
if(e.offsetParent!=null) offset+=getLeft(e.offsetParent);  
return offset;  
}
/* 坐标模式 */

function MouseOverMap(x1,y1,x2,y2,id) {
  //New ADD
 // ax=parseInt(document.all.zbz.offsetLeft);
 // ay=parseInt(document.all.zbz.offsetTOP);
    var ax=0,ay=0;
	if((window.screen.width==1024)&&(window.screen.height==768))
	{
		ax=35;
		ay=33;
	}
	else if((window.screen.width==1152)&&(window.screen.height==864))
	{
		ax=99;
		ay=33;
	}
	else if((window.screen.width==1280)&&(window.screen.height==1024))
	{
		ax=170;
		ay=33;
	}
	else if((window.screen.width==1280)&&(window.screen.height==800))
	{
		ax=168;
		ay=33;
	}
	else if((window.screen.width==800)&&(window.screen.height==600))
	{
		ax=35;
		ay=33;
	}
	else if((window.screen.width==1440)&&(window.screen.height==900))
	{
		ax=229;
		ay=33;
	}
	else
	{
		//
		return;
	}
 ax=parseInt(getLeft(document.all.zbz));
 ay=parseInt(getTop(document.all.zbz));
  //END
  
	var divElm = document.getElementById("leveldiv");
	var Left =x1+ax; //位置
	var Top = y1+ay; //位置
	var Right = parseInt(x2 - x1);
	var bottom = parseInt(y2 - y1);
//alert("x:"+ax+"y:"+ay+"left:"+Left+"right:"+Top);	
	divElm.style.border = "solid 2px #FF0000";
	divElm.style.left = Left;
	divElm.style.top = Top;
	divElm.style.width = Right;
	divElm.style.height = bottom;
	divElm.style.cursor = "pointer";

	try{
		if (id!=""){
			sId=id;
			var titleElem = document.getElementById("title"+id.toString());
			titleElem.style.backgroundColor="#99ff99";
		}else{
			sId="";
		}
	}catch(e){
	  
  }
}

function MouseOutMap() {
  var divElm = document.getElementById("leveldiv");
  divElm.style.border = "";
  if (sId!=""){
  	var titleElem = document.getElementById("title"+sId.toString());
  	titleElem.style.backgroundColor="";
  	sId="";
  }
}

function js_callpage(htmlurl) { 
  var newwin=window.open(htmlurl,"newWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=140px,left=245px,width=502,height=400 "); 
  newwin.focus(); 
  return false; 
} 
//-->