<!--
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 ValidateForm_C() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=ValidateForm_C.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.id; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' 必须填写合法的E-MAIL地址\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='  '+nm+' 必须填写数字\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='  '+nm+' 必须填写介于 '+min+' 与 '+max+'之间的数字\n';
    } } } else if (test.charAt(0) == 'R') errors += '  '+nm+' 必须填写\n'; }
  } if (errors) alert('您填写的数据发生以下错误，请更正：\n\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.id; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

var imgObj;
function checkImage(theURL,winName){
  if (typeof(imgObj) == "object"){
    if ((imgObj.width != 0) && (imgObj.height != 0))
      OpenFullSizeWindow(theURL,winName, ",width=" + (imgObj.width+20) + ",height=" + (imgObj.height+30));
    else
      setTimeout("checkImage('" + theURL + "','" + winName + "')", 100)
  }
}

function OpenFullSizeWindow(theURL,winName,features) {
  var aNewWin, sBaseCmd;
  sBaseCmd = "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,";
  if (features == null || features == ""){
    imgObj = new Image();
    imgObj.src = theURL;
    checkImage(theURL, winName)
  }
  else{
    aNewWin = window.open(theURL,winName, sBaseCmd + features);
    aNewWin.focus();
  }
}

function checkImg(theImg,theSize){
		if (typeof(theImg.style) == "object"){			
			theImg.style.display = "";
	    	if ((theImg.width != 0) && (theImg.height != 0)){
				if(theImg.width > theImg.height){
					if(theImg.width > theSize)theImg.width=theSize;
				}
				else{
					if(theImg.height > theSize)theImg.height=theSize;
				}
			}
			else{
				theImg.style.display = "none";
				setTimeout("checkImg(" + theImg.uniqueID + "," + theSize + ")", 100);
			}
		}
		else{
			setTimeout("checkImg(" + theImg.uniqueID + "," + theSize + ")", 100);
		}
}

function setImg(theImg,theSize){
		if (typeof(theImg.style) == "object"){			
			theImg.style.display = "";
	    	if ((theImg.width != 0) && (theImg.height != 0)){				
				theImg.width=theSize;				
			}
			else{
				theImg.style.display = "none";
				setTimeout("setImg(" + theImg.uniqueID + "," + theSize + ")", 100);
			}
		}
		else{
			setTimeout("setImg(" + theImg.uniqueID + "," + theSize + ")", 100);
		}
}


var dayarray=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六")
var montharray=new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月")

function getthedate(){
	var mydate=new Date()
	var year=mydate.getYear()
	if (year < 1000)
		year+=1900
	var day=mydate.getDay()
	var month=mydate.getMonth()
	var daym=mydate.getDate()
	if (daym<10)
		daym="0"+daym
	var hours=mydate.getHours()
	var minutes=mydate.getMinutes()
	var seconds=mydate.getSeconds()
	if (minutes<=9)
		minutes="0"+minutes
	if (seconds<=9)
		seconds="0"+seconds
		
	var cdate="<font color='000000'>"+year+"-&nbsp;"+(month+1)+"-"+daym+"&nbsp;"+" "+hours+":"+minutes+":"+seconds+" "+"&nbsp;</font>"
	
	if (document.all)
		document.all.clock.innerHTML=cdate
	else
		document.write(cdate)
}

if (!document.all)
	getthedate()
		
function goforit(){
	if (document.all)
		getthedate();
	setInterval("getthedate()",1000);
}

document.oncontextmenu = function() { return false;} 

document.ondragstart= function() {return false;}
 
document.onselectstart =function() {return false;}

document.onselect = function() {document.selection.empty();}

document.oncopy = function() {document.selection.empty();}

document.onbeforecopy=function() {return false;}

-->