function isAlphaNumeric(string) {
   if (!string) return false;
   var iChars = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
} 
function isEmail(elm){
  if (	elm.value.indexOf("@") != "-1" &&
		elm.value.indexOf(".") != "-1" &&
		elm.value != "")
	return true;
  else return false;
  }
function isFilled(elm){
	if (elm.value == "" ||
		elm.value == null)
	return false;
	else return true;
}
function Right(str, n){
  if (n <= 0)
    return "";
  else 
    if (n > String(str).length)
	  return str;
    else {
      var iLen = String(str).length;
      return String(str).substring(iLen, iLen - n);
    }
}
function isSame(str1,str2){
	if (str1.value == str2.value)
		return true;
		else return false;
	}
