//mover
function Getform(getname,url,id,height,width,showtitle){//返回名,访问文件,ID,高,宽,标题
	document.getElementById(getname).innerHTML="<div style='position:absolute;' id='floater'>\
	<div style='width:"+width+"px;\height:"+height+"px;color:#FFFFFF;position:absolute;z-index:4;margin-left:6px;'><table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td width='3'><img src='/images/DivShowLefta.gif'></td><td align='left' valign='bottom' background='/images/DivShowBg1.gif' style='padding:3px;'><b><font color='#FFFFFF' style='font-size: 12px;'>"+showtitle+"</font></b></td><td align='right' background='/images/DivShowBg1.gif'><img src='/images/DivShowClose1.gif' hspace=3 onClick=\"mnwcls('"+getname+"');\" onMouseOver=\"this.src='/images/DivShowClose2.gif';\" onMouseOut=\"this.src='/images/DivShowClose1.gif'\"></td><td width=3><img src='/images/DivShowRighta.gif'></td></tr><tr><td style='border-left:#CCCCCC 1px solid;' bgcolor='#F5F5F5'></td><td colspan='2' align='left' bgcolor='#FFFFFF'><div id='showwindow' style='width:"+(width-6)+";height:"+(height-26)+"'></div></td><td style='border-right:#CCCCCC 1px solid;background:#F5F5F5;'></td></tr><tr><td><img src='/images/DivShow_bottom_Left.gif'></td><td colspan='2' background='/images/DivShow_bottom_bg.gif'></td><td><img src='/images/DivShow_bottom_right.gif'></td></tr></table></div><div style='width:"+(width+5)+";height:"+height+"px;background:#CCCCCC;filter:progid:DXImageTransform.Microsoft.Blur(makeShadow=true,pixelRadius=3.0,shadowOpacity=0.2);'></div></div>";
	getXML(url,id,"showwindow");
}
function mnwcls(winname){document.getElementById(winname).innerHTML="";}
//
var oDiv;
var xmlhttp;
var FmName;
var UrlA;
function MiniXML(fwname,id,Gmtxt){getXML(fwname,id,Gmtxt);}
function getXML(fwname,id,Gmtxt){
 UrlA=fwname.replace(/_/g,"/")+".html?"+(id+"").replace(/_/g,"=").replace(/,/g,"&");
 oDiv = document.getElementById(Gmtxt);
 oDiv.innerHTML = "正在载入，请稍侯......."; 
 if(window.ActiveXObject){
	xmlhttp = new ActiveXObject("Microsoft.XMLHttp");//如果使用的是IE浏览器  
 }else{
	xmlhttp = new XMLHttpRequest();//其他浏览器
 }
 xmlhttp.open("POST",UrlA,true);
 xmlhttp.send(null);
 xmlhttp.onreadystatechange=function(){
  if(xmlhttp.readyState==4){
	if(xmlhttp.status==200){
		if(xmlhttp && xmlhttp.responseText){
			oDiv.innerHTML=xmlhttp.responseText;
		}
	}else{
		oDiv.innerHTML = "装载数据失败。原因：" + xmlhttp.statusText;
	}
  }
 };
}
function Upvalue(getname,num){
	if(document.getElementById(getname)){
		document.getElementById(getname).value=num;
	}
	if(Getdata1){document.getElementById('Getdata1').innerHTML='';}
	if(Getdata2){document.getElementById('Getdata2').innerHTML='';}
}
function CkLogin(){
  if(document.Lgform.username.value==""){
	alert('用户帐号不能为空！');
	document.Lgform.username.focus();
	return false;
  }
  if(document.Lgform.PASS.value==""){
	alert('请输入密码！');
	document.Lgform.PASS.focus();
	return false;
  }
  if(document.Lgform.rand.value==""){
	alert('请输入验证码(左侧图片上的数字)！');
	document.Lgform.rand.focus();
	return false;
  }
  return true;
}