function fncIsEmail(email) {
            var invalidChars = " /:,;"
            for (i=0; i<invalidChars.length; i++) {         // does it contain any invalid characters?
                badChar = invalidChars.charAt(i)
                if (email.indexOf(badChar) > -1) {
                    return false
                }
            }

            atPos = email.indexOf("@",1)                    // there must be one "@" symbol
            if (atPos == -1) {
                return false
            }
            if (email.indexOf("@",atPos+1) != -1) {         // and only one "@" symbol
                return false
            }
            periodPos = email.indexOf(".",atPos)
            if (periodPos == -1) {                          // and at least one "." after the "@"
                return false
            }
            if (periodPos+3 > email.length) {               // must be at least 2 characters after the "."
                return false
            }
            return true
        }


var jsonReturnMsg = "<h1>Please Check Your Email to Complete Registration</h1><br/><br/>"+
      "An email has been sent to your email. <br/>"+
      "Check your email and click the product and license links in the message.<br />"+
      "If you have any further questions or concerns, please visit our "+
      "<a href='http://help.thinkfree.com'>Help Center</a>.<br/><br/>"+
      "Thank you<br/><br/>"+
      "ThinkFree Server Team";
      
function isNumber(e){
  var ua = navigator.userAgent;
  var input;
  if ((i = ua.indexOf("MSIE")) >= 0) {
	   input = window.event.keyCode;
	}else{
	   input = e.which;
	}

	if( (47 < input && input < 58) || (input == 190) || (input == 8) || (input == 46) || 
               (input == 35) || (input == 37) || (input == 39) || (input == 9) ){
		 window.event.returnValue = true;
		 return;
	}
	return false;
}


