function PopupCalendar(InstanceName)
{
	//if(typeof window["PopupCalendar"]!="function") return null;
	//if(document.getElementById(InstanceName+"_Div")) return window[InstanceName]
	//\u5DF2\u5B58\u5728\u76F4\u63A5\u8FD4\u56DE
	if(window.PopupCalendarInstance) return window.PopupCalendarInstance
	///Global Tag
	this.instanceName=InstanceName;
	///Properties
	this.separator="-"
	/*
	this.oBtnTodayTitle="Today"
	this.oBtnCancelTitle="Cancel"
	this.weekDaySting=new Array("S","M","T","W","T","F","S");
	this.monthSting=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	*/
	this.oBtnTodayTitle="\u4ECA\u5929"
	this.oBtnCancelTitle="\u53D6\u6D88"
	this.weekDaySting=new Array("\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D");
	this.monthSting=new Array("\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708");
	this.Width="200px";
	this.currDate=new Date();
	this.today=new Date();
	this.startYear=2000;
	this.endYear=2030;
	///Css
	this.normalfontColor="#666666";
	this.selectedfontColor="red";
	this.divBorderCss="1px solid #BCD0DE";
	this.titleTableBgColor="#98B8CD";
	this.tableBorderColor="#CCCCCC"
	///Method
	this.Init=CalendarInit;
	this.Fill=CalendarFill;
	this.Refresh=CalendarRefresh;
	this.Restore=CalendarRestore;
	///HTMLObject
	this.oTaget=null;
	this.oPreviousCell=null;
	this.sDIVID=InstanceName+"_Div";
	this.sTABLEID=InstanceName+"_Table";
	this.sMONTHID=InstanceName+"_Month";
	this.sYEARID=InstanceName+"_Year";
	this.sTODAYBTNID=InstanceName+"_TODAYBTN";
	this.hasInited=false;
	
}
function CalendarInit()				///Create panel
{
     if(this.hasInited)   return ;
     this.hasInited=true;
	var sMonth,sYear
	sMonth=this.currDate.getMonth();
	sYear=this.currDate.getYear();
	//htmlAll=''; //\u6DFB\u52A0\u6B64iframe\u6765\u786E\u4FDD\u8BE5div\u5728\u7EC4\u5408\u6846\u4E0A\u9762
	htmlAll="
";
	
	htmlAll+='
';
	/// Month
	htmloMonth="";
	/// Year
	htmloYear="
";
	/// Day
	
	htmloDayTable="
";
	htmloDayTable+="";
	for(i=0;i<=6;i++)
	{
		if(i==0)
			htmloDayTable+="";
		else
			htmloDayTable+="
";
		for(j=0;j<7;j++)
		{
			if(i==0)
			{
				htmloDayTable+="| ";
				htmloDayTable+=this.weekDaySting[j]+""
			}
			else
			{
				htmloDayTable+=" | ";
				htmloDayTable+=""
			}
		}
		htmloDayTable+=" | 
";	
	}
	htmloDayTable+="
";
	/// Today Button
	htmloButton="
"
	htmloButton+=" "
	htmloButton+=" "
	
	htmloButton+="
"
	htmlAll=htmlAll+htmloMonth+htmloYear+htmloDayTable+htmloButton+"