function addImgLink(divID) {
	var msgarea = getbyid(divID);
	var imgs = msgarea.getElementsByTagName('img');
	for (i=0; i<imgs.length; i++) {
		if (imgs[i].parentNode.tagName.toLowerCase() != 'a') {
			imgs[i].setAttribute('alt','Click the picture to open in a new window:'+imgs[i].getAttribute("alt")); 
			imgs[i].style.cursor = 'hand';
			//imgs[i].onload = function() {if(this.width >630) {this.resized=true; this.width=630;}
			imgs[i].onclick = function() { window.open("http://www.nds9.com/v1/showpic.html?pic="+escape(this.src)); }
			if(imgs[i].width >600) {imgs[i].resized=true; imgs[i].width=600; }
		}
	}
}


function getbyid(id) {
	if (document.getElementById) {
		return document.getElementById(id);
	} else if (document.all) {
		return document.all[id];
	} else if (document.layers) {
		return document.layers[id];
	} else {
		return null;
	}
}
<!--
var bai_key='';
function copyToClipBoard(){
	var clipBoardContent=document.location; 
	clipBoardContent+='\nTo recommend to you an article!';
	window.clipboardData.setData("Text",clipBoardContent);
	alert("Copy success");
}
function killErrors() {
return true;
}
window.onerror = killErrors;
-->

document.body.oncopy = function () { 
	setTimeout( function () { 
		var text = clipboardData.getData("text");
		if (text) { 
			text = text + "\r\n本文转自NDS9(http://www.nds9.cn 详文："+location.href; clipboardData.setData("text", text);
		} 
	}, 100 ) 
}
