function playsong()
{
window.open("about:blank","playsong","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=10,left=10,width=500,height=460");
}
function open_window(url,windowname,size) 
{ 
window.open(url,windowname,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=10,left=10,"+ size); 
}
 
function CheckOthers(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
//		if (e.name != 'chkall')
			if (e.checked==false)
			{
				e.checked = true;// form.chkall.checked;
			}
			else
			{
				e.checked = false;
			}
	}
}

function CheckAll(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
//		if (e.name != 'chkall')
			e.checked = true// form.chkall.checked;
	}
}


//打开新窗口
function dakai(ListenURL, WinName)
{
		window.open(ListenURL, "163rm", "marginheight=0 marginwdith=0,toolbar=no,width=485,height=460,directories=no,title=no,status=no,scrollbars=no,resizable=no,menubar=no");
		return false;
}


function LRC(LRCOPEN)
{
		window.open(LRCOPEN, "LRC", "marginheight=0 marginwdith=0,toolbar=no,width=485,height=460,directories=no,title=no,status=no,scrollbars=no,resizable=no,menubar=no");
		return false;
}

function PL(LRCOPEN)
{
		window.open(LRCOPEN, "PL", "marginheight=0 marginwdith=0,toolbar=no,directories=no,title=yes,status=no,scrollbars=yes,resizable=no,menubar=no,width=616,height=600");
		return false;
}

function SC(usersc)
{
		window.open(usersc, "qqrm", "marginheight=0 marginwdith=0,toolbar=yes,directories=yes,title=yes,status=yes,scrollbars=yes,resizable=yes,menubar=yes");
		return false;
}


function mmss(mmss)
        {
window.open(mmss, "mmss", "marginheight=0 marginwdith=0,toolbar=no,width=300,height=300,directories=no,title=no,status=no,scrollbars=no,resizable=no,menubar=no");
		return false;
	}
//-->
//song and copy；
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function JM_cc(ob)
{
var obj=MM_findObj(ob);
if (obj)
{
obj.select();js=obj.createTextRange();js.execCommand("Copy");}
alert("复制成功，快捷键CTRL+V 粘帖发送给多个好友,谢谢!");
}
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;
}
//-->
//Navigator浏览器兼容函数；
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
//复制URL地址
document.write("<input type=hidden name=\"textarea1\" value='" + document.location.href +"' onclick='this.select();' size=\"15\" style=\"color: #0000ff; border: 1px solid #999999\" onMouseover=\"right_button='yes';\" onMouseOut=\"right_button='no';\">");
//-->
//表单
function checkadd()
{
if(document.postart.exname.value.length<1)
  {
  alert("因快递须要,请填写姓名！");
  document.postart.exname.focus();
  return false;
  }
  if(document.postart.exdh.value.length<1)
  {
  alert("因快递须要,请留下你的联系电话号码！");
  document.postart.exdh.focus();
  return false;
  }
  if(document.postart.exdz.value.length<1)
  {
  alert("因快递须要,请留下你的联系地址！");
  document.postart.exdz.focus();
  return false;
  }
  if(document.postart.Content.value.length<1)
  {
  alert("还没有输入舞曲编号");
  document.postart.Content.focus();
  return false;
  }
  if(document.postart.randm1.value.length<1)
  {
  alert("还没有输入验证码,请输入右边随机的八位验证码！");
  document.postart.randm1.focus();
  return false;
  }
}
//-->