function checkItNum(evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if (charCode < 48 || charCode > 57) {
		//alert("This field accepts numbers only."); //You can Comment this line out if you do not want to alert the user.
		status = "This field accepts numbers only."
		return false
	}
	status = ""
	return true
}

function checkItMoney(fld,evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if (fld.value.substr(0,1) == '0') fld.value = '';
	if (((charCode < 48 || charCode > 57) && charCode != 46) || (charCode == 46 && fld.value.indexOf('.') != -1) || (fld.value.indexOf('.') != -1 && fld.value.substring(fld.value.indexOf('.'),fld.value.length).length > 2)) {
		//alert("This field accepts numbers only."); //You can Comment this line out if you do not want to alert the user.
		status = "This field accepts numbers and one decimal only."
		return false
	}
	status = ""
	return true
}

function checkItAlpha(evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if ((charCode != 32 && charCode < 65) || (charCode > 122) || (charCode > 90 && charCode < 97)) {
		//alert("This field accepts alpha characters only."); //You can Comment this line out if you do not want to alert the user.
		status = "This field accepts alpha characters only."
		return false
	}
	status = ""
	return true
}

function checkItAlphaNum(evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if ((charCode != 32 && charCode < 48) || (charCode > 57 && charCode < 65) || (charCode > 90 && charCode < 97) || (charCode > 122)) {
		//alert("This field accepts alphanumeric characters only."); //You can Comment this line out if you do not want to alert the user.
		status = "This field accepts alphanumeric characters only."
		return false
	}
	status = ""
	return true
}

function checkItAlphaNumPlus(evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if ((charCode != 13 && charCode != 32 && charCode != 43 && charCode < 48) || (charCode > 57 && charCode < 65) || (charCode > 90 && charCode < 97) || (charCode > 122)) {
		//alert("This field accepts alphanumeric characters and line breaks only."); //You can Comment this line out if you do not want to alert the user.
		status = "This field accepts alphanumeric characters, spaces and pluses only."
		return false
	}
	status = ""
	return true
}

function checkItAlphaNumCr(evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if ((charCode != 13 && charCode != 32 && charCode < 48) || (charCode > 57 && charCode < 65) || (charCode > 90 && charCode < 97) || (charCode > 122)) {
		//alert("This field accepts alphanumeric characters and line breaks only."); //You can Comment this line out if you do not want to alert the user.
		status = "This field accepts alphanumeric characters and line breaks only."
		return false
	}
	status = ""
	return true
}

function checkItEmail(evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if ((charCode < 45) || (charCode > 122) || (charCode == 47) || (charCode > 57 && charCode < 64) || (charCode > 64 && charCode < 95) || (charCode > 95 && charCode < 97)){
		//alert("This field accepts email-valid characters only."); //You can Comment this line out if you do not want to alert the user.
		status = "This field accepts email-valid characters only."
		return false
	}
	status = ""
	return true
}

function checkItCR(evt) { 
	evt = (evt) ? evt : window.event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if (charCode == 13) {
		//alert(""); //You can Comment this line out if you do not want to alert the user.
		//status = ""
		return false
	}
	status = ""
	return true
}
