<!--
function refreshCode(strId)
{

	obj=document.getElementById(strId);
	obj.src="imgcode.php?R="+Math.random();
}

document.showMsg=function(strMsg,strUrl,strFrmId,strFlag,isPageReset)
{
	alert(strMsg);

	if(strUrl!=null && strUrl!="")
	{
		window.location.href=strUrl;
	}
			
	if(strFrmId!=null && strFrmId!="")
	{
		obj=window.parent.document.getElementById("imgCode");
		if(obj!=null)
		{
			obj.src="/class/captcha/image/scripts/image.php?R="+Math.random();
		}
		
		if(strFlag=="T")
		{
			window.parent.document.getElementById(strFrmId).reset();
		}
		
		if(isPageReset=="T")
		{
			//var frmobj=window.parent.document.getElementById(strFrmId);
			//frmobj.reset();
			//frmobj.target="";
			//if(strUrl!="")
			//{
				//frmobj.action=strUrl;
			//}
			//frmobj.submit();
			window.parent.document.location=window.parent.document.location;
		}
		
	}
}

document.showConfirmMsg=function(strMsg,strUrl,strFrmId,strFlag,isPageReset)
{
	if(confirm(strMsg))
	{
		if(strFlag=="T")
		{
			window.parent.document.getElementById(strFrmId).reset();
		}
		
		if(isPageReset=="T")
		{
			window.parent.document.location=window.parent.document.location;
		}
		
	}else{
		window.location.href=strUrl;
	}
}


function isIE(){ //ie? 
   if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1) 
    return true; 
   else 
    return false; 
} 

//判断checkbox是否选择
function getCheckIsNull(strNameId)
{
	var chkValue="";
	var aryValue=document.getElementsByName(strNameId);
	var flag=false;
	
	for (var i=0;i<aryValue.length;i++)
	{
		if(aryValue[i].checked)
		{
			flag=true;
			break;
		}
	}	
	
	return (flag);
}
//得到checkbox所选择值
function getChkValue(strNameId)
{
	var chkValue="";
	var aryValue=document.getElementsByName(strNameId);
	for (var i=0;i<aryValue.length;i++)
	{
		if(aryValue[i].checked)
		{
			chkValue+="&"+aryValue[i].value;
		}
	}
	if (chkValue.length>0)
	{
		chkValue=chkValue.substring(1);	
	}
	return (chkValue);
}

//checkbox全选
function CheckALL(obj,strNameID,strTxtId){
	var aryCheck=document.getElementsByName(strNameID);

	for (var i=0;i<aryCheck.length;i++)
	{
		aryCheck[i].checked=obj.checked;
	}
	
	if(strTxtId!="")
	{
		if (obj.checked) 
		{
				
			document.getElementById(strTxtId).innerHTML="取消";
		}
		else
		{
			document.getElementById(strTxtId).innerHTML="全选";
		}
	}
}

function checkAllText(obj,strNameID){
	var aryCheck=document.getElementsByName(strNameID);

	for (var i=0;i<aryCheck.length;i++)
	{
		aryCheck[i].checked=obj.checked;
	}
	

}

//翻页代码
function changePage(intPageNo,TheForm)
{
	with (TheForm)
	{		
		_hidPageNo.value=intPageNo;
		_hidSubId.value="ToChangePage";
		target="";
		submit();
	}
	return false;
}
//设置下拉框的值
function setSelValue(ObjId,setId)
{
	var Objsel=document.getElementById(ObjId);
	
	if(Objsel.options.length>0)
	{
		for(var i=0;i<Objsel.options.length;i++)
		{			
			if(Objsel.options[i].value==setId)
			{	
				Objsel.options[i].selected=true;
				break;
			}
		}
	}
}

//得到当前日期
function getNowDate(){
	var dayObj=new Date(); 
	var  monthStr=dayObj.getMonth()+1;
	
	var strDate=dayObj.getYear()+"-"+monthStr+"-"+dayObj.getDate();
	
	return strDate;
}
//-->