function checkNum(dstText)
{
   data = dstText.match(/[^0-9]/g);
   if (data || !dstText || dstText==0) { return (false); }
   return (true);
}

function listProp(obj, objName) {
        for (var i in obj)
                document.writeln(objName+".<font color=red>"+i+"</font> = <font color=green>"+obj[i]+"</font><br>");
}

var  SaveRowTr= "";
/*
function RowTrMsIn(the) {
   SaveRowTr= the.bgColor;
   the.bgColor='#CCFFCC';
}

function RowTrMsOut(the) {
   the.bgColor=SaveRowTr ;
}

*/

function RowTrMsIn(the,color) {
   SaveRowTr= the.bgColor;
   if(color==undefined || color=='')
   {
   
   	the.bgColor='#ccFFCC';
   }
   else
   {
   	the.bgColor=color;
   }
 	
}

function RowTrMsOut(the) {
   the.bgColor=SaveRowTr ;
}

var t_id = setInterval(animate,1);
var pos=0;
var dir=2;
var len=0;
function animate()
{
	var elem = document.getElementById('progress');
	if(elem != null) {
		if (pos==0) len += dir;
		if (len>32 || pos>79) pos += dir;
		if (pos>79) len -= dir;
		if (pos>79 && len==0) pos=0;
		elem.style.left = pos;
		elem.style.width = len;
	}
}
function remove_loading() {
	this.clearInterval(t_id);
	var targelem = document.getElementById('loader_container');
	targelem.style.display='none';
	targelem.style.visibility='hidden';
}

function Del_Cconfirm(url,msg){ 
confirmMsg="*******提醒您!!******\n";
confirmMsg+="將要刪除("+msg+")的相關資料!\n";
confirmMsg+="刪除後將無法復原!\n";
confirmMsg+="確定要刪除此筆資料?";
is_confirmed = confirm(confirmMsg );
  if(is_confirmed)
  {
     location=url
  }	
	
}
var check_id = /[^\@\.\-\_A-Za-z0-9]/;
var check_t = /[^A-Za-z0-9]/;
