<!-- 
function isText(strText){
	if(strText != null && strText != false){
		return true;
	}else{
		return false;
	}
}

function isNumber(intNumber){
	if(!isNaN(intNumber) && intNumber != false){
		return true;
	}else{
		return false;
	}
}

function isEmail(strEmail){
	if(strEmail.indexOf(' ') == -1 && strEmail.substring(0,strEmail.indexOf('@')).length != 0 && strEmail.substring(strEmail.indexOf('@') + 1,strEmail.length).substring(0,strEmail.substring(strEmail.indexOf('@') + 1,strEmail.length).lastIndexOf('.')).length != 0 && strEmail.substring(strEmail.lastIndexOf('.') + 1,strEmail.length).length > 0 && strEmail.substring(strEmail.lastIndexOf('.') + 1,strEmail.length).length <= 3){
		return true;
	}else{
		return false;
	}
}


function isSelected(strText){
	if(strText != '' && strText != null){
		return true;
	}else{
		return false;
	}
}

function isChecked(objField){
	var blnChecked = false;
	if (objField[0])
	{
		for (intX=0;intX!=objField.length;intX++)
		{
			if(objField[intX].checked)
			{
				blnChecked = true;
			}
		}	
	}
	else
	{
		if(objField.checked)
		{
			blnChecked = true;
		}	
	}
	
	return blnChecked;
}

function isCPF(strCPF) {
	if (strCPF != "00000000000" && strCPF != "11111111111" && strCPF != "22222222222" && strCPF != "33333333333" && strCPF != "44444444444" && strCPF != "55555555555" && strCPF != "66666666666" && strCPF != "77777777777" && strCPF != "88888888888" && strCPF != "99999999999" && strCPF.length == 11){
		var x = 0;
		var ok = 0;
		var ok1 = 0;
		
		for (i=10; i>=1; i--){
			x ++;
			if (i > 1) {
				ok += Number(strCPF.substring(x - 1, x)) * i;
			}
			ok1 += Number(strCPF.substring(x - 1, x)) * (i + 1);
		}
		ok = 11 - (ok % 11);
		ok1 = 11 - (ok1 % 11);
		
		if (ok > 9) {
			ok = 0;
		}
		if (ok1 > 9) {
			ok1 = 0
		}
		
		var passou = (Number(strCPF.substring(9, 10)) == ok && Number(strCPF.substring(10, 11)) == ok1);
		
		ok = 0;
		ok1 = 0;
		x = 0;
		return passou;
		
	} else {
		return false;
	}
}

function isDate(strDate)
{
	if(!strDate && strDate.length == 0){
	  return true;
	}else{
		var arrDate = strDate.split("/")
		var intDay = arrDate[0];
		var intMonth = arrDate[1];
		var intYear = arrDate[2];
	
		if(intMonth >= 1 && intMonth <= 12 && intYear > 0 && intYear.length >= 2 && !isNaN(intDay) && !isNaN(intMonth) && !isNaN(intYear)){
			if((intDay >= 1)&&(intDay <= dayMonth(intMonth,intYear))) {
	    	  return true;
		    }else{
	    	  return false;
			}
		}
		else{
	   	  return false;
		}
	}
}

function dayMonth(intMonth,intYear) {
  if(intMonth == 2) {
    if(((intYear % 4) != 0)||(((intYear % 100) == 0) && ((intYear % 400) != 0))) {
      return(28); 
    } else {
      return(29); }
  } else {
    if(intMonth < 8) {
      return(30 + (intMonth % 2));
    } else { 
      return(31 - (intMonth % 2)); } }
}
//-->
