<!--
var mystat=0;
function myout(){mystat=0;window.setTimeout("mycheck()",5);}
function myin(){mystat=1;}
function mycheck(){if (mystat==0) MM_showHideLayers('price','','hide');}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

<!--
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 MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
function WriteDate()
{
today=new Date();
var day; var date; var hello; var wel;
hour=new Date().getHours()
if(hour < 6)hello='凌晨好'
else if(hour < 9)hello='早上好　现在是'
else if(hour < 12)hello='上午好　现在是'
else if(hour < 14)hello='中午好　现在是'
else if(hour < 17)hello='下午好　现在是'
else if(hour < 19)hello='傍晚好　现在是'
else if(hour < 22)hello='晚上好　现在是'
else {hello='夜里好!　现在是'}
if(today.getDay()==0)day='星期日'
else if(today.getDay()==1)day='星期一'
else if(today.getDay()==2)day='星期二'
else if(today.getDay()==3)day='星期三'
else if(today.getDay()==4)day='星期四'
else if(today.getDay()==5)day='星期五'
else if(today.getDay()==6)day='星期六'
date=(today.getYear())+'年'+(today.getMonth() + 1 )+'月'+today.getDate()+'日';

document.write(hello);
document.write(date + ' ' + day );
}

function OpenMax(filename)
{
var w,h,s;
	w = screen.availWidth-0;
	h = screen.availHeight-1;
	s = "directories=no,left=－4,top=－4,location=no,status=1,menubar=0,fullscreen=0,resizable=1,scrollbars=auto,toolbar=no,width=" + w + ",height=" + h;
	window.open(filename,"",s);
}

//邮件登陆
if (top.location !== self.location) {
top.location=self.location;
}

function window_onload() {

	//usernameshow.focus();

}

function gook() {

	if (usernameshow.value == "")
	{
		alert("用户名不可为空");
		usernameshow.focus();
		return ;
	}

	if (pwshow.value == "")
	{
		alert("密码不可为空");
		pwshow.focus();
		return ;
	}


	f1.saveUser.value = showsaveUser.checked;
	f1.username.value = usernameshow.value;

	f1.SecEx.value = showSecEx.checked;
	f1.pwhidden.value = encode(pwshow.value, parseInt(f1.picnum.value));

	f1.submit();
}

function encode(datastr, bassnum) {
	var tempstr;
	var tchar;
	var newdata = "";

	for (var i = 0; i < datastr.length; i++)
	{
		tchar = 65535 + bassnum - datastr.charCodeAt(i);
		tchar = tchar.toString();

		while(tchar.length < 5)
		{
			tchar = "0" + tchar;
		}

		newdata = newdata + tchar;
	}

	return newdata;
}