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 showbb() {
        nome=navigator.appName;
        if(nome=='Netscape'){
            var a = pageYOffset+window.innerHeight-document.master.document.height;
            document.master.top = a;
        }
        else{
            var a=document.body.scrollTop+document.body.clientHeight-document.all.master.offsetHeight;
            document.all.master.style.top = a;
        }
}

function news(URL,winName,features) {
	var URL='shownews.asp?id='+URL+'';
	window.open(URL,winName,'width=600,height=500,top=95,left=245,status=0,scrollbars=1,resizable=0,toolbar=0,location=0');
}

function showjs(URL,winName,features) {
	var URL='feedback.asp';
	window.open(URL,winName,'width=600,height=500,top=70,left=270,status=0,scrollbars=1,resizable=0,menubar=0,toolbar=0,location=0');
}

function reg(URL,winName,features) {
	var URL='user_reg.asp?code='+URL+'';
	window.open(URL,winName,'width=810,height=470,top=95,left=185,status=0,scrollbars=0,resizable=0,toolbar=0,location=0');
}

function checkname(){
var Name=document.creator.user_name.value;
window.open("checkuser.asp?name="+Name,"check","width=200,height=20,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0,location=0");
}

function reg_check(){
if (document.creator.user_name.value=="")
	{
	  alert("请输入用户名！")
	  document.creator.user_name.focus()
	  return false
	 }
if (document.creator.user_password.value=="")
	{
	  alert("请输入用户密码！")
	  document.creator.user_password.focus()
	  return false
	 }
  if (document.creator.user_password.value!=document.creator.user_password2.value){
     alert ("两次输入的密码不一致！")
	 document.creator.user_password.focus()
	 return false;
  }
 if (document.creator.user_city.value=="")
	{
	  alert("请选择所在地区！")
	  document.creator.user_city.focus()
	  return false
	 }
 if (document.creator.user_corp.value=="")
	{
	  alert("请填写单位名称！")
	  document.creator.user_corp.focus()
	  return false
	 }
if (document.creator.user_contact.value=="")
	{
	  alert("请输入贵单位的联系人！")
	  document.creator.user_contact.focus()
	  return false
	 }
if (document.creator.user_add.value=="")
	{
	  alert("请输入贵单位所在的地址！")
	  document.creator.user_add.focus()
	  return false
	 }
if (document.creator.user_phone.value=="")
	{
	  alert("请输入贵单位的联系电话！")
	  document.creator.user_phone.focus()
	  return false
	 }
if (document.creator.user_email.value=="")
	{
	  alert("请输入贵单位的电子邮箱！")
	  document.creator.user_email.focus()
	  return false
	 }
if (document.creator.cjrjmc.value=="")
	{
	  alert("请输入采集软件名称！")
	  document.creator.cjrjmc.focus()
	  return false
	 }
if (document.creator.yzcode.value=="")
	{
	if(isNaN(document.creator.yzcode.value))
    {
      document.creator.yzcode.value="";
    }
	  alert("请输入正确的注册验证码！")
	  document.creator.yzcode.focus()
	  return false
	 }
}

function login_check()
{
if (formMain.username.value=="")
{   alert("请输入用户名！");
return false;
}
if (formMain.password.value=="")
{   alert("请输入用户密码！");
return false;
}
if (formMain.yzcode.value=="" )
{   alert("请输入验证码！");
return false;
}
formMain.submit();
}

function showl(URL,winName,features) {
	var URL='lostpass.asp';
	window.open(URL,winName,'width=600,height=500,top=95,left=245,status=0,scrollbars=0,resizable=0,toolbar=0,location=0');
}

function showcp(URL,winName,features) {
	var URL='user_infoedit.asp';
	window.open(URL,winName,'width=630,height=430,top=95,left=240,status=0,scrollbars=1,resizable=0,toolbar=0,location=0');
}

function showhelp(URL,winName,features) {
	var URL='help.asp';
	window.open(URL,winName,'width=630,height=430,top=95,left=240,status=0,scrollbars=1,resizable=0,toolbar=0,location=0');
}
function showhelp1(URL,winName,features) {
	var URL='help1.asp';
	window.open(URL,winName,'width=630,height=430,top=95,left=240,status=0,scrollbars=1,resizable=0,toolbar=0,location=0');
}

function showjf(URL,winName,features) {
	var URL='user_money.asp';
	window.open(URL,winName,'width=630,height=430,top=95,left=240,status=0,scrollbars=1,resizable=0,toolbar=0,location=0');
}

function showdl(URL,winName,features) {
	var URL='bz/index2.asp?piclist=1';
	window.open(URL,winName,'width=1002,height=623,top=0,left=0,status=0,scrollbars=0,resizable=0,toolbar=0,location=0');
}

function showdown(URL,winName,features) {
	var URL='download.asp';
	window.open(URL,winName,'width=630,height=430,top=95,left=240,status=0,scrollbars=1,resizable=0,toolbar=0,location=0');
}

function showbz(URL,winName,features) {
	var URL='biaozhun.asp';
	window.open(URL,winName,'width=630,height=430,top=95,left=240,status=0,scrollbars=1,resizable=0,toolbar=0,location=0');
}

function killErrors() {
	return true;
}
window.onerror = killErrors;
