function IsAlphanumeric(Expression){
	Expression = Expression.toLowerCase();
	RefString = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

	if (Expression.length < 1) 
		return (false);

	for (var i = 0; i < Expression.length; i++) 
	{
		var ch = Expression.substr(i, 1)
		var a = RefString.indexOf(ch, 0)
		if (a == -1)
			return (false);
	}
	return(true);
}

// just pass the value and if its in the valis email format then it will return true else false ;
 
function isValidEmail(email){

	// javascript regular expression which validated the provided value 
	var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i;
	var returnval;
	returnval=emailfilter.test(email);
	return returnval;
}

function alphanumericonly(e) {
	var unicode=e.charCode? e.charCode : e.keyCode
	//alert(unicode);
	if (unicode!=8){
	   if ((unicode<48||unicode>57)&& unicode!=46) //if not a number
		 return false //disable key press
   }
}
function isAlphanumeric(elem, helperMsg){
	var alphaExp = /^[0-9a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}