//check num is digit or not
function COM_isDigit(theNum){
	var theMask = '0123456789';
	if (theMask.indexOf(theNum)==-1)  {
		return(false);
   	}         
	return(true);
}

//check string is int or not
function COM_isNumStr(numStr){
  for(i=0;i<numStr.length;i++){
	if (COM_isDigit(numStr.substring(i,i+1))==false)  {
      return(false);
	  break;
	}
  }         
  return(true);
}

//check string is empty or not
function COM_isEmptyStr(str){
   if((str==null)||(str.length==0)) return true;
   else return (false);
}
