<!-- 
//菜单背景颜色
function onme(object){
object.style.background="#DBDFF0";}
function outme(object){
object.style.background="#E7EAF5";}
// 音乐连播、弹窗函数
function musiclrc(id)
{
window.open("MusicLrc.asp?music_id="+id,"musiclrc","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=0,left=0,height=480,width=500");
}
function lbmusic()
{
window.open("about:blank","lbmusic","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=0,left=0,width=322,height=364");
}
function CheckOthers(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			if (e.checked==false)
			{
				e.checked = true;
			}
			else
			{
				e.checked = false;
			}
	}
}
function lbmtv()
{
window.open("about:blank","lbmtv","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=0,left=0,width=350,height=345");
}
function CheckOthers(form)
{
	for (var p=0;p<form.elements.length;p++)
	{
		var m = form.elements[p];
			if (m.checked==false)
			{
				m.checked = true;
			}
			else
			{
				m.checked = false;
			}
	}
}

function CheckAll(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			e.checked = true
	}
}

function CheckPlayer()
{
	alert(document.form.checked.value);
}

function showword(openurl)
{
//var controlWindow=window.open(openurl,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=350,height=250");

}
function plays(openurl)
{
//var controlWindow=window.open(openurl,"dgplays","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=137");
}
// 字体大小
function ContentSize(size)
{
var webobj=document.getElementById("size");
webobj.style.fontSize=size+"px";
}
// 复制文本
function copyText(webobj) 
{
var rng = document.body.createTextRange();
rng.moveToElementText(webobj);
rng.scrollIntoView();
rng.select();
rng.execCommand("Copy");
rng.collapse(false);
}
// 复制网址
function copyUrl(webobj) 
{
var rng = document.body.createTextRange();
rng.moveToElementText(webobj);
rng.scrollIntoView();
rng.select();
rng.execCommand("Copy");
rng.collapse(false);
alert("复制成功，请把此网址在你喜欢的论坛或QQ里面发给你的朋友！");
}
//友情连接检查开始
function checklink()
{
//检查用户名
if(document.all.username.value.length!=0)
   {
   if(document.all.username.value.length>12 || document.all.username.value.length<2 || document.all.username.value.search(/^[0-9a-zA-Z\u4e00-\u9fa5]+$/)==-1)
   {
   alert("用户名只可以是中文且不能大于12或小于2个汉字！");
   document.all.username.focus();
   return false;}
   }
 else
  {
   alert("用户名不能为空！");
   document.all.username.focus();
   return false;
   }
//检查密码
if(document.all.userkey.value.length!=0 || document.all.userkey2.value.length!=0)
   {
   if(document.all.userkey.value.length<6 || document.all.userkey2.value.length<6 || document.all.userkey.value.search(/^[0-9a-zA-Z\u4e00-\u9fa5]+$/)==-1 || document.all.userkey2.value.search(/^[0-9a-zA-Z\u4e00-\u9fa5]+$/)==-1 || document.all.userkey2.value != ""+ document.all.userkey.value +"")
   {
   alert("用户密码不能有特殊字符且字符数不能小于6！\n\n也许你两次输入的密码不一致！");
   document.all.userkey.focus();
   return false;}
   }
 else
  {
   alert("两次输入的用户密码不能为空！");
   document.all.userkey.focus();
   return false;
   }
//检查网站名称
if(document.all.webname.value.length!=0)
   {
   if(document.all.webname.value.length<3 || document.all.webname.value.length>20)
   {
   alert("网站名称字符数不能小于3且不能大于20！");
   document.all.webname.focus();
   return false;}
   }
 else
  {
   alert("网站名称不能为空！");
   document.all.webname.focus();
   return false;
   }
//检查网站地址
if(document.all.weburl.value.length!=0)
   {
   if(document.all.weburl.value.length<8 || document.all.weburl.value.length>30)
   {
   alert("网站地址字符数不能小于8且不能大于30！");
   document.all.weburl.focus();
   return false;}
   }
 else
  {
   alert("网站地址不能为空！");
   document.all.weburl.focus();
   return false;
   }
//检查LOGO地址
if(document.all.type.value == "1")
   {
   if(document.all.weblogo.value.length<8 || document.all.weblogo.value.length>50)
   {
   alert("你选择了LOGO连接，\n\nLOGO地址字符数不能小于8且不能大于50！\n\n而且必须以.gif或.jpg结束！");
   document.all.weblogo.focus();
   return false;}
   }
if(document.all.type.value == "2")
   {
   if(document.all.weblogo.value.length>7)
   {
   alert("你选择了文字连接，\n\n文字连接不需要输入LOGO图片地址！");
   document.all.weblogo.focus();
   return false;}
   }
 //检查Email地址
 if(document.all.useremail.value.length!=0)
  {
    if (document.all.useremail.value.charAt(0)=="." ||        
         document.all.useremail.value.charAt(0)=="@"||       
         document.all.useremail.value.indexOf('@', 0) == -1 || 
         document.all.useremail.value.indexOf('.', 0) == -1 || 
         document.all.useremail.value.lastIndexOf("@")                        　　
  　   ==document.all.useremail.value.length-1 || 
         document.all.useremail.value.lastIndexOf(".")
              ==document.all.useremail.value.length-1)
     {
      alert("Email地址格式不正確！");
      document.all.useremail.focus();
      return false;
      }
   }
 else
  {
   alert("Email地址不能为空！");
   document.all.useremail.focus();
   return false;
   }

 //检查验证码checkcode
if(document.all.checkcode.value.length!=0)
   {
   if(document.all.checkcode.value != ""+ document.all.checkcode2.value +"")
   {
   alert("你输入的验证码不对！");
   document.all.checkcode.focus();
   return false;}
   }
 else
  {
   alert("验证码不能为空！");
   document.all.checkcode.focus();
   return false;
   }
 return false;
}
//输入框只能输入数字
function OnlyNumber()
{
if ( !(((window.event.keyCode >= 48) && (window.event.keyCode <= 57)) 
|| (window.event.keyCode == 13) || (window.event.keyCode == 46) 
|| (window.event.keyCode == 45)))
{
alert("输入无效,只能输入数字!");
window.event.keyCode = 0 ;
}
} 
//复制文本框字符串代码
function CopyCodes(ob){
var obj=MM_findObj(ob); 
if (obj) { 
obj.select();
js=obj.createTextRange();
js.execCommand("Copy");
alert("成功复制到你的剪贴板，你可以直接粘贴！");
}
}
function MM_findObj(n, d) { //v4.0
  var p,i,x; 
  if(!d) d=document; 
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
//载入页面时等候
ie4=(document.all)?true:false;
ns4=(document.layers)?true:false;
function WaitPlease(){
var args=WaitPlease.arguments;
var visible=args[0];
if(ns4){
        theObj=eval("document.layers[\'"+args[1]+"\']");
        if(theObj)theObj.visibility=visible;
        }
else if(ie4){
        if(visible=='show')visible='visible';
        if(visible=='hide')visible='hidden';
        theObj=eval("document.all[\'"+args[1]+"\']");
        if(theObj)theObj.style.visibility=visible;
        }
} 

 //音乐或专辑评论检查
function check_view()
{
//检查姓名
if(document.all.viewname.value.length!=0)
   {
   if(document.all.viewname.value.length>12 || document.all.viewname.value.length<2 || document.all.viewname.value.search(/^[0-9a-zA-Z\u4e00-\u9fa5]+$/)==-1)
   {
   alert("姓名只可以用中文且不能大于12或小于4！");
   document.all.viewname.focus();
   return false;}
   }
 else
  {
   alert("姓名不能为空！");
   document.all.viewname.focus();
   return false;
   }

if(document.all.viewword.value.length!=0)
   {
   if(document.all.viewword.value.length>100 || document.all.viewword.value.length<2)
   {
   alert("你还没正确编写留言！");
   document.all.viewword.focus();
   return false;}
   }
 else
  {
   alert("留言不能为空！");
   document.all.viewword.focus();
   return false;
   }

//检查Email地址
 if(document.all.viewemail.value.length!=0)
  {
    if (document.all.viewemail.value.charAt(0)=="." ||        
         document.all.viewemail.value.charAt(0)=="@"||       
         document.all.viewemail.value.indexOf('@', 0) == -1 || 
         document.all.viewemail.value.indexOf('.', 0) == -1 || 
         document.all.viewemail.value.lastIndexOf("@")                        　　
  　   ==document.all.viewemail.value.length-1 || 
         document.all.viewemail.value.lastIndexOf(".")
              ==document.all.viewemail.value.length-1)
     {
      alert("你可以不填Email地址,要填的话格式一定要正確！");
      document.all.viewemail.focus();
      return false;
      }
   }
//检查验证码checkcode
if(document.all.checkcode.value.length!=0)
   {
   if(document.all.checkcode.value != ""+ document.all.checkcode2.value +"")
   {
   alert("你输入的验证码不对！");
   document.all.checkcode.focus();
   return false;}
   }
 else
  {
   alert("验证码不能为空！");
   document.all.checkcode.focus();
   return false;
   }
}
//执行危险动作时进行确认
function YouTrue(msg)
{
if(confirm(msg)==true){return true;}else{return false;}
return false;
}
