
//右下角固定漂浮广告

var imgheight_close

//var ad_float_right_src = "http://www.chinawatchnet.com/images/rightdcb.gif";
//var ad_float_right_url = "http://www.mingyufair.com/dcb/time/zhdcb.asp";
var ad_float_right_src = "许愿墙";
var ad_float_right_url = "http://www-hao123.com.cn/wish/xuyuan/index.asp";

var ad_float_right_src2 = "<br><br>搞笑QQ表情";
var ad_float_right_url2 = "http://www.qqship.com";

var ad_float_right_type = "gif";

document.ns = navigator.appName == "Microsoft Internet Explorer"

window.screen.width>800 ? imgheight_close=140:imgheight_close=120
 function myload()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
myright.style.left=document.body.offsetWidth-120;
mymove();
}
 function mymove()
 {
 myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
 myright.style.left=document.body.scrollLeft+document.body.offsetWidth-120;
 setTimeout("mymove();",50)
 }

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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)

function close_float_right(){
	myright.style.visibility='hidden';
}

if(document.ns){
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'>\
<style>\
A.closefloat:link,A.refloat:visited {text-decoration:none;color:#000000;font-size:12px}\
A.closefloat:active,A.refloat:hover {text-decoration:underline;color:#0000FF;font-size:12px}\
</style>\
<table border=0 cellpadding=0 cellspacing=0><tr><td>");
if(ad_float_right_type!="swf"){
	document.write("<a href='" + ad_float_right_url + "' target = '_blank'>" + ad_float_right_src + "</a>");
    document.write("<a href='" + ad_float_right_url2 + "' target = '_blank'>" + ad_float_right_src2 + "</a>");

	}
else
	document.write("<EMBED src='" + ad_float_right_src + "' FlashVars='" + ad_float_right_url + "' quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' wmode=opaque></EMBED>");

document.write("</td></tr><tr><td width=80 height=20 align=right><a href='javascript:close_float_right();void(0);'><b><font color=#ff0000>关闭</font></b></a></td></tr>\
</table>\
</div>");

myload()
}

function gowhere(formname)
  {
  if (formname.myselectvalue.value == "1")
    { 
    window.open("http://www.sxqx.gov.cn/gzqxxx/yubaosingle.php?cityname="+document.search_form.word.value,"");
    return false;
    } 
  if (formname.myselectvalue.value == "2")
    { 
    window.open("http://www.sxqx.gov.cn/gzqxxx/yubaosingle.php?telcode="+document.search_form.word.value,"");
    return false;
    } 
  if (formname.myselectvalue.value == "3")
    { 
    window.open("http://www.sxqx.gov.cn/gzqxxx/yubaosingle.php?postcode="+document.search_form.word.value,"");
    return false;
    } 
  return true;
  }


function ValidNum(item){
	var i,temp;
	var validitem = true;
	i = 0;
	while(i<item.length)
	{ 
		temp=item.charAt(i);
		if (((temp>'9')||(temp<'0'))) validitem = false;
		i++;
	}
	return validitem;
}


 function chkFormat(){
	if(!ValidNum(form1.textfield.value)){
		
		alert("请检查输入序列号的字符格式,序列号只能是数字！");
        form1.textfield.value="";
		form1.textfield.focus();
		
		}
 if(!ValidNum(form1.textfield2.value)){
		
		alert("请检查输入序列号的字符格式,序列号只能是数字！");
		form1.textfield2.value="";
		form1.textfield2.focus();

		}
 if(!ValidNum(form1.textfield3.value)){
	
		alert("请检查输入序列号的字符格式,序列号只能是数字！");
        form1.textfield3.value="";
		 form1.textfield3.focus();
		 
		}
 if(!ValidNum(form1.textfield4.value)){
		alert("请检查输入序列号的字符格式,序列号只能是数字！");
		form1.textfield4.value="";
		form1.textfield4.focus();
	
 } 
      
		
}

function chkinput2(f)
  {
  var tmp=f.user.value;
  if(!tmp)
    {
	alert("帐号不能为空!");
	return false;
	}
  var tmp2=f.pass.value;
  if(!tmp2)
    {
	alert("密码不能为空!");
	return false;
	}
  var tmp3=f.site.value;
  if(!tmp3)
    {
	alert("您没有选择信箱!");
	return false;
	}
  return true;
  }
  
function checkMobile(){

	var sMobile = document.mobileform.mobile.value

	if(!(/^13[0-9]\d{4,8}$/.test(sMobile))){

		alert("不是完整的11位手机号或者正确的手机号前七位");

		document.mobileform.mobile.focus();

		return false;

	}

	window.open('', 'mobilewindow', 'height=197,width=350,status=yes,toolbar=no,menubar=no,location=no')

}
function  keya1(form){
     if (form.textfield.value.length>4) 
         form.textfield2.focus();
		 }
	  function  keya2(form){
     if (form.textfield2.value.length>4) 
         form.textfield3.focus();
	    }
	  function  keya3(form){
     if (form.textfield3.value.length>4) 
         form.textfield4.focus();
		 }

//google的广告


function clearpass()
  {
  document.loginmail.pass.value="";
  }




function HighlightAll(theField) {
var tempval=document.form2.purl
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")}
//-->



