//open2 window popup function
function open2PopWin(url) {
	var popWin = window.open(url, 'PreferredLanguage', 'width=440,height=440,menubar=no,toolbar=no,directories=no,location=no,scrollbars=no,status=yes,resizable=yes');
	popWin.focus();
}

//check OTP AlphaNumeric
function open2CheckAlphaNumeric(x){
	for(y=0; y<x.length; y++) {
 		if(!(x.charCodeAt(y) >= 48 && x.charCodeAt(y) <= 57 ) &&
 		!(x.charCodeAt(y) >= 65 && x.charCodeAt(y) <= 90 ) &&
 		!(x.charCodeAt(y) >= 97 && x.charCodeAt(y) <= 122 )) {
			return false;
		}
	}
	return true;
}
//check Customer Input name
function open2CheckCustomerName(x){
	for(y=0; y<x.length; y++) {
 		if((x.charCodeAt(y)!= 32) && 
 		!(x.charCodeAt(y) >= 65 && x.charCodeAt(y) <= 90) && 
 		!(x.charCodeAt(y) >= 97 && x.charCodeAt(y) <= 122)) {
			return false;
		}
	}
	return true;
}
//
function open2AddVarValue(str, appendStr, needSeparator) {
	if (needSeparator) {
		str = str + '~~' + appendStr;
	} else {
		str = str + appendStr;
	}
	return str;	
}
