if (self != top) top.location.href = window.location.href



var version = "other"
browserName = navigator.appName;   
browserVer = parseInt(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";


function marquee1()
{
	if (version == "e4")
	{
		document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 100px; HEIGHT:60px;  TEXT-ALIGN: left; TOP: 0px' id='news' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}

function marquee2()
{
	if (version == "e4")
	{
		document.write("</marquee>")
	}
}


var version = "other"
browserName = navigator.appName;   
browserVer = parseInt(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";


function marquee5()
{
	if (version == "e4")
	{
		document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 100px; HEIGHT:100px;  TEXT-ALIGN: left; TOP: 0px' id='news' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}

function marquee6()
{
	if (version == "e4")
	{
		document.write("</marquee>")
	}
}

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 makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}

    // Begin morelink
      function morelink(morelink)
      {
        url = 'morelink.asp?linktype=0';
        window.open(url,morelink);
      }
    // End morelink-->
 // Begin linkreg
      function linkreg(linkreg)
      {
        url = 'admin/linkreg.asp';
        window.open(url,linkreg,"width=350,height=400,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
      }
    // End linkreg-->
// Begin vote
      function vote(vote)
      {
        url = 'admin/vote.asp?stype=view';
        window.open(url,vote,"width=350,height=300,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
      }
    // End vote-->
// Begin adduser
      function adduser(adduser)
      {
        url = 'admin/adduser.asp';
        window.open(url,adduser,"width=600,height=460,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes");
      }
    // End adduser-->
// Begin getpwd
      function getpwd(getpwd)
      {
        url = 'admin/getpwd.asp';
        window.open(url,getpwd,"width=350,height=330,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
      }
    // End getpwd-->


function checkdata()
{
if (document.user.UserName.value=="")
	{
	  alert("对不起，请输入您的用户名！")
	  document.user.UserName.focus()
	  return false
	 }
else if (document.user.Passwd.value=="")
	{
	  alert("对不起，请输入您的密码！")
	  document.user.Passwd.focus()
	  return false
	 }
}

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;
}
