var IE = false;
var NS = false;

var navVer = "";

function SetInnerText(obj , text)
{
	if(IE)
	{
		obj.innerText = text;
	}
	else
	{
		obj.textContent = text;
	}
}
function GetInnerText(obj)
{
	if(IE)
	{
		return obj.innerText;
	}
	else
	{
		return obj.textContent;
	}
}

with(navigator)
{
	if(appName=="Microsoft Internet Explorer")
	{
		navVer = appVersion.indexOf("MSIE");
		navVer = appVersion.substring(17 + 4 , appVersion.indexOf(";",navVer));
		navVer = parseFloat(navVer);
		IE = true;
		NS = false;
	}
	else
	{
		navVer = appVersion.substring(0 , appVersion.indexOf(" "));
		navVer = parseFloat(navVer);
		IE = false;
		NS = true;
	}
}

function fillSelArray(fobj,ary,ostart){
	var i;
	if(typeof(ostart)=="undefined")ostart=0;
	for(i=fobj.length-1;i>=ostart;i--){
		fobj.remove(i);
	}
	for(i=0;i<ary.length;i++){
		fobj.options[i+ostart]=new Option(ary[i],ary[i]);
	}
}

function fillSelNum(fobj,fstart,fend,fstep,ostart){
	var i=0;
	if(typeof(fstep)=="undefined")fstep=1;
	if(typeof(ostart)=="undefined")ostart=0;
	for(i=fobj.length-1;i>=ostart;i--){
		fobj.remove(i);
	}
	for(i=fstart;i<=fend;i+=fstep){
		fobj.options[i-fstart+ostart]=new Option(i,i);
	}
}
function monthChange(yearSel,monthSel,daySel,ostart){
	if(typeof(ostart)=="undefined")
	{
		ostart=0;
	}
	if((monthSel.value=="1")
	 ||(monthSel.value=="3")
	 ||(monthSel.value=="5")
	 ||(monthSel.value=="7")
	 ||(monthSel.value=="8")
	 ||(monthSel.value=="10")
	 ||(monthSel.value=="12")){
	 	while((daySel.length-ostart)!=31){
	 		daySel.options[daySel.length]=new Option(daySel.length+1-ostart,daySel.length+1-ostart);
	 	}
	 }
	 else if(monthSel.value=="2"){
		if(yearSel.value%4==0){
		 	while((daySel.length-ostart)!=29){
		 		if((daySel.length-ostart)>29){
		 			daySel.remove(29+ostart);
	 			}
	 			else{
	 				daySel.options[daySel.length]=new Option(daySel.length+1-ostart,daySel.length+1-ostart);
	 			}
	 		}
		}
		else{
		 	while((daySel.length-ostart)!=28){
		 		daySel.remove(28+ostart);
			}		
		}
	 }
	 else{
	 	while((daySel.length-ostart)!=30){
	 		if((daySel.length-ostart)>30){
	 			daySel.remove(30+ostart);
	 		}
	 		else{
	 			daySel.options[daySel.length]=new Option(daySel.length+1-ostart,daySel.length+1-ostart);
	 		}
	 	}
	 }
	 if(yearSel.value%4==0){
	 }
}



function checkRadio(f,rname,val){
	var rs=document.getElementsByName(rname);
	var i;
	for(i=0;i<rs.length;i++){
		if((f==null)||(rs[i].form==f)){
			if(rs[i].value==val)rs[i].checked=true;
		}
	}
}
function checkCheckbox(f,rname,val){
	var cval=", "+val+", ";
	var rs=document.getElementsByName(rname);
	var i;
	for(i=0;i<rs.length;i++){
		if((f==null)||(rs[i].form==f)){
			if(cval.indexOf(", "+rs[i].value+", ")!=-1)rs[i].checked=true;
		}
	}
}
function showDate(p,pre,d)
{
	var obj;
	var da=d.split("-");
	obj=eval(p.id+"."+pre+"Year");
	obj.value=eval(da[0]);
	obj=eval(p.id+"."+pre+"Month");
	obj.value=eval(da[1]);	
	obj=eval(p.id+"."+pre+"Day");
	obj.value=eval(da[2]);	
}

//按指定大小成比例缩小图像
function resizePic(pic,wid,hei){
     if(typeof(pic)=="undefined")return;
     var ow,oh
     ow=pic.width;
     oh=pic.height;
     if(ow>wid){
      ow=wid;
      oh=(pic.height/pic.width)*ow;
     }
     pic.height=oh;
     if(oh>hei){
      oh=hei;
      ow=(pic.width/pic.height)*oh;
     }
     pic.width=ow;
     pic.height=oh;

     ow=pic.width;
     oh=pic.height;
     if(ow>wid){
      ow=wid;
      oh=(pic.height/pic.width)*ow;
     }
     pic.height=oh;
     if(oh>hei){
      oh=hei;
      ow=(pic.width/pic.height)*oh;
     }
     pic.width=ow;
     pic.height=oh;
}

function getAbsLeft(obj){
	var aX;
	var ss,aa;

	var o=obj.parentNode;
	aX = 0;
	if((typeof(o)=="undefined")||(o==null))
	{
		return 0;
	}
	if((typeof(o.offsetLeft)!="undefined")&&(o.offsetLeft!=null))
	{
		if(o.tagName.toLowerCase()!="tr")
		{
			aX=o.offsetLeft;
		}
	}
	if((typeof(obj.offsetLeft)!="undefined")&&(obj.offsetLeft!=null))
	{
		if(obj.tagName.toLowerCase()!="tr")
		{
			aX+=obj.offsetLeft;
		}
	}
	while(1){
		o=o.parentNode;
		if((typeof(o)=="undefined")||(o==null))
		{
			break;
		}
		if((typeof(o.offsetLeft)!="undefined")&&(o.offsetLeft!=null))
		{
			if(o.tagName.toLowerCase()!="tr")
			{
				aX+=o.offsetLeft; 
			}
		}
	}
	return aX;
}
function getAbsTop(obj){
	var aY;
	var o=obj.offsetParent;
	
	aY = 0;
	if((typeof(o)=="undefined")||(o==null))
	{
		return 0;
	}
	if((typeof(o.offsetTop)!="undefined")&&(o.offsetTop!=null))
	{
		if(o.tagName.toLowerCase()!="tr")
		{
			aY=o.offsetTop;
		}
	}
	if((typeof(obj.offsetTop)!="undefined")&&(obj.offsetTop!=null))
	{
		if(obj.tagName.toLowerCase()!="tr")
		{
			aY+=obj.offsetTop;
		}
	}
	while(1){
		o=o.parentNode;
		if((typeof(o)=="undefined")||(o==null))
		{
			break;
		}
		if((typeof(o.offsetTop)!="undefined")&&(o.offsetTop!=null))
		{
			if(o.tagName.toLowerCase()!="tr")
			{
				aY+=o.offsetTop; 
			}
		}
	}
	return aY;
}

function inHTML(str){
var inHTML=str;
/*inHTML = inHTML.replace( "\0x32", "&nbsp;");
inHTML = inHTML.replace( char(9), "&nbsp;");
inHTML = inHTML.replace( char(34), "&quot;");
inHTML = inHTML.replace( char(39), "&#39;");*/
inHTML=inHTML.replace("<","&lt;");
inHTML=inHTML.replace(">","&gt;");
inHTML=inHTML.replace(" ","&nbsp;");
inHTML=inHTML.replace("\n","<BR>");
return inHTML;
}

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_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

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 strLength(str)
{
       var WINNT_CHINESE;
	   var strLength = 0;
       WINNT_CHINESE    = ("论坛".length==2);
       if(WINNT_CHINESE)
	   {
          var l,t,c,i;
          l=str.length;
          t=l;
          for(i=0;i<l;i++)
		  {
			  c=str.charCodeAt(i);
             if(c>255)
			 {
                t=t+1;
		     }
	      }
          strLength=t;
       }
       else
	   {
          strLength=str.length;
	   }
	   return strLength;
}

function cutstr(str,strlen,last)
{
 if ((typeof(last)=="undefined")||(last==null))
 {
	 last = "...";
 }
 var cutstr = "";
 if(strLength(str)>strlen)
 {
  var l,t,c,i
  l=str.length;
  t=0;
  for(i=0;i<l;i++)
  {
   c=str.charCodeAt(i);
   if(c>255)
   {
    t=t+2;
   }
   else
   {
    t=t+1;
   }
   if(t>strlen-strLength(last))
   {
	i++;
    if(c>255)
	{
     cutstr=str.substring(0 , i-1) + last;
	}
    else
	{
     cutstr=str.substring(0 , i-1) + last;
	}
	return cutstr;
   }
  }
 }
 else
 {
  return str;
 }
}

function GetCssRuleBySelector(cn)
{
	var i=0,j=0;
	for(i=0;i<document.styleSheets.length;i++)
	{
		for(j=0;j<document.styleSheets[i].cssRules.length;j++)
		{
			if(document.styleSheets[i].cssRules[j].selectorText==cn)
			{
				return document.styleSheets[i].cssRules[j];
			}
		}
	}
}

function isChild(p,c)
{
	while(c!=null)
	{
		if(c.parentNode == p)
		{
			return true;
		}
		c=c.parentNode;
	}
	return false;
}

function IsValidEmail(email)
{
	var names, name, i, c;

	//Check for valid syntax in an email address.
	names = email.split("@");
	if ( names.length != 2 )
	{
		return false;
	}
	for(name in names)
	{
		name = names[name];
		if (name.length<=0)
		{
			return false;
		}
		for(i=0;i<name.length;i++)
		{
			c = name.substring(i,i+1).toLowerCase();
			if ( ("abcdefghijklmnopqrstuvwxyz_-.".indexOf(c) == -1) && ( isNaN(parseInt(c))))
			{
				return false;
			}
		}
		if ( (name.substring(0, 1)==".") || (name.substring(name.length-1,name.length)==".") )
		{
			return false;
		}
	}
	if (names[1].indexOf(".") == -1)
	{
		return false;
	}
	i = names[1].length - names[1].lastIndexOf(".")-1;
	if( (i!=2)&&(i!=3) )
	{
		return false;
	}
	if(email.indexOf("..") !=-1)
	{
		return false;
	}
	return true;
}

function isInteger(para)
{
	var str;
	var l,i;
	if(para==null)
	{
		return false;
	}
	str=para.toString();
	if(str=="")
	{
		return false;
	}
	l=str.length;
	for(i=0;i<l;i++)
	{
		if((str.substring(i,i+1)>"9")||(str.substring(i,i+1)<"0"))
		{
			return false;
		}
	}
	return true;
}


//-----------------------------JavaScript/Jscript核心语言对象扩充函数-------------------------
Array.prototype.indexOf = function(_value){
	for(var i=0;i<this.length;i++)
	{
		if (this[i] == _value)
		{
			return i;
		}
	}
	return -1;
};
Array.prototype.lastIndexOf = function(_value){
         for(var i=this.length-1;i>=0;i--)if(this[i]==_value)return i;
         return -1;
};
Array.prototype.contains = function(_value){return this.indexOf(_value)!= -1;};
Array.prototype.copy = function(){return this.concat();};
Array.prototype.insertAt = function(_value,i){this.splice(i,0,_value);};
Array.prototype.insertBefore = function(_value,_inValue){
         var i=this.indexOf(_inValue);
         if(i== -1)this.push(_value);
         else this.splice(i,0,_value);
};
Array.prototype.removeAt = function(i){this.splice(i,1);};
Array.prototype.remove = function(_value){
         var i=this.indexOf(_value);
         if(i!= -1)this.splice(i,1);
};
 
String.prototype.trim = function(){return this.replace(/(^\s+)|\s+$/g,"");};
String.prototype.lTrim = function(){return this.replace(/(^\s+)/g,"")};
String.prototype.rTrim = function(){return this.replace(/(\s+$)/g,"")};
String.prototype.lTrimZero = function(){return this.replace(/(^0+)/g,"")};
String.prototype.left = function(_leftNum){return this.substr(0,_leftNum)};
String.prototype.right = function(_rightNum){return this.substr(this.length - _rightNum)};
String.prototype.hasAlpha = function(){
         var _checkAlpha = /[\/\\\.\*\+\?\|\(\)\{\}\[\]\-~`!@#$%^&_=:;"'<>,.]/;
         return(_checkAlpha.test(this));
};
String.prototype.isAlpha = function(){
         var _checkAlpha = /[^\/\\\.\*\+\?\|\(\)\{\}\[\]\-~`!@#$%^&_=:;"'<>,.]/;
         return(!_checkAlpha.test(this));
};
String.prototype.isLetter = function(){return(!(/\W/.test(this)||/\d/.test(this)));};
String.prototype.isFigure = function(){return(!/\D/.test(this));};
String.prototype.isDomainName = function(){return(!/[^\w-_\.]|^\.|\.$/.test(this));};
String.prototype.isEmail = function(){
         var _emailList = this.split("@");
         if(_emailList.length != 2)return false;
         return((!/[^\w-_]/.test(_emailList[0]))&&_emailList[1].isDomainName());
};
String.prototype.isHex = function(){return(!/[^\dABCDEFabcdef]/.test(this));};
String.prototype.isGuid = function(){
        if(this.left(1)!="{"||this.right(1)!="}")return false;
         var _hexNumberList = this.replace(/(^\{)|(\}$)/g,"").split("-");
         if(_hexNumberList.length!=5)return false;
         if(_hexNumberList[0].length!=8||!_hexNumberList[0].isHex())return false;
         if(_hexNumberList[1].length!=4||!_hexNumberList[1].isHex())return false;
         if(_hexNumberList[2].length!=4||!_hexNumberList[2].isHex())return false;
         if(_hexNumberList[3].length!=4||!_hexNumberList[3].isHex())return false;
         if(_hexNumberList[4].length!=12||!_hexNumberList[4].isHex())return false;
         return true;
};
String.prototype.isInteger = function(_bitType){
         var _limitValue = [];
         _limitValue["Upper"] = [];
         _limitValue["Lower"] = [];
         _limitValue["Upper"]["64bit"] = "9223372036854775807";
         _limitValue["Upper"]["32bit"] = "2147483647";
         _limitValue["Upper"]["16bit"] = "32767";
         _limitValue["Lower"]["64bit"] = "9223372036854775808";
         _limitValue["Lower"]["32bit"] = "2147483648";
         _limitValue["Lower"]["16bit"] = "32768";
         var _plus = "Upper";
         var _theValue = new String(this);
         if(_theValue.indexOf("-")==0){
                   _theValue = _theValue.substr(1,_theValue.length-1);
                   _plus = "Lower";
         }       
         if(!_theValue.isFigure())return false;
         if(_limitValue[_plus][_bitType].length < _theValue.length)return false;
         if(_limitValue[_plus][_bitType].length == _theValue.length){
                   for(var i=0;i<_limitValue[_plus][_bitType].length;i++){
                            if(_theValue.charAt(i) < _limitValue[_plus][_bitType].charAt(i))return true;
                   }
                   if(_limitValue[_plus][_bitType] != _theValue)return false;
         }
         return true;
};
String.prototype.isInt8 = function(){
         var _theValue = this.toNumber();
         if(_theValue.isNaN())return false;
         if(_theValue < 0 || _theValue > 255)return false;
         if(_theValue.toString() != this)return false;
         return true;
};
String.prototype.isInt16 = function(){return this.isInteger("16bit");};
String.prototype.isInt32 = function(){return this.isInteger("32bit");};
String.prototype.isInt64 = function(){return this.isInteger("64bit");};
String.prototype.toDate = function(){
	var _dateStr = this.trim().split(/\s/)[0];
	var _timeStr = (this.trim().split(/\s/)[1]?this.trim().split(/\s/)[1]:"1:1:1");
	var _dateSplitSymbol = /[\/\-,年]/;
	var _timeSplitSymbol = /[:,时]/;

	if(!_dateSplitSymbol.test(_dateStr))return new Date("x");
	var _SplitSymbol = _dateSplitSymbol.exec(_dateStr);
	var _dateList = [];
	if(_SplitSymbol == "年")
	{
		if(!(_dateStr.indexOf("日") > _dateStr.indexOf("月") && _dateStr.indexOf("月") > _dateStr.indexOf("年") && _dateStr.indexOf("年")> 1))
			return new Date("x");
		_dateList = _dateStr.split(/[年月日]/);
	}
	else
		_dateList = _dateStr.split(_SplitSymbol);
	if(_dateList.length < 2)
		return new Date("x");
 
	var _timeList = [1,1,1];
	if(_timeSplitSymbol.test(_timeStr))
	{
		_SplitSymbol = _timeSplitSymbol.exec(_timeStr);
		if(_SplitSymbol == "时"){
			_timeList = _timeStr.split(/[时分秒]/);
		}
		else
			_timeList = _timeStr.split(_SplitSymbol);
	}
	return new Date(_dateList[0],_dateList[1],_dateList[2],_timeList[0],_timeList[1],_timeList[2]);
};
String.prototype.toNumber = function(){return new Number(this)};
 
 
Date.prototype.getQuarter = function(){return ((this.getMonth()+1)/3).ceil();};
Date.prototype.dateAdd = function(_timeInterval,_number){
         switch(_timeInterval.toUpperCase()){
                   case "YYYY":
                            return new Date(this.getFullYear() + _number,this.getMonth(),this.getDate(),this.getHours(),this.getMinutes(),this.getSeconds());
                            break;
                   case "MM":
                            return new Date(this.getFullYear(),this.getMonth() + _number,this.getDate(),this.getHours(),this.getMinutes(),this.getSeconds());
                            break;
                   case "DD":
                            return new Date(this.getFullYear(),this.getMonth(),this.getDate() + _number,this.getHours(),this.getMinutes(),this.getSeconds());
                            break;
                   case "H":
                            return new Date(this.getFullYear(),this.getMonth(),this.getDate(),this.getHours() + _number,this.getMinutes(),this.getSeconds());
                            break;
                   case "M":
                            return new Date(this.getFullYear(),this.getMonth(),this.getDate(),this.getHours(),this.getMinutes() + _number,this.getSeconds());
                            break;
                   case "S":
                            return new Date(this.getFullYear(),this.getMonth(),this.getDate(),this.getHours(),this.getMinutes(),this.getSeconds() + _number);
                            break;
                   case "WW":
                            return new Date(this.getFullYear(),this.getMonth(),this.getDate() + _number*7,this.getHours(),this.getMinutes(),this.getSeconds());
                            break;
                   default:return this;
         }
};
Date.prototype.formatDateTime = function(_nameFormate){
         switch(_nameFormate){
                   case 0:
                            return this.getFullYear().toString().right(2) + "/" + (this.getMonth() + 1).toString() + "/" + this.getDate().toString() + " " + this.getHours().toString() + ":" + this.getMinutes().toString() + ":" + this.getSeconds().toString();
                            break;
                   case 1:
                            return this.getFullYear().toString() + "年" + (this.getMonth() + 1).toString() + "月" + this.getDate().toString() + "日";
                            break;
                   case 2:
                            return this.getFullYear().toString().right(2) + "/" + (this.getMonth() + 1).toString() + "/" + this.getDate().toString();
                            break;
                   case 3:
                            return this.getHours().toString() + ":" + this.getMinutes().toString() + ":" + this.getSeconds().toString();
                            break;
                   case 4:
                            return this.getHours().toString() + ":" + this.getMinutes().toString();
                            break;
                   default:
                            return this.getFullYear().toString().right(2) + "/" + (this.getMonth() + 1).toString() + "/" + this.getDate().toString() + " " + this.getHours().toString() + ":" + this.getMinutes().toString() + ":" + this.getSeconds().toString();
         }
};
Date.prototype.isNaN = function(){return isNaN(this);};
 
Number.prototype.abs = function(){return Math.abs(this)};
Number.prototype.acos = function(){return Math.acos(this)};
Number.prototype.asin = function(){return Math.asin(this)};
Number.prototype.atan = function(){return Math.atan(this)};
Number.prototype.atan2 = function(){return Math.atan2(this)};
Number.prototype.ceil = function(){return Math.ceil(this)};
Number.prototype.cos = function(){return Math.cos(this)};
Number.prototype.exp = function(){return Math.exp(this)};
Number.prototype.floor = function(){return Math.floor(this)};
Number.prototype.log = function(){return Math.log(this)};
Number.prototype.round = function(){return Math.round(this)};
Number.prototype.sin = function(){return Math.sin(this)};
Number.prototype.sqrt = function(){return Math.sqrt(this)};
Number.prototype.isNaN = function(){return isNaN(this)};
Number.prototype.tan = function(){return Math.tan(this)};
 
 
if(window){
         Array.prototype.alert = function(){window.alert(this);}
         Array.prototype.confirm = function(){return window.confirm(this);}
         String.prototype.alert = function(){window.alert(this)};
         String.prototype.confirm = function(){return window.confirm(this)};
         Date.prototype.alert = function(){window.alert(this.toLocaleDateString());};
         Date.prototype.confirm = function(){return window.confirm(this.toLocaleDateString());};
         Number.prototype.alert = function(){window.alert(this)};
         Number.prototype.confirm = function(){return window.confirm(this)};
         Boolean.prototype.alert = function(){window.alert(this);};
         Boolean.prototype.confirm = function(){return window.confirm(this);};
}

Date.prototype.formatByLanguage=function(lang , yf , mf , df , wf , yearStr , monthStr , dayStr)
		{
			var s = "";
			
			mf = mf.toLowerCase();
			yf = yf.toLowerCase();
			df = df.toLowerCase();
			wf = wf.toLowerCase();

			if ( (typeof(yearStr)=="undefined") || (yearStr==null))
			{
				yearStr = "年";
			}
			if ( (typeof(monthStr)=="undefined") || (monthStr==null))
			{
				monthStr = "月";
			}
			if ( (typeof(dayStr)=="undefined") || (dayStr==null))
			{
				dayStr = "日";
			}

			if ( ( lang == "zh-cn" ) || ( lang == "zh-tw" ) )
			{
				if ( yf != "" )
				{
					s += this.getYear().toString() + yearStr;
				}

				if ( mf != "" )
				{
					if ( s != "" ) s += " ";
					s += (this.getMonth()+1).toString() + monthStr;
				}

				if ( df != "" )
				{
					if ( s != "" ) s += " ";
					s += this.getDate().toString() + dayStr;
				}

				if ( wf != "" )
				{
					if ( s != "" ) s += " ";
					s += weekStrs[this.getDay()];
				}
			}
			else
			{
				if ( wf != "" )
				{
					if ( ( wf == "s" ) || ( wf == "short" ) )
					{
						s += weekShortStrs[this.getDay()];
					}
					else
					{
						s += weekStrs[this.getDay()];
					}
				}

				if ( mf != "" )
				{
					if ( s != "" ) s+=", ";
					if ( ( mf == "s" ) || ( mf == "short" ) )
					{
						s += monthShortStrs[this.getMonth()];
					}
					else
					{
						s += monthStrs[this.getMonth()];
					}
				}

				if ( df != "" )
				{
					if ( s != "" )
					{
						if ( mf != "" )
							s+=" ";
						else
							s+=", ";
					}
					s += this.getDate().toString();
				}

				if ( yf != "" )
				{
					if ( s != "" ) s+=", ";
					s += this.getYear().toString();
				}

			}

			return s;
		}

//=============================JavaScript/Jscript核心语言对象扩充函数=========================

