<!--空链接-->
function blank() {}
<!--链接开启新窗口-->
function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}
window.onload = externalLinks;

<!--弹出窗口-->
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
}

<!--取消选择-->
function unselectall(){
  if(document.getElementById("mainform").chkAll.checked){
 document.getElementById("mainform").chkAll.checked = document.getElementById("mainform").chkAll.checked&0;
    }
}

<!--选择全部-->
function CheckAll(form){
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.Name != 'chkAll'&&e.disabled==false)
       e.checked = form.chkAll.checked;
    }
  }

<!--增加表单高度-->
function contentSize(num,objname)
{
	var obj=document.getElementById(objname)
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;	
	}
	if (num>0)
	{
		obj.width="90%";
	}
	document.getElementById("panel").style.height=document.getElementById("main").scrollHeight+"px"
}

<!--转向链接-->
function showdetail(){
if (document.getElementById("mainForm").uselink.checked == true) {
	document.getElementById("newsdetail").style.display = "none";
	document.getElementById("mainForm").linker.disabled=false;
	document.getElementById("linktext").innerText="关闭转向链接";
}else{
	document.getElementById("newsdetail").style.display = "";
	document.getElementById("mainForm").linker.disabled=true;
	document.getElementById("linktext").innerText="使用转向链接";
}
}

<!--开启窗口-->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

<!--动画广告-->
function flash(url,width,height){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">')
	document.write('<param name="movie" value="'+url+'" />')
	document.write('<param name="quality" value="high" />')
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>')
	document.write('</object>')
}

<!--弹出帮助内容-->
function helpscript(n){
	var cont
	bodyTag="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<style type=\"text/css\">\nbody{boder:0px;background:#FFFFFF;font-family: Arial, Helvetica, sans-serif,\"宋体\";font-size:12px;}\n.quote{margin:5px 20px;border:1px solid #CCCCCC;padding:5px; background:#F3F3F3;}\n.HtmlCode{margin:5px 20px;border:1px solid #CCCCCC;padding:5px;background:#FDFDDF;font-size:14px;font-family:Tahoma;font-style:oblique;line-height:normal ;font-weight:bold;}\n</style>\n</head>\n<body>\n";
	cont=n;
	preWin=window.open('view','','toolbar=no,menubar=no,scrollbars=no, resizable=1, location=no, status=no,top=0,left=0,width=500,height=300');
	preWin.document.open();
	preWin.document.write(bodyTag);
	preWin.document.write("<div>\n");
	preWin.document.write(cont.value)
	preWin.document.write("\n</div>\n</body>\n</html>");
	preWin.document.close();
	preWin.document.title="view";
	preWin.document.charset="UTF-8";
}

<!--图片选择-->
function ShowImg(ImgUrl,title){
var aaa=document.getElementById("ShowPic");
  	aaa.src=ImgUrl;
document.getElementById("des").innerHTML=title;
}
