//-- 控制层移动start of script -->
var Obj=''
var index=10000;

function MDown(obj)
{
	if (Ym)clearTimeout(Ym);
	obj.setCapture();	
	obj.setCapture()
	px=obj.offsetLeft-event.x;
	py=obj.offsetTop-event.y;	
	obj.onmousemove=function()
	{
		if(obj)
		{
 			obj.style.left=event.x+px;
 			obj.style.top=event.y+py;
			
 		}
	}
	obj.onmouseup=function()
	{
		if (obj)
		{
			var p;
			if (window.innerHeight)p = window.pageYOffset;
  			else if (document.documentElement && document.documentElement.scrollTop)p = document.documentElement.scrollTop;
  			else if (document.body)p = document.body.scrollTop;
			theTop=obj.offsetTop-p;
			theTop=theTop<0?0:theTop;
			obj.releaseCapture();obj=null;initFloatTips();			
		}
	}
}

function switchTab(n,a,b){
	for(var i=a;i<=b;i++){
		if(i!=n ){
			eval("ContentBody"+n).style.display = "";
			eval("ContentBody"+i).style.display = "none";
			eval("ListTitle"+i).className = "LinkOff";
			eval("ListTitle"+n).className = "LinkOn";
		}
	}
}

<!-- 
//图片按比例缩放 
var flag=false; 
function DrawImage(ImgD,w,h){ 
 var image=new Image(); 
 var iwidth = w;
 var iheight = h;
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
 flag=true; 
 if(image.width/image.height>= iwidth/iheight){ 
  if(image.width>iwidth){   
  ImgD.width=iwidth; 
  ImgD.height=(image.height*iwidth)/image.width; 
  }else{ 
  ImgD.width=image.width;   
  ImgD.height=image.height; 
  }
  //ImgD.alt=image.width+"×"+image.height; 
  } 
 else{ 
  if(image.height>iheight){   
  ImgD.height=iheight; 
  ImgD.width=(image.width*iheight)/image.height;   
  }else{ 
  ImgD.width=image.width;   
  ImgD.height=image.height; 
  }
  //ImgD.alt=image.width+"×"+image.height; 
  } 
 } 
}  
//--> 


function showmenu(menuid)
{
whichEl = eval("menuid" + menuid);
if (whichEl.style.display == "none")
{eval("menuid" + menuid + ".style.display=\"\";");}
else
{eval("menuid" + menuid + ".style.display=\"none\";");
}
}

function newin(fname,w,h){
var win = null;
var myname="";
var scroll="yes";
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(fname,myname,settings)
}