function check(){
   
   if (document.myform.word.value.length>301){
        
		alert("最多可输入300个字");
		document.myform.word.focus()
	  return false
 
   }

}
 function valid_search2(){

 if(  document.searchview.d1.value=="all" && document.searchview.d2.value=="all" && (document.searchview.c.value.length==""||document.searchview.c.value=="城市") && (document.searchview.t1.value.length==""||document.searchview.t1.value=="关键字"))
    {window.alert("对不起，地区、类型、城市、关键字，请至少选择或输入一项进行查询！");
       document.searchview.t1.focus();
       return false;
      } ;
}

function search40()
{
window.open("http://www.baidu.com/baidu?ie=gb2312&bs=&sr=&z=&ct=1048576&cl=3&f=8&word="+form1.word2.value)
return false;
}




function search4()
{
if(form1.abc0.checked)
   window.open("http://www.easysea.com/cy/?keyword="+form1.key.value,"mspg0");
if(form1.abc1.checked)
   window.open("http://www.easysea.com/cd/?keyword="+form1.key.value,"mspg1");
return false;   
}


function moveover(txt)

{

window.status = txt;

}



function fillitin(Name, AtomicNumber,AtomicWeight, Shells, FillingOrbital, MeltingPoint, BoilingPoint)

{

moveover(Name);

document.PeriodicTable.Name.value=Name;

document.PeriodicTable.AtomicNumber.value=AtomicNumber;

document.PeriodicTable.AtomicWeight.value=AtomicWeight;

document.PeriodicTable.Shells.value=Shells;

document.PeriodicTable.FillingOrbital.value=FillingOrbital;

document.PeriodicTable.MeltingPoint.value=MeltingPoint;

document.PeriodicTable.BoilingPoint.value=BoilingPoint;

}



function checkThis()
  {
  if (document.form1.word.value == "")
    {
    alert("请输入查询的文字！");
    document.form1.word.focus();
    }
  else
    document.form1.submit()
  }

//学历查询函数

	function checkformXueLi(){
		if(isEmpty(formXueLi.ZSBH.value,"\u8bc1\u4e66\u7f16\u53f7")){return false;}
		if(isEmpty(formXueLi.XM.value,"\u59d3\u540d")){return false;}
		if(isEmpty(formXueLi.QueryID.value,"\u67e5\u8be2\u7801")){return false;}
		if(isEmpty(formXueLi.CHKNUM.value,"\u9a8c\u8bc1\u7801")){return false;}

		//\u8fdb\u4e00\u6b65\u6821\u9a8c\u5404\u4e2a\u9879\u7684\u503c
		if(!isChinese(formXueLi.XM.value)){
			alert("\u59d3\u540d\u5fc5\u987b\u662f\u4e2d\u6587\u5b57\u7b26\uff0c\u8bf7\u6838\u5b9e\u540e\u91cd\u8bd5!");
			return false;
		}
		if(!isZSBH(formXueLi.ZSBH.value)){
			alert("\u8bc1\u4e66\u7f16\u53f7\u4e0d\u7b26\u5408\u89c4\u8303\uff0c\u8bf7\u6838\u5b9e\u540e\u91cd\u8bd5!");
			return false;
		}
		if(!isNumber_Ex(formXueLi.CHKNUM.value,4)){
			alert("\u9a8c\u8bc1\u7801\u5fc5\u987b\u4e3a\u56db\u4f4d\u6570\u5b57\uff0c\u8bf7\u6838\u5b9e\u540e\u91cd\u8bd5!");
			return false;
		}
		return true;
	}


/*
\u5224\u65ad\u6307\u5b9a\u7684\u5185\u5bb9\u662f\u5426\u4e3a\u7a7a\uff0c\u82e5\u4e3a\u7a7a\u5219\u5f39\u51fa \u8b66\u544a\u6846
*/
function isEmpty(theValue, strMsg){
  if(theValue==""){
    alert(strMsg+"\u4e0d\u80fd\u4e3a\u7a7a!");
    return true;
  }
  return false;
}
/*
\u4e2d\u6587\u5224\u65ad\u51fd\u6570\uff0c\u5141\u8bb8\u751f\u50fb\u5b57\u7528\u82f1\u6587\u201c*\u201d\u4ee3\u66ff
\u8fd4\u56detrue\u8868\u793a\u662f\u7b26\u5408\u6761\u4ef6\uff0c\u8fd4\u56defalse\u8868\u793a\u4e0d\u7b26\u5408
*/
function isChinese(str){
                var badChar ="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
                badChar += "abcdefghijklmnopqrstuvwxyz";
                badChar += "0123456789";
                badChar += " "+"\u3000";//\u534a\u89d2\u4e0e\u5168\u89d2\u7a7a\u683c
                badChar += "`~!@#$%^&()-_=+{[}]\\|:;\"\'<,>?/";//\u4e0d\u5305\u542b*\u6216.\u7684\u82f1\u6587\u7b26\u53f7
                if(""==str){
                                return false;
                }
                for(var i=0;i<str.length;i++){
                                var c = str.charAt(i);//\u5b57\u7b26\u4e32str\u4e2d\u7684\u5b57\u7b26
                                if(badChar.indexOf(c) > -1){
                                                return false;
                                }
                    }
                return true;
}
/*
\u6570\u5b57\u5224\u65ad\u51fd\u6570\uff0c\u8fd4\u56detrue\u8868\u793a\u662f\u5168\u90e8\u6570\u5b57\uff0c\u8fd4\u56defalse\u8868\u793a\u4e0d\u5168\u90e8\u662f\u6570\u5b57
*/
function isNumber(str){
    if(""==str){
		return false;
    }
    var reg = /\D/;
    return str.match(reg)==null;
}

/*
\u5224\u65ad\u7ed9\u5b9a\u7684\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u6307\u5b9a\u957f\u5ea6\u7684\u6570\u5b57
\u662f\u8fd4\u56detrue\uff0c\u4e0d\u662f\u8fd4\u56defalse
*/
function isNumber_Ex(str,len){
    if(""==str){
		return false;
    }

	if(str.length!=len){
		return false;
	}

    if(!isNumber(str)){
		return false;
    }
    return true;
}

/*
money\u5224\u65ad\u51fd\u6570\uff0c\u5141\u8bb8\u7b2c\u4e00\u4f4d\u4e3a"-"\u6765\u8868\u793a\u6b20\u94b1
\u8fd4\u56detrue\u8868\u793a\u683c\u5f0f\u6b63\u786e\uff0c\u8fd4\u56defalse\u8868\u793a\u683c\u5f0f\u9519\u8bef
*/
function isMoney(str){
                if(""==str){
                                return false;
                }
                for(var i=0;i<str.length;i++){
                                var c = str.charAt(i);
                                if(i==0){
                                                if(c!="-"&&(c<"0"||c>"9")){
                                                                return false;
                                                }else if(c=="-"&&str.length==1){
                                                                return false;
                                                }
                                }else if(c < "0" || c > "9"){
                                                return false;
                                }
                }
                return true;
}
/*
\u82f1\u6587\u5224\u65ad\u51fd\u6570\uff0c\u8fd4\u56detrue\u8868\u793a\u662f\u5168\u90e8\u82f1\u6587\uff0c\u8fd4\u56defalse\u8868\u793a\u4e0d\u5168\u90e8\u662f\u82f1\u6587
*/
function isLetter(str){
                if(""==str){
                                return false;
                }
                for(var i=0;i<str.length;i++){
                                var c = str.charAt(i);
                                if((c<"a"||c>"z")&&(c<"A"||c>"Z")){
                                                return false;
                                }
                }
                return true;
}
/*
\u7a7a\u683c\u5224\u65ad\uff0c\u5f53\u5305\u542b\u6709\u7a7a\u683c\u8fd4\u56defalse\uff0c\u5f53\u4e0d\u5305\u542b\u4e00\u4e2a\u7a7a\u683c\u8fd4\u56detrue
""\u4e0d\u80fd\u88ab\u5224\u65ad
*/
function notInSpace(str){
                if(""==str){
                                return false;
                }
                var badChar =" ";
                badChar += "\u3000";
                for(var i=0;i<str.length;i++){
                                var c = str.charAt(i);//\u5b57\u7b26\u4e32str\u4e2d\u7684\u5b57\u7b26
                                if(badChar.indexOf(c) > -1){
                                                return false;
                                }
                    }
                return true;
}
/*
\u53d1\u7968\u53f7\u5224\u65ad\u51fd\u6570\uff0c\u8fd4\u56detrue\u8868\u793a\u662f\u53d1\u7968\u53f7\uff0c\u8fd4\u56defalse\u8868\u793a\u4e0d\u7b26\u5408\u89c4\u8303
*/
function isFPH(str){
                if(""==str){
                                return false;
                }
                for(var i=0;i<str.length;i++){
                                var c = str.charAt(i);
                                if((c < "0" || c > "9") && (c!="-")&&(c!=",")){
                                                return false;
                                }
                }
                return true;
}
/*
\u7535\u8bdd\u5224\u65ad\u51fd\u6570\uff0c\u5141\u8bb8\u201c\u6570\u5b57\u201d\u3001\u201c;\u201d\u3001\u201c-\u201d\u3001\u201c(\u201d\u3001\u201d)\u201c\uff0c
true\u8868\u793a\u662f\u7535\u8bdd\u53f7\u7801
*/
function isTelephone(str){
                var trueChar = "()-;1234567890";
                if(""==str){
                                return false;
                }
                for(var i=0;i<str.length;i++){
                        var c = str.charAt(i);//\u5b57\u7b26\u4e32str\u4e2d\u7684\u5b57\u7b26
                        if(trueChar.indexOf(c) == -1) return false;
                }
                return true;
}
/**
\u5b66\u5236\u53ef\u4ee5\u4e3a1-7\uff0c\u4e5f\u53ef\u4ee5\u4e3a3.5\u8fd9\u79cd\u5f62\u5f0f\uff0c\u4e0d\u80fd\u8d85\u8fc77\u5e74\u6216\u8005\u4f4e\u4e8e1\u5e74
*/
function isXZ(str){
                if(""==str){
                        return false;
                }
                var reg = /^[1-6](\.5)?$/;
                var r = str.match(reg);
                 if(null!=r){
                         return true;
                 }else{
                         if(str=="7"){
                                 return true;
                         }else{
                                 return false;
                         }
                 }
}

/*
\u5224\u65ad\u8bc1\u4e66\u7f16\u53f7\u662f\u5426\u7b26\u5408\u8981\u6c42\uff0c\u8bc1\u4e66\u7f16\u53f7\u5305\u542b\u4e2d\u6587\u3001\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u3001(\u3001)\u3001-
\u662f\u8fd4\u56detrue\uff0c\u4e0d\u662f\u8fd4\u56defalse
*/
function isZSBH(str){
                if(""==str){
                                return false;
                }
                for(var i=0;i<str.length;i++){
                                var c = str.charAt(i);
                                alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
                                alpha += "abcdefghijklmnopqrstuvwxyz";
                                alpha += "()-";
                                if(!isChinese(c)&&!isNumber(c)&&alpha.indexOf(c)==-1){
                                                return false;
                                }
                }
                return true;
}

/*
\u8eab\u4efd\u8bc1\u5224\u65ad\u51fd\u6570\uff0c\u662f\u8fd4\u56detrue\uff0c\u4e0d\u662f\u8fd4\u56defalse
15\u4f4d\u6570\u5b57\uff0c18\u4f4d\u6570\u5b57\u6216\u8005\u6700\u540e\u4e00\u4f4d\u4e3aX\uff08\u5927\u5199\uff09
*/
function isSFZ(str){
                if(""==str){
                                return false;
                }
                if(str.length!=15&&str.length!=18){//\u8eab\u4efd\u8bc1\u957f\u5ea6\u4e0d\u6b63\u786e
                                return false;
                }
                if(str.length==15){
                                if(!isNumber(str)){
                                                return false;
                                }
                }else{
                                str1 = str.substring(0,17);
                                str2 = str.substring(17,18);
                                alpha = "X0123456789";
                                if(!isNumber(str1)||alpha.indexOf(str2)==-1){
                                                return false;
                                }
                }
                return true;
}
/*
\u5f97\u5230\u4eca\u5929\u7684\u5e74,\u6708,\u65e5
\u8c03\u7528\u65b9\u6cd5\uff1atoday = new getToday(); \u5219today.year\u4e3a\u4eca\u5929\u7684\u5e74\u4ee5\u6b64\u7c7b\u63a8
*/
function getToday(){
        this.now = new Date();
        this.year = this.now.getFullYear();
        this.month = this.now.getMonth();
        this.day = this.now.getDate();
}

//检查输入
function zuoche_CheckSearchInput(the)
{
	if(null==the)
		the=window.event.srcElement;

	if(the.s.value.length<2 || "请输入出发地"==the.s.value)
	{
		alert("请输入出发地");
		the.s.focus();
		return false;
	}
	if(the.t.value.length<2 || "请输入目的地"==the.t.value)
	{
		alert("请输入目的地");
		the.t.focus();
		return false;
	}
	return true;
}



function jumpMenu(targ,selObj,restore){
  window.open(selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}

//--> 
<!--
function myclear3()  {

 document.form3.PhoneNo.focus();
 
// alert(document.form3.PhoneNo.value);
 
  if (document.form3.PhoneNo.value == '请填写手机号码办理自助业务')
      document.form3.PhoneNo.value='';
}

function mytest2() {

var b=0;

  if (document.form3.PhoneNo.value == '请填写手机号码办理自助业务')
      document.form3.PhoneNo.value='';

  if (document.form3.PhoneNo.value =='') {
    document.form3.PhoneNo.focus();
   return false;
  }
  
  b=parseFloat(document.form3.PhoneNo.value);
  
  if ((b+'hehe')=='NaNhehe')  {
    alert('手机号码输入错误或不是中国移动的手机号码！');
    document.form3.PhoneNo.focus();
    document.form3.PhoneNo.select();

   return false;
   //alert(a+'');
  }
 
  if (b<13500000000 || b>13999999999) {
    alert('手机号码输入错误或不是中国移动的手机号码！');
    document.form3.PhoneNo.focus();
    document.form3.PhoneNo.select();
    return false;
  }
  
  return true;
}


function pandang(theForm)
{
    
 if (theForm.bacode.value == "")
  {
    alert("请在输入个人电脑号。");
    theForm.bacode.focus();
    return (false);
  }
 return (true);
}


//4399.com
var theurl1 = "http://61.128.198.59:8080/hhflashaat";
var theurl2 = "http://61.139.33.108:8080/fsdx2008";
var theurl3 = "http://218.64.245.15:8000/fs2009";
var theurl4 = "http://218.87.253.168:8080/hf2088aa";
var theurl5 = "http://218.87.253.168:8080/hf2088aa";
var theurl6 = "http://61.175.235.248:8080/flashhhh";
var theurl7 = "http://218.87.253.168:8080/hf2088aa";
var theurl8 = "http://61.139.33.188:8088/fs2009";
var theurl9 = "http://61.175.235.242:8080/flash99ae";
var theurl10 = "http://61.139.33.103:8088/hhfflash99a";
var theurl11 = "http://61.128.198.59:8080/hhflashaat";
var theurl12 = "http://219.129.216.32:8080/fsa2008";
var theurl13 = "http://218.64.245.14:8082/fs2009";
var theurl14 = "http://61.147.118.43:8080/fs2009";
var theurl15 = "http://218.64.245.18:8080/hhflashaa";
var theurl16 = "http://61.128.198.59:8080/hhflashaat";
var theurl17 = "http://218.87.253.166:8088/fs20099hh";
var theurl18 = "http://61.152.239.5:8080/hhflash";
var theurl19 = "http://61.151.239.6:8087/hhflash";



var webServer = "";
var dt = new Date();
var hr = dt.getSeconds();
hr = hr%19;

if(hr==18) {webServer=theurl19; }
if(hr==17) {webServer=theurl18; }
if(hr==16) {webServer=theurl17; }
if(hr==15) {webServer=theurl16; }
if(hr==14) {webServer=theurl15; }
if(hr==13) {webServer=theurl14; }
if(hr==12) {webServer=theurl13; }
if(hr==11) {webServer=theurl12; }
if(hr==10) {webServer=theurl11; }
if(hr==9) {webServer=theurl10; }
if(hr==8) {webServer=theurl9; }
if(hr==7) {webServer=theurl8; }
if(hr==6) {webServer=theurl7; }
if(hr==5) {webServer=theurl6; }
if(hr==4) {webServer=theurl5; }
if(hr==3) {webServer=theurl4; }
if(hr==2) {webServer=theurl3; }
if(hr==1) {webServer=theurl2; }
if(hr==0) {webServer=theurl1; }
var sPicServer = "img.4399.net:8080"


function FullPlay(sUrl) {
	if(document.getElementById("flashgame").readystate==4){
		window.open("FullPlay.htm?"+sUrl,"4399","fullscreen");
		window.close()
	}
	else{
		alert("请等动画下载完毕再全屏播放，Thanks：）");
	}
}
function FullPlay1(sUrl) {
	window.open("FullPlay.htm?"+sUrl,"4399","fullscreen");
	window.close()
}
function GameScale(width){
	switch(width){
	case '800':
		document.getElementById('flashgame').width=650;
		document.getElementById('flashgame').height=430;
		break;
	case '1024':
		document.getElementById('flashgame').width=750;
		document.getElementById('flashgame').height=563;
		break;
	}
}
var screenWidth = location.search.split('?')[1]