	function setAllowOnlyNumber(){
		this.numberSet =/\d/;
		this.keySet = /\s/;
		OK = this.numberSet.exec(String.fromCharCode(window.event.keyCode));	
		
		if(!OK){
			OK = this.keySet.exec(String.fromCharCode(window.event.keyCode));
			if(!OK)window.event.keyCode = "";
		}
	}

	function isEnter(){
		if (window.event.keyCode ==13) { 
			return true;
		}else{ 
				return false;
		}
	}

	function isPIN(strPIN){
		if(strPIN.length != 13){
			alert('Invalid PIN Number');
			return false;
		}
		if(strPIN=="0000000000000")return true;
		
		var count_j = 0 , digit;
		var cal = new Number();
		for (var count_i = 13; count_i > 1; count_i-- , count_j++){
			digit = parseFloat(strPIN.charAt(count_j)) * count_i;
			cal += digit;
		}
		digit = 11 - (cal % 11);

		var strDigit = digit.toString();
		var chrDigit = strDigit.charAt(strDigit.length-1);
		if (strPIN.charAt(12) == chrDigit){
			return true;
		}else{
			alert('Invalid PIN Number');
			return false;
		}
	}

	function isTIN(strTIN){
		if(strTIN.length != 10){
			alert('Invalid TIN Number');
			return false;
		}
		
		if(strTIN=="0000000000")return true;
		var digit;
		var cal = new Number();
		for (var count_i = 0; count_i  < 9; count_i += 2){
			digit = parseFloat(strTIN.charAt(count_i)) * 3;
			cal += digit;
			digit = parseFloat(strTIN.charAt(count_i+1)) * 1;
			if(count_i !=8)cal  += digit;
		}
		var str = cal.toString();
		digit = 10 - parseFloat(str.charAt(str.length-1));
		strDigit = digit.toString();
		if(strDigit.charAt(strDigit.length-1) == strTIN.charAt(9)){
			return true;
		}else{
			alert('Invalid TIN Number');
			return false;
		}
	}