/**
 * contains mobile-related global functions.
 * by: Edgar Jao
 */
 
 
// front-end validation of alert
// allow only numbers
var numbersOnly = function(e) {
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8 && unicode!=9){ //if the key isn't the backspace or tab key (which we should allow)
		if (unicode<48||unicode>57) //if not a number
			return false //disable key press
	}
}

var closeMobileAlertDisplay = function() {
	window.close('mobileAlertDisplayModule');
}

var closeMobileVerificationDisplay = function() {
	window.close('mobileAlertVerificationModule');
}	