function copyText(obj)   
{
//点击复制<span>中的文本，比如：<span id="tbid">http://www.ec666.com</span>[<a href="#" onclick="copyText(document.all.tbid)">点击复制</a>]
var rng = document.body.createTextRange(); 
rng.moveToElementText(obj); 
rng.scrollIntoView(); 
rng.select(); 
rng.execCommand("Copy"); 
rng.collapse(false);
alert("复制成功!"); 
} 


function cls(){ 
	//鼠标移到文本框后，文本框中原来的文字自动清空
//捕获触发事件的对象，并设置为以下语句的默认对象 
with(event.srcElement) 
    //如果当前值为默认值，则清空 
if(value==defaultValue) value="" 
} 
function res(){ 
//捕获触发事件的对象，并设置为以下语句的默认对象 
with(event.srcElement) 
//如果当前值为空，则重置为默认值 
if(value=="") value=defaultValue 
} 

//删除前再确认一次，可用于form表单，也可用于超链接
function ConfirmDel()
{
	if(!confirm('确定要删除选中的新闻吗？一旦删除将不能恢复！')) return false; 
}

//提交批处理前再确认一次，可用于form表单，也可用于超链接
function ConfirmPass()
{
	if(!confirm('确定要审核通过选中的图片吗？一旦通过将不能恢复！')) return false; 
}

function Check(){
//当用户点击验证按钮后，可以对用户输入的注册名进行验证
var Name=document.UserReg.UserName.value;

	if (Name.length==0 || Name=="") 
	{
		alert("请输入用户ID");
		document.UserReg.UserName.focus();
		return;
	}
	//eval("window.checkID.style.display='';");
	eval("zjmRegIDD.style.display=\"\";");
	//document.checkID.style.display="";
	window.checkID.location.href="../inc/UserNameCheck.php?menu=Check&usernameSub="+Name;
}

//下拉菜单选中后实现页面跳转
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//==鼠标移到缩略图上时，自动弹出放大图==
var width = 360; //设置显示图片 宽

	var height = 360; // 设置显示图片 高



	function init(){

	document.all.im.width=width;

	document.all.im.width=height;

	}



	function a(e){

	document.all.im.src=e.src;

	document.all.d.style.left = event.x;

	document.all.d.style.top = event.y;

	document.all.d.style.display = "";

	}



	function b(){

	document.all.d.style.left = 0;

	document.all.d.sytle.top = 0;

	document.all.d.style.display = "none";

	}
	//==鼠标移到缩略图上时，自动弹出放大图完==


