//容错脚本
/*function killErrors() {
 return true;
 }
window.onerror = null;

//鼠标右键绝对禁止法
if (window.Event) 
document.captureEvents(Event.MOUSEUP); 
function nocontextmenu() 
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e) 
{
if (window.Event) 
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
*/

//文章内容字体控制
var initial_fontsize    = 10;
var initial_lineheight  = 18;
function newasp_fontsize(type,objname){
	var whichEl = document.getElementById(objname);
	if (whichEl!=null) {
		if (type==1){
			if(initial_fontsize<64){
				whichEl.style.fontSize=(++initial_fontsize)+'pt';
				whichEl.style.lineHeight=(++initial_lineheight)+'pt';
			}
		}else {
			if(initial_fontsize>8){
				whichEl.style.fontSize=(--initial_fontsize)+'pt';
				whichEl.style.lineHeight=(--initial_lineheight)+'pt';
			}
		}
	}
}
var Obj='' 
document.onmouseup=MUp 
document.onmousemove=MMove

function MDown(Object){ 
Obj=Object.id 
document.all(Obj).setCapture() 
pX=event.x-document.all(Obj).style.pixelLeft; 
pY=event.y-document.all(Obj).style.pixelTop; 
}

function MMove(){ 
if(Obj!=''){ 
document.all(Obj).style.left=event.x-pX; 
document.all(Obj).style.top=event.y-pY; 
} 
}

function MUp(){ 
if(Obj!=''){ 
document.all(Obj).releaseCapture(); 
Obj=''; 
} 
} 

